@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,107 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { ResultTypes } from '@topconsultnpm/sdk-ts-beta';
|
|
4
|
+
import { FormModes } from '../../ts/types';
|
|
5
|
+
import { IconArrowDown, IconArrowLeft, IconArrowUp, IconCloseCircle, IconHide, IconSave, IconShow, IconUndo, IconWarning, MOBILE_WIDTH, SDKUI_Localizator, getColor, useWindowWidth } from '../../helper';
|
|
6
|
+
import { ButtonNames, TMExceptionBoxManager, TMMessageBoxManager } from '../base/TMPopUp';
|
|
7
|
+
import TMLayoutContainer, { TMCard, TMLayoutItem, TMSplitterLayout } from '../base/TMLayout';
|
|
8
|
+
import { StyledResultTypeContainer, StyledToolbarForm } from '../base/Styled';
|
|
9
|
+
import TMButton from '../base/TMButton';
|
|
10
|
+
import { TMColors } from '../../utils/theme';
|
|
11
|
+
import TMValidationItemsList from '../grids/TMValidationItemsList';
|
|
12
|
+
import TMModal from '../base/TMModal';
|
|
13
|
+
const TMSaveForm = ({ id, formMode = FormModes.Update, title, children, isModal, exception, customToolbarElements, hasNavigation, showBackButton, onClose, onSaveAsync, onNext, onPrev, canNext, canPrev, isModified, onShowList, validationItems = [], onUndo, onCancel, width, height }) => {
|
|
14
|
+
const [showList, setShowList] = useState(true);
|
|
15
|
+
const [showErrorGrid, setShowErrorGrid] = useState(false);
|
|
16
|
+
let windowWidth = useWindowWidth();
|
|
17
|
+
let isMobile = windowWidth <= MOBILE_WIDTH;
|
|
18
|
+
const doSaveAsync = async () => { try {
|
|
19
|
+
await onSaveAsync?.();
|
|
20
|
+
}
|
|
21
|
+
catch (ex) {
|
|
22
|
+
TMExceptionBoxManager.show({ exception: ex });
|
|
23
|
+
} };
|
|
24
|
+
const doNext = () => {
|
|
25
|
+
if (!isModified) {
|
|
26
|
+
onNext?.();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
TMMessageBoxManager.show({
|
|
30
|
+
message: SDKUI_Localizator.SaveQuestion, buttons: [ButtonNames.YES, ButtonNames.NO, ButtonNames.CANCEL],
|
|
31
|
+
onButtonClick: async (e) => {
|
|
32
|
+
try {
|
|
33
|
+
if (e == ButtonNames.CANCEL)
|
|
34
|
+
return;
|
|
35
|
+
if (e == ButtonNames.YES)
|
|
36
|
+
await onSaveAsync?.();
|
|
37
|
+
onNext?.();
|
|
38
|
+
}
|
|
39
|
+
catch (ex) {
|
|
40
|
+
TMExceptionBoxManager.show({ exception: ex });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
const doPrev = () => {
|
|
46
|
+
if (!isModified) {
|
|
47
|
+
onPrev?.();
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
TMMessageBoxManager.show({
|
|
51
|
+
message: SDKUI_Localizator.SaveQuestion, buttons: [ButtonNames.YES, ButtonNames.NO, ButtonNames.CANCEL],
|
|
52
|
+
onButtonClick: async (e) => {
|
|
53
|
+
try {
|
|
54
|
+
if (e == ButtonNames.CANCEL)
|
|
55
|
+
return;
|
|
56
|
+
if (e == ButtonNames.YES)
|
|
57
|
+
await onSaveAsync?.();
|
|
58
|
+
onPrev?.();
|
|
59
|
+
}
|
|
60
|
+
catch (ex) {
|
|
61
|
+
TMExceptionBoxManager.show({ exception: ex });
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
const doClose = () => {
|
|
67
|
+
if (!isModified) {
|
|
68
|
+
onClose?.();
|
|
69
|
+
isMobile && setShowList(true), onShowList?.(true);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
TMMessageBoxManager.show({
|
|
73
|
+
message: SDKUI_Localizator.SaveQuestion, buttons: [ButtonNames.YES, ButtonNames.NO, ButtonNames.CANCEL],
|
|
74
|
+
onButtonClick: async (e) => {
|
|
75
|
+
try {
|
|
76
|
+
if (e == ButtonNames.CANCEL)
|
|
77
|
+
return;
|
|
78
|
+
if (e == ButtonNames.NO)
|
|
79
|
+
isMobile && (onUndo(), setShowList(true), onShowList?.(true));
|
|
80
|
+
if (e == ButtonNames.YES)
|
|
81
|
+
isMobile ? (await onSaveAsync?.(), setShowList(true), onShowList?.(true)) : await onSaveAsync?.();
|
|
82
|
+
onClose?.();
|
|
83
|
+
}
|
|
84
|
+
catch (ex) {
|
|
85
|
+
TMExceptionBoxManager.show({ exception: ex });
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
const warningsCount = validationItems.filter(o => o.ResultType == ResultTypes.WARNING).length;
|
|
91
|
+
const errorsCount = validationItems.filter(o => o.ResultType == ResultTypes.ERROR).length;
|
|
92
|
+
const renderSaveForm = () => {
|
|
93
|
+
return (_jsxs(TMLayoutContainer, { direction: 'vertical', children: [_jsx(TMLayoutItem, { height: 'max-content', children: _jsxs(StyledToolbarForm, { children: [showBackButton && _jsx(TMButton, { btnStyle: 'toolbar', color: 'tertiary', caption: SDKUI_Localizator.Back, icon: _jsx(IconArrowLeft, {}), elementStyle: { marginRight: '10px' }, onClick: () => { doClose(); } }), _jsx(TMButton, { caption: SDKUI_Localizator.Save, icon: _jsx(IconSave, {}), keyGesture: "alt+s", backgroundColor: errorsCount > 0 ? TMColors.error : isModified ? TMColors.success : TMColors.disabled, onClick: doSaveAsync, color: "success", btnStyle: "toolbar", disabled: isModified && errorsCount <= 0 ? false : true }), hasNavigation && _jsx(TMButton, { caption: SDKUI_Localizator.Previous, icon: _jsx(IconArrowUp, {}), btnStyle: "toolbar", disabled: !canPrev || isModified || formMode == FormModes.Create || formMode == FormModes.Duplicate, onClick: doPrev }), hasNavigation && _jsx(TMButton, { caption: SDKUI_Localizator.Next, icon: _jsx(IconArrowDown, {}), btnStyle: "toolbar", disabled: !canNext || isModified || formMode == FormModes.Create || formMode == FormModes.Duplicate, onClick: doNext }), _jsx(TMButton, { caption: SDKUI_Localizator.Undo, icon: _jsx(IconUndo, {}), keyGesture: "alt+z", color: "tertiary", btnStyle: "toolbar", disabled: isModified ? false : true, onClick: onUndo }), customToolbarElements, warningsCount > 0 &&
|
|
94
|
+
_jsx(TMLayoutItem, { width: 'fit-content', height: '90%', children: _jsxs(StyledResultTypeContainer, { style: { marginLeft: '10px' }, onClick: () => setShowErrorGrid(!showErrorGrid), "$resultType": ResultTypes.WARNING, children: [" ", _jsx(IconWarning, { fontSize: 16 }), " ", _jsx("span", { children: warningsCount })] }) }), errorsCount > 0 &&
|
|
95
|
+
_jsx(TMLayoutItem, { width: 'fit-content', height: '90%', children: _jsxs(StyledResultTypeContainer, { style: { marginLeft: warningsCount <= 0 ? '10px' : '0' }, onClick: () => setShowErrorGrid(!showErrorGrid), "$resultType": ResultTypes.ERROR, children: [" ", _jsx(IconCloseCircle, { fontSize: 16 }), " ", _jsx("span", { children: errorsCount })] }) }), onShowList &&
|
|
96
|
+
_jsx("div", { style: { right: '10px', position: 'absolute' }, children: !isMobile && _jsx(TMButton, { caption: showList ? SDKUI_Localizator.List_Hide : SDKUI_Localizator.List_Show, icon: showList ? _jsx(IconHide, {}) : _jsx(IconShow, {}), keyGesture: "alt+h", onClick: () => { setShowList(!showList); onShowList?.(!showList); }, btnStyle: 'toolbar' }) }), (formMode == FormModes.Create || formMode == FormModes.Duplicate) &&
|
|
97
|
+
_jsx("div", { style: { right: '50px', position: 'absolute' }, children: !isMobile && onCancel && _jsx(TMButton, { icon: _jsx(IconCloseCircle, {}), onClick: onCancel, btnStyle: 'toolbar', caption: SDKUI_Localizator.Cancel, color: 'tertiary' }) })] }) }), _jsx(TMLayoutItem, { children: _jsxs(TMSplitterLayout, { separatorSize: 4, direction: 'vertical', start: showErrorGrid && validationItems.length > 0 ? ['80%', '20%'] : ['100%', '0'], min: ['0', '0'], children: [_jsx(TMCard, { showBorder: false, children: exception
|
|
98
|
+
?
|
|
99
|
+
_jsx("div", { style: { width: '100%', height: '100%', marginTop: '50px', display: 'flex', alignItems: 'center', justifyContent: 'center', flexDirection: 'column', color: getColor('error') }, children: 'Si è verificato un errore' })
|
|
100
|
+
: _jsx(_Fragment, { children: children }) }), showErrorGrid && validationItems.length > 0 ? _jsx(TMCard, { scrollY: true, padding: false, showBorder: false, children: _jsx(TMValidationItemsList, { validationItems: validationItems }) }) : _jsx(_Fragment, {})] }) })] }));
|
|
101
|
+
};
|
|
102
|
+
return (_jsx(_Fragment, { children: isModal && onClose
|
|
103
|
+
?
|
|
104
|
+
_jsx(TMModal, { title: `${title} - ${FormModes[formMode]}`, onClose: doClose, width: width ?? '100%', height: height ?? '100%', children: renderSaveForm() })
|
|
105
|
+
: renderSaveForm() }));
|
|
106
|
+
};
|
|
107
|
+
export default TMSaveForm;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ValidationItem } from '@topconsultnpm/sdk-ts-beta';
|
|
2
|
+
interface ITMValidationItemsList {
|
|
3
|
+
validationItems?: ValidationItem[];
|
|
4
|
+
}
|
|
5
|
+
declare const TMValidationItemsList: ({ validationItems }: ITMValidationItemsList) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default TMValidationItemsList;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { TMColors } from '../../utils/theme';
|
|
5
|
+
import { IconCloseCircle, IconWarning } from '../../helper';
|
|
6
|
+
const StyledValidationItemsTabs = styled.div `
|
|
7
|
+
position: sticky;
|
|
8
|
+
top: 0px;
|
|
9
|
+
height: 25px;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
justify-content: flex-start;
|
|
13
|
+
align-items: center;
|
|
14
|
+
border-bottom: 1px solid $primary;
|
|
15
|
+
width: 100%;
|
|
16
|
+
user-select: none;
|
|
17
|
+
background-color: ${TMColors.primary};
|
|
18
|
+
z-index: 20;
|
|
19
|
+
border-top: 1px solid #122C4C;
|
|
20
|
+
`;
|
|
21
|
+
const StyledValidationTypeTab = styled.div `
|
|
22
|
+
padding: 10px;
|
|
23
|
+
color: ${(props) => props.$isSelected ? 'white' : 'rgb(182, 182, 182)'};
|
|
24
|
+
font-size: 1rem;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
${(props) => props.$isSelected ? 'border-bottom: 1px white solid;' : ''};
|
|
27
|
+
`;
|
|
28
|
+
const StyledMessageContainer = styled.div `
|
|
29
|
+
padding: 2px;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
align-items: center;
|
|
34
|
+
color: $primary;
|
|
35
|
+
font-size: 1rem;
|
|
36
|
+
width: 100%;
|
|
37
|
+
border-bottom: 1px solid rgb(190, 190, 190);
|
|
38
|
+
`;
|
|
39
|
+
const StyledMessageIcon = styled.div `
|
|
40
|
+
transform: translateY(1.5px);
|
|
41
|
+
margin-right: 5px;
|
|
42
|
+
z-index: 5;
|
|
43
|
+
`;
|
|
44
|
+
const StyledMessageResultType = styled.div `
|
|
45
|
+
width: 50px;
|
|
46
|
+
user-select: none;
|
|
47
|
+
margin-right: 20px;
|
|
48
|
+
`;
|
|
49
|
+
const StyledMessageElement = styled.div `
|
|
50
|
+
width: 150px;
|
|
51
|
+
text-align: left;
|
|
52
|
+
user-select: none;
|
|
53
|
+
margin-right: 20px;
|
|
54
|
+
`;
|
|
55
|
+
const StyledMessageText = styled.div `
|
|
56
|
+
transform: translateY(1.5px);
|
|
57
|
+
margin-right: 5px;
|
|
58
|
+
z-index: 5;
|
|
59
|
+
margin-right: 20px;
|
|
60
|
+
`;
|
|
61
|
+
const TMValidationItemsList = ({ validationItems = [] }) => {
|
|
62
|
+
const [selectedTab, setSelectedTab] = useState(0);
|
|
63
|
+
const [currentValidationItems, setCurrentValidationItems] = useState(validationItems);
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
setCurrentValidationItems(validationItems);
|
|
66
|
+
}, [validationItems]);
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
if (selectedTab === 0) {
|
|
69
|
+
setCurrentValidationItems(validationItems);
|
|
70
|
+
}
|
|
71
|
+
if (selectedTab === 1) {
|
|
72
|
+
setCurrentValidationItems(validationItems.filter(item => item.ResultType !== 'Warning'));
|
|
73
|
+
}
|
|
74
|
+
if (selectedTab === 2) {
|
|
75
|
+
setCurrentValidationItems(validationItems.filter(item => item.ResultType !== 'Error'));
|
|
76
|
+
}
|
|
77
|
+
}, [selectedTab]);
|
|
78
|
+
return (_jsxs("div", { style: { padding: "0px 1px" }, children: [_jsxs(StyledValidationItemsTabs, { children: [_jsx(StyledValidationTypeTab, { onClick: () => setSelectedTab(0), "$isSelected": selectedTab === 0, children: "All" }), _jsx(StyledValidationTypeTab, { onClick: () => setSelectedTab(1), "$isSelected": selectedTab === 1, children: "Errors" }), _jsx(StyledValidationTypeTab, { onClick: () => setSelectedTab(2), "$isSelected": selectedTab === 2, children: "Warnings" })] }), _jsx("div", { style: { padding: '0' }, children: currentValidationItems.map((item, index) => _jsxs(StyledMessageContainer, { children: [_jsx(StyledMessageIcon, { children: item.ResultType === 'Warning' ? _jsx(IconWarning, { color: 'orange', fontSize: 16 }) : _jsx(IconCloseCircle, { color: 'red', fontSize: 16 }) }), _jsx(StyledMessageResultType, { children: item.ResultType }), _jsx(StyledMessageElement, { children: item.PropertyName }), _jsx(StyledMessageText, { children: item.Message })] }, index)
|
|
79
|
+
// <Message key={index} propertyName={item.PropertyName} message={item.Message} resultType={item.ResultType} theme={currentTheme} />
|
|
80
|
+
) })] }));
|
|
81
|
+
};
|
|
82
|
+
export default TMValidationItemsList;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { default as ShowAlert } from './base/TMAlert';
|
|
2
|
+
export { default as TMButton } from './base/TMButton';
|
|
3
|
+
export { default as TMClosableList } from './base/TMClosableList';
|
|
4
|
+
export * from './base/TMContextMenu';
|
|
5
|
+
export { default as TMDropDownMenu } from './base/TMDropDownMenu';
|
|
6
|
+
export { default as TMListView } from './base/TMListView';
|
|
7
|
+
export { default as TMList } from './base/TMList';
|
|
8
|
+
export { default as TMModal } from './base/TMModal';
|
|
9
|
+
export * from './base/TMPopUp';
|
|
10
|
+
export * from './base/TMLayout';
|
|
11
|
+
export * from './base/Styled';
|
|
12
|
+
export { default as TMProgressBar } from './base/TMProgressBar';
|
|
13
|
+
export { default as TMSpinner } from './base/TMSpinner';
|
|
14
|
+
export { Spinner } from './base/TMSpinner';
|
|
15
|
+
export { default as TMToggleButton } from './base/TMToggleButton';
|
|
16
|
+
export { default as TMTooltip } from './base/TMTooltip';
|
|
17
|
+
export { default as TMVilViewer } from './base/TMVilViewer';
|
|
18
|
+
export { default as TMDropDown } from './editors/TMDropDown';
|
|
19
|
+
export { default as TMSummary } from './editors/TMSummary';
|
|
20
|
+
export { default as TMTextBox } from './editors/TMTextBox';
|
|
21
|
+
export { default as TMCheckBox } from './editors/TMCheckBox';
|
|
22
|
+
export { default as TMRadioButton } from './editors/TMRadioButton';
|
|
23
|
+
export { default as TMDateBox } from './editors/TMDateBox';
|
|
24
|
+
export { editorColorManager } from './editors/TMEditorStyled';
|
|
25
|
+
export * from './choosers/TMDataListItemChooser';
|
|
26
|
+
export * from './choosers/TMDcmtTypeChooser';
|
|
27
|
+
export * from './choosers/TMMetadataChooser';
|
|
28
|
+
export * from './choosers/TMUserChooser';
|
|
29
|
+
export { default as TMValidationItemsList } from './grids/TMValidationItemsList';
|
|
30
|
+
export * from './query/TMQueryEditor';
|
|
31
|
+
export * from './base/TMTab';
|
|
32
|
+
export { default as TMHeader } from "./sidebar/TMHeader";
|
|
33
|
+
export { default as TMSidebar } from "./sidebar/TMSidebar";
|
|
34
|
+
export { default as TMSidebarItem } from "./sidebar/TMSidebarItem";
|
|
35
|
+
export { default as TMSplitterLayout } from "./splitter/TMSplitterLayout";
|
|
36
|
+
export { default as TMLoginForm } from "./forms/TMLoginForm";
|
|
37
|
+
export { default as TMSaveForm } from "./forms/TMSaveForm";
|
|
38
|
+
export { default as TMApplyForm } from "./forms/TMApplyForm";
|
|
39
|
+
export { default as TMChooserForm } from "./forms/TMChooserForm";
|
|
40
|
+
export { default as TMPage } from "./pages/TMPage";
|
|
41
|
+
export { default as SettingsAppearance } from "./settings/SettingsAppearance";
|
|
42
|
+
export * from "./viewers/TMTidViewer";
|
|
43
|
+
export * from "./viewers/TMMidViewer";
|
|
44
|
+
export * from "./viewers/TMDataListItemViewer";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// base
|
|
2
|
+
// export { default as TMAbortBox } from './base/TMAbortBox'
|
|
3
|
+
export { default as ShowAlert } from './base/TMAlert';
|
|
4
|
+
export { default as TMButton } from './base/TMButton';
|
|
5
|
+
export { default as TMClosableList } from './base/TMClosableList';
|
|
6
|
+
export * from './base/TMContextMenu';
|
|
7
|
+
export { default as TMDropDownMenu } from './base/TMDropDownMenu';
|
|
8
|
+
export { default as TMListView } from './base/TMListView';
|
|
9
|
+
export { default as TMList } from './base/TMList';
|
|
10
|
+
export { default as TMModal } from './base/TMModal';
|
|
11
|
+
export * from './base/TMPopUp';
|
|
12
|
+
export * from './base/TMLayout';
|
|
13
|
+
export * from './base/Styled';
|
|
14
|
+
export { default as TMProgressBar } from './base/TMProgressBar';
|
|
15
|
+
export { default as TMSpinner } from './base/TMSpinner';
|
|
16
|
+
export { Spinner } from './base/TMSpinner';
|
|
17
|
+
export { default as TMToggleButton } from './base/TMToggleButton';
|
|
18
|
+
export { default as TMTooltip } from './base/TMTooltip';
|
|
19
|
+
export { default as TMVilViewer } from './base/TMVilViewer';
|
|
20
|
+
//editors
|
|
21
|
+
export { default as TMDropDown } from './editors/TMDropDown';
|
|
22
|
+
export { default as TMSummary } from './editors/TMSummary';
|
|
23
|
+
export { default as TMTextBox } from './editors/TMTextBox';
|
|
24
|
+
export { default as TMCheckBox } from './editors/TMCheckBox';
|
|
25
|
+
export { default as TMRadioButton } from './editors/TMRadioButton';
|
|
26
|
+
export { default as TMDateBox } from './editors/TMDateBox';
|
|
27
|
+
export { editorColorManager } from './editors/TMEditorStyled';
|
|
28
|
+
// choosers
|
|
29
|
+
export * from './choosers/TMDataListItemChooser';
|
|
30
|
+
export * from './choosers/TMDcmtTypeChooser';
|
|
31
|
+
export * from './choosers/TMMetadataChooser';
|
|
32
|
+
export * from './choosers/TMUserChooser';
|
|
33
|
+
//grids
|
|
34
|
+
export { default as TMValidationItemsList } from './grids/TMValidationItemsList';
|
|
35
|
+
//query
|
|
36
|
+
export * from './query/TMQueryEditor';
|
|
37
|
+
//tab
|
|
38
|
+
export * from './base/TMTab';
|
|
39
|
+
// others
|
|
40
|
+
// export { default as TMAreaManager } from "./filesystem/TMAreaManager";
|
|
41
|
+
// export { default as TMFilePreviewer } from "./filesystem/TMFilePreviewer";
|
|
42
|
+
export { default as TMHeader } from "./sidebar/TMHeader";
|
|
43
|
+
export { default as TMSidebar } from "./sidebar/TMSidebar";
|
|
44
|
+
export { default as TMSidebarItem } from "./sidebar/TMSidebarItem";
|
|
45
|
+
// export { default as TMStatusbar } from "./sidebar/TMStatusBar";
|
|
46
|
+
export { default as TMSplitterLayout } from "./splitter/TMSplitterLayout";
|
|
47
|
+
//form
|
|
48
|
+
export { default as TMLoginForm } from "./forms/TMLoginForm";
|
|
49
|
+
export { default as TMSaveForm } from "./forms/TMSaveForm";
|
|
50
|
+
export { default as TMApplyForm } from "./forms/TMApplyForm";
|
|
51
|
+
export { default as TMChooserForm } from "./forms/TMChooserForm";
|
|
52
|
+
//page
|
|
53
|
+
export { default as TMPage } from "./pages/TMPage";
|
|
54
|
+
//settings
|
|
55
|
+
export { default as SettingsAppearance } from "./settings/SettingsAppearance";
|
|
56
|
+
//viewers
|
|
57
|
+
export * from "./viewers/TMTidViewer";
|
|
58
|
+
export * from "./viewers/TMMidViewer";
|
|
59
|
+
export * from "./viewers/TMDataListItemViewer";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ObjectClasses, JobTypes } from "@topconsultnpm/sdk-ts-beta";
|
|
3
|
+
import { TMProgressOptions } from "../../ts";
|
|
4
|
+
interface ITMPage<T> {
|
|
5
|
+
/** Eventuale componente da sovrapporre alla lista */
|
|
6
|
+
listInsteadOfContent?: React.ReactNode;
|
|
7
|
+
/** Form per editare l'elemento */
|
|
8
|
+
detailForm?: JSX.Element;
|
|
9
|
+
/** Path per la costruzione del titolo in funzione dei forms aperti */
|
|
10
|
+
detailTitlePathKeys: string[] | undefined;
|
|
11
|
+
/** Eventuale componente da sovrapporre al form dettaglio */
|
|
12
|
+
detailInsteadOfContent?: React.ReactNode;
|
|
13
|
+
/** Bottoni personalizzati da aggiungere alla toolbar e pannello di selezione multipla */
|
|
14
|
+
customButtons?: any[];
|
|
15
|
+
/** Colonne personalizzate da aggiungere alla lista */
|
|
16
|
+
customColumns?: JSX.Element[];
|
|
17
|
+
/** Lista delle dipendenze che riavviano il componente */
|
|
18
|
+
deps?: React.DependencyList;
|
|
19
|
+
/** Id iniziale dell'oggetto */
|
|
20
|
+
id?: number;
|
|
21
|
+
/** Classe dell'oggetto */
|
|
22
|
+
objClass?: ObjectClasses;
|
|
23
|
+
/** Tipo dell'oggetto in funzione di objClass */
|
|
24
|
+
objType?: JobTypes;
|
|
25
|
+
/** Segnale per l'interruzione */
|
|
26
|
+
abortSignal?: AbortSignal;
|
|
27
|
+
/** Testo per filtrare la lista */
|
|
28
|
+
searchText?: string;
|
|
29
|
+
/** Indica la pagina dell'URL per i link */
|
|
30
|
+
routePage?: string;
|
|
31
|
+
/** Indica l'avanzamento dei lavori multipli */
|
|
32
|
+
onProgressChanged?: (option: TMProgressOptions, value?: number) => void;
|
|
33
|
+
/** Indica il cambiamento della selezione */
|
|
34
|
+
onSelectionChanged?: (rows: T[]) => void;
|
|
35
|
+
/** Indica il cambiamento dei contatori della lista (totali, selezionati e visibili) */
|
|
36
|
+
onCountersChanged?: (totalItemsCount: number, selectedItemsCount: number, visibleItemsCount: number) => void;
|
|
37
|
+
}
|
|
38
|
+
declare const TMPage: <T>({ id, objClass, objType, listInsteadOfContent, detailInsteadOfContent, routePage, customButtons, customColumns, searchText, detailForm, detailTitlePathKeys, deps, abortSignal, onProgressChanged, onSelectionChanged, onCountersChanged }: ITMPage<T>) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export default TMPage;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useState, useEffect } from "react";
|
|
3
|
+
import { SDK_Globals, ObjectClasses } from "@topconsultnpm/sdk-ts-beta";
|
|
4
|
+
import DataGrid, { Column, GroupPanel, Grouping, HeaderFilter, LoadPanel, Pager, Paging, Scrolling, SearchPanel, Selection } from "devextreme-react/cjs/data-grid";
|
|
5
|
+
import { PlatformObjectService } from "../../services/platform_services";
|
|
6
|
+
import { FormModes, TMProgressOptions } from "../../ts";
|
|
7
|
+
import { Globalization, IconAdd, IconColumns, IconCopy, IconDelete, IconDuplicate, IconHide, IconMail, IconMenuVertical, IconOpenInNew, IconRefresh, IconShow, MOBILE_WIDTH, SDKUI_Globals, SDKUI_Localizator, calcSaveFormTitle, canNext, canPrev, getNext, getPrev, useWindowWidth } from "../../helper";
|
|
8
|
+
import TMSpinner from "../base/TMSpinner";
|
|
9
|
+
import { ButtonNames, TMExceptionBoxManager, TMMessageBoxManager } from "../base/TMPopUp";
|
|
10
|
+
import TMLayoutContainer, { TMCard, TMLayoutItem, TMSplitterLayout } from "../base/TMLayout";
|
|
11
|
+
import TMButton from "../base/TMButton";
|
|
12
|
+
import TMDropDownMenu from "../base/TMDropDownMenu";
|
|
13
|
+
import { FontSize, TMColors } from "../../utils/theme";
|
|
14
|
+
import selectionManagerImage from '../../assets/multipleSelectionManager.jpg';
|
|
15
|
+
const TMToolbarButton = ({ showTooltip = true, color = 'primary', icon, caption = '', onClick, disabled, keyGesture }) => {
|
|
16
|
+
return (_jsx(TMButton, { keyGesture: keyGesture, color: color, disabled: disabled, caption: caption, onClick: () => { onClick && onClick(); }, icon: icon, showTooltip: showTooltip, btnStyle: 'toolbar' }));
|
|
17
|
+
};
|
|
18
|
+
const TMPage = ({ id, objClass = ObjectClasses.None, objType, listInsteadOfContent, detailInsteadOfContent, routePage, customButtons, customColumns, searchText, detailForm, detailTitlePathKeys, deps, abortSignal, onProgressChanged, onSelectionChanged, onCountersChanged }) => {
|
|
19
|
+
let width = useWindowWidth();
|
|
20
|
+
let isMobile = width <= MOBILE_WIDTH;
|
|
21
|
+
let gridInstance;
|
|
22
|
+
const [showId, setShowId] = useState(false);
|
|
23
|
+
const [showAllColumns, setShowAllColumns] = useState(false);
|
|
24
|
+
const [selectionListDisabled, setSelectionListDisabled] = useState(false);
|
|
25
|
+
const [showList, setShowList] = useState(true);
|
|
26
|
+
const [items, setItems] = useState([]);
|
|
27
|
+
const [selectedItems, setSelectedItems] = useState([]);
|
|
28
|
+
const [visibleItems, setVisibleItems] = useState([]);
|
|
29
|
+
const [formMode, setFormMode] = useState(FormModes.Update);
|
|
30
|
+
let objName = PlatformObjectService.getName(objClass, objType);
|
|
31
|
+
let objNames = PlatformObjectService.getName(objClass, objType, true);
|
|
32
|
+
useEffect(() => { gridInstance?.instance().searchByText(searchText ?? ''); }, [searchText]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
let itemsCount = gridInstance?.instance().getDataSource().items().length;
|
|
35
|
+
if (itemsCount && itemsCount > 0) {
|
|
36
|
+
gridInstance?.instance().selectRows(selectedItems?.map((item) => item.id) ?? [], false);
|
|
37
|
+
}
|
|
38
|
+
}, [selectedItems]);
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
setSelectedItems([]);
|
|
41
|
+
setFormMode(FormModes.Update);
|
|
42
|
+
setSelectionListDisabled(false);
|
|
43
|
+
(async () => { await loadDataAsync(id); })();
|
|
44
|
+
}, deps && deps.length > 0 ? [deps[0]] : []);
|
|
45
|
+
useEffect(() => { onCountersChanged?.(items.length, selectedItems.length, visibleItems.length); }, [items, selectedItems, visibleItems]);
|
|
46
|
+
const loadDataAsync = async (id) => {
|
|
47
|
+
try {
|
|
48
|
+
TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${PlatformObjectService.getName(objClass)} ...` });
|
|
49
|
+
const list = await PlatformObjectService.retrieveAllAsync(objClass, objType);
|
|
50
|
+
if (list) {
|
|
51
|
+
setItems(list);
|
|
52
|
+
if (id && id > 0) {
|
|
53
|
+
setSelectedItems(list.filter((o) => o.id === id));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch (e) {
|
|
58
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
59
|
+
}
|
|
60
|
+
finally {
|
|
61
|
+
TMSpinner.hide();
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const duplicate = () => { isMobile && setShowList(false); setFormMode(FormModes.Duplicate); };
|
|
65
|
+
const create = () => { isMobile && setShowList(false); setFormMode(FormModes.Create); };
|
|
66
|
+
const deleteItems = async () => {
|
|
67
|
+
let msg = "";
|
|
68
|
+
switch (selectedItems.length) {
|
|
69
|
+
case 0: return;
|
|
70
|
+
case 1:
|
|
71
|
+
msg = SDKUI_Localizator.Delete_ConfirmFor1.replaceParams(selectedItems[0].name ?? "");
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
msg = SDKUI_Localizator.Delete_ConfirmForN.replaceParams(selectedItems.length);
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
TMMessageBoxManager.show({
|
|
78
|
+
title: SDKUI_Localizator.Delete, message: msg, buttons: [ButtonNames.YES, ButtonNames.NO],
|
|
79
|
+
onButtonClick: async (e) => {
|
|
80
|
+
if (e !== ButtonNames.YES)
|
|
81
|
+
return;
|
|
82
|
+
onProgressChanged?.(TMProgressOptions.SetMaximum, selectedItems.length);
|
|
83
|
+
TMSpinner.show({ description: 'Deleting...', backgroundColor: 'transparent' });
|
|
84
|
+
try {
|
|
85
|
+
for (let i = 0; i < selectedItems.length; i++) {
|
|
86
|
+
if (!abortSignal?.aborted) {
|
|
87
|
+
await PlatformObjectService.deleteAsync(objClass, selectedItems[i]?.id);
|
|
88
|
+
onProgressChanged?.(TMProgressOptions.SetValue, i + 1);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
await loadDataAsync().then(() => onProgressChanged?.(TMProgressOptions.Finish));
|
|
92
|
+
onProgressChanged?.(TMProgressOptions.NewAbortController);
|
|
93
|
+
}
|
|
94
|
+
catch (e) {
|
|
95
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
96
|
+
onProgressChanged?.(TMProgressOptions.Finish);
|
|
97
|
+
onProgressChanged?.(TMProgressOptions.NewAbortController);
|
|
98
|
+
}
|
|
99
|
+
TMSpinner.hide();
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
const ToolbarPage = () => {
|
|
104
|
+
let disabled = selectionListDisabled;
|
|
105
|
+
window.Buffer = Buffer;
|
|
106
|
+
let str = (JSON.stringify(SDK_Globals.tmSession));
|
|
107
|
+
let sessionToBase64 = Buffer.from(str).toString("base64");
|
|
108
|
+
let newURL = selectedItems.length > 0 ? `/${routePage}/${selectedItems[0]?.id}?session=${sessionToBase64}` : '';
|
|
109
|
+
let mailTo = selectedItems.length > 0 ? `mailto:?subject=Custom URL&body=localhost:3000/${routePage}` : '';
|
|
110
|
+
const copyInClipboard = () => { window.navigator.clipboard.writeText(`localhost:3000/${routePage}`); };
|
|
111
|
+
const getToolbarMenuItems = () => {
|
|
112
|
+
let items = [
|
|
113
|
+
{ text: SDKUI_Localizator.Duplicate, disabled: selectedItems.length !== 1, icon: _jsx(IconDuplicate, {}), onClick: () => { duplicate(); } },
|
|
114
|
+
{ text: SDKUI_Localizator.Refresh, icon: _jsx(IconRefresh, {}), onClick: async () => { await loadDataAsync(); } },
|
|
115
|
+
{ text: _jsx("a", { style: { textDecoration: 'none', color: selectedItems.length !== 1 ? '#bdbdbd' : 'black' }, href: newURL, target: '_blank', children: SDKUI_Localizator.OpenInNewTab }), disabled: selectedItems.length !== 1, icon: _jsx(IconOpenInNew, {}), beginGroup: true },
|
|
116
|
+
{ text: _jsx("a", { style: { textDecoration: 'none', color: selectedItems.length !== 1 ? '#bdbdbd' : 'black' }, href: mailTo, children: SDKUI_Localizator.SendLinkByMail }), disabled: selectedItems.length !== 1, icon: _jsx(IconMail, {}) },
|
|
117
|
+
{ text: SDKUI_Localizator.CopyToClipboard, disabled: selectedItems.length !== 1, icon: _jsx(IconCopy, {}), onClick: () => { copyInClipboard(); } },
|
|
118
|
+
{ text: showId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show, icon: showId ? _jsx(IconHide, {}) : _jsx(IconShow, {}), onClick: () => { setShowId(!showId); }, beginGroup: true },
|
|
119
|
+
{ text: showAllColumns ? SDKUI_Localizator.Columns_All_Hide : SDKUI_Localizator.Columns_All_Show, icon: _jsx(IconColumns, {}), onClick: () => { setShowAllColumns(!showAllColumns); } },
|
|
120
|
+
];
|
|
121
|
+
if (customButtons) {
|
|
122
|
+
for (const btn of customButtons)
|
|
123
|
+
items.splice(btn.index, 0, btn);
|
|
124
|
+
}
|
|
125
|
+
return items;
|
|
126
|
+
};
|
|
127
|
+
return (_jsx(TMLayoutItem, { height: '35px', children: _jsxs(TMLayoutContainer, { direction: 'horizontal', gap: 5, children: [_jsx(TMToolbarButton, { keyGesture: "alt+n", disabled: disabled, caption: SDKUI_Localizator.Add, onClick: () => { create(); }, icon: _jsx(IconAdd, {}) }), _jsx(TMToolbarButton, { keyGesture: "alt+d", disabled: selectedItems.length === 0 || disabled, caption: SDKUI_Localizator.Remove, icon: _jsx(IconDelete, {}), color: 'error', onClick: () => { deleteItems(); } }), _jsx(TMDropDownMenu, { backgroundColor: 'white', borderRadius: '3px', content: _jsx(TMToolbarButton, { showTooltip: false, disabled: disabled, icon: _jsx(IconMenuVertical, {}), color: 'primary' }), items: getToolbarMenuItems() }), " "] }) }));
|
|
128
|
+
};
|
|
129
|
+
const MultipleSelectionManager = () => {
|
|
130
|
+
return (_jsxs("div", { style: { width: '100%', height: '100%', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }, children: [_jsx("img", { style: { transform: 'translateX(-35px)' }, src: selectionManagerImage, width: 250, height: 250, alt: "" }), _jsx("p", { style: { fontSize: FontSize.defaultFontSize, marginBottom: '25px', transform: 'translateX(-35px)' }, children: selectedItems.length + ' ' + SDKUI_Localizator.Selected }), selectedItems.length > 0 &&
|
|
131
|
+
_jsxs("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', transform: 'translateX(-35px)' }, children: [_jsxs("div", { onClick: () => { deleteItems(); }, style: { cursor: 'pointer', marginBottom: '10px', width: '200px', display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }, children: [_jsx(IconDelete, { fontSize: 20, color: TMColors.error }), _jsx("p", { style: { fontSize: FontSize.defaultFontSize, marginLeft: '5px', color: TMColors.error }, children: SDKUI_Localizator.Delete })] }), customButtons?.filter(o => o.showInMultipleSelectManager == true).map((item, index) => {
|
|
132
|
+
return (_jsxs("div", { onClick: item.onClick, style: { cursor: 'pointer', marginBottom: '10px', width: '200px', display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }, children: [item.icon, _jsx("p", { style: { fontSize: FontSize.defaultFontSize, marginLeft: '5px' }, children: item.text })] }, index));
|
|
133
|
+
})] })] }));
|
|
134
|
+
};
|
|
135
|
+
const getDetailFormWithProps = () => {
|
|
136
|
+
if (!detailForm)
|
|
137
|
+
return null;
|
|
138
|
+
return React.cloneElement(detailForm, {
|
|
139
|
+
id: selectedItems.length == 0 ? -1 : selectedItems[0].id,
|
|
140
|
+
showBackButton: isMobile,
|
|
141
|
+
formMode: formMode,
|
|
142
|
+
canNext: canNext(visibleItems, selectedItems),
|
|
143
|
+
onNext: () => { setSelectedItems([getNext(visibleItems, selectedItems)]); },
|
|
144
|
+
canPrev: canPrev(visibleItems, selectedItems),
|
|
145
|
+
onPrev: () => { setSelectedItems([getPrev(visibleItems, selectedItems)]); },
|
|
146
|
+
onShowList: (value) => { setShowList(value); },
|
|
147
|
+
onCancel: () => {
|
|
148
|
+
TMMessageBoxManager.show({
|
|
149
|
+
title: SDKUI_Localizator.Cancel, message: SDKUI_Localizator.ConfirmOnCancel, buttons: [ButtonNames.YES, ButtonNames.NO],
|
|
150
|
+
onButtonClick: async (e) => {
|
|
151
|
+
if (e !== ButtonNames.YES)
|
|
152
|
+
return;
|
|
153
|
+
setFormMode(FormModes.Update);
|
|
154
|
+
setSelectionListDisabled(false);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
onStatusChanged: (isModified) => { setSelectionListDisabled((formMode == FormModes.Create || formMode == FormModes.Duplicate) ? true : isModified); },
|
|
159
|
+
onSaved: async (newItem) => {
|
|
160
|
+
try {
|
|
161
|
+
const currentItems = items.map((job) => job);
|
|
162
|
+
const index = currentItems.findIndex((o) => o.id == newItem.id);
|
|
163
|
+
if (index >= 0)
|
|
164
|
+
currentItems[index] = newItem;
|
|
165
|
+
else
|
|
166
|
+
currentItems.push(newItem);
|
|
167
|
+
setItems(currentItems);
|
|
168
|
+
setSelectedItems([newItem]);
|
|
169
|
+
setFormMode(FormModes.Update);
|
|
170
|
+
setSelectionListDisabled(false);
|
|
171
|
+
}
|
|
172
|
+
catch (e) {
|
|
173
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
const cellRenderObjectIcon = (data) => { return PlatformObjectService.getIcon(objClass, data.row.data); };
|
|
179
|
+
return (_jsxs(TMSplitterLayout, { direction: "horizontal", showSeparator: showList && !isMobile, start: showList ? !isMobile ? ['30%', '70%'] : ['100%', '0%'] : ['0', '100%'], min: ['0px', '0px'], children: [listInsteadOfContent ??
|
|
180
|
+
_jsxs(TMCard, { borderRadius: false, fontWeight: "bold", showBorder: false, title: objNames, children: [_jsx(ToolbarPage, {}), _jsxs(DataGrid, { disabled: selectionListDisabled, ref: (grid) => (gridInstance = grid), height: "calc(100% - 35px)", width: 'calc(100% - 5px)', dataSource: items, keyExpr: "id", allowColumnResizing: true, columnResizingMode: "widget", allowColumnReordering: true, showBorders: false, onContentReady: (e) => {
|
|
181
|
+
setVisibleItems(e.component.getVisibleRows().map((row) => { return row.data; }));
|
|
182
|
+
e.component.selectRows(selectedItems?.map((item) => item.id), false);
|
|
183
|
+
}, onRowClick: (row) => {
|
|
184
|
+
if (!isMobile)
|
|
185
|
+
return;
|
|
186
|
+
setSelectedItems([row.data]);
|
|
187
|
+
setShowList(false);
|
|
188
|
+
}, showColumnLines: SDKUI_Globals.dataGridShowColumnLines, showRowLines: SDKUI_Globals.dataGridShowRowLines, onSelectionChanged: (e) => { setSelectedItems(e.selectedRowsData); onSelectionChanged?.(e.selectedRowsData); }, children: [_jsx(GroupPanel, { visible: !!(!isMobile && showAllColumns) }), _jsx(SearchPanel, { visible: false }), _jsx(Grouping, { autoExpandAll: false }), _jsx(HeaderFilter, { visible: true }), _jsx(Selection, { mode: "multiple", showCheckBoxesMode: "onClick", selectAllMode: 'allPages' }), _jsx(Scrolling, { mode: "standard", useNative: SDKUI_Globals.dataGridUseNativeScrollbar }), _jsx(Paging, { pageSize: 25 }), _jsx(Pager, { visible: true, showInfo: true, showNavigationButtons: true }), _jsx(LoadPanel, { enabled: true }), _jsx(Column, { width: 20, cellRender: cellRenderObjectIcon }), _jsx(Column, { width: 'auto', visible: showId, dataField: "id", caption: "ID" }), _jsx(Column, { width: 250, dataField: "name", caption: SDKUI_Localizator.Name, sortOrder: "asc" }), _jsx(Column, { width: 250, visible: showAllColumns, dataField: "description", caption: SDKUI_Localizator.Description }), customColumns?.map((item, index) => { return React.cloneElement(item, { key: index, visible: showAllColumns }); }), _jsx(Column, { width: 'auto', visible: showAllColumns, dataField: "ownerID", caption: SDKUI_Localizator.OwnerID }), _jsx(Column, { width: 'auto', visible: showAllColumns, dataField: "ownerName", caption: SDKUI_Localizator.OwnerName }), _jsx(Column, { width: 'auto', dataType: "date", format: Globalization.getDateDisplayFormat(), visible: showAllColumns, dataField: "creationTime", caption: SDKUI_Localizator.CreationTime }), _jsx(Column, { width: 'auto', dataType: "date", format: Globalization.getDateDisplayFormat(), visible: showAllColumns, dataField: "lastUpdateTime", caption: SDKUI_Localizator.LastUpdateTime })] })] }), detailInsteadOfContent ??
|
|
189
|
+
_jsx(TMLayoutItem, { children: selectedItems.length == 1 || formMode == FormModes.Create || formMode == FormModes.Duplicate ?
|
|
190
|
+
_jsx(TMCard, { borderRadius: false, fontWeight: "bold", showBorder: false, title: calcSaveFormTitle(objName, formMode, selectedItems.length == 0 ? -1 : selectedItems[0].id, detailTitlePathKeys), children: getDetailFormWithProps() })
|
|
191
|
+
:
|
|
192
|
+
_jsx(MultipleSelectionManager, {}) })] }));
|
|
193
|
+
};
|
|
194
|
+
export default TMPage;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryDescriptor, ValidationItem } from '@topconsultnpm/sdk-ts-beta';
|
|
3
|
+
import { ITMApplyFormProps, FormModes } from '../../ts';
|
|
4
|
+
export declare enum Descriptors {
|
|
5
|
+
Query = 3
|
|
6
|
+
}
|
|
7
|
+
export declare function useOrchApplyForm<T>(d: Descriptors, formMode: FormModes, inputData: T | undefined, onApplied?: (newDescriptor: T) => void, parameters?: any[]): {
|
|
8
|
+
formData: T;
|
|
9
|
+
setFormData: React.Dispatch<React.SetStateAction<T>>;
|
|
10
|
+
formDataOrig: T;
|
|
11
|
+
validationItems: ValidationItem[];
|
|
12
|
+
setValidationItems: React.Dispatch<React.SetStateAction<ValidationItem[]>>;
|
|
13
|
+
exception: any;
|
|
14
|
+
applyData: () => void;
|
|
15
|
+
};
|
|
16
|
+
interface ITMQueryEditor extends ITMApplyFormProps<QueryDescriptor> {
|
|
17
|
+
onlyAdvancedSearchMode?: boolean;
|
|
18
|
+
validateSelect?: boolean;
|
|
19
|
+
validateOrderBy?: boolean;
|
|
20
|
+
showDistinct?: boolean;
|
|
21
|
+
raiseWarningForOnlyMetadataDcmtTypes?: boolean;
|
|
22
|
+
borderRadius?: string;
|
|
23
|
+
searchText?: string;
|
|
24
|
+
onFromTIDChanged?: (tid: number) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const TMQueryEditor: React.FunctionComponent<ITMQueryEditor>;
|
|
27
|
+
export default TMQueryEditor;
|