@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,215 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Questo componente è stato realizzato partendo da :
|
|
3
|
+
// https://www.npmjs.com/package/react-splitter-layout
|
|
4
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { TMColors } from '../../utils/theme';
|
|
7
|
+
const clearSelection = () => {
|
|
8
|
+
if (window.getSelection) {
|
|
9
|
+
const selection = window.getSelection();
|
|
10
|
+
if (selection) {
|
|
11
|
+
selection.removeAllRanges();
|
|
12
|
+
}
|
|
13
|
+
// } else if (document.selection) {
|
|
14
|
+
// document.selection.empty();
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
const DEFAULT_SPLITTER_SIZE = 4;
|
|
18
|
+
const StyledPane = styled.div.attrs(({ $isPrimary, $isVertical, $size, $unit }) => ({
|
|
19
|
+
style: {
|
|
20
|
+
flex: $isPrimary ? '1 1 auto' : '0 0 auto',
|
|
21
|
+
height: $isVertical && !$isPrimary ? `${$size}${$unit}` : '',
|
|
22
|
+
width: !$isVertical && !$isPrimary ? `${$size}${$unit}` : '',
|
|
23
|
+
}
|
|
24
|
+
})) `
|
|
25
|
+
position: relative;
|
|
26
|
+
overflow: auto;
|
|
27
|
+
`;
|
|
28
|
+
const StyledContainer = styled.div `
|
|
29
|
+
position: absolute;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: ${(props) => props.$isVertical ? 'column' : 'row'};
|
|
32
|
+
width: ${(props) => props.$width ?? '100%'};
|
|
33
|
+
height: ${(props) => props.$height ?? '100%'};
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
${(props) => props.$isResizing ? `cursor: ${props.$isVertical ? 'row-resize' : 'col-resize'}` : ''};
|
|
36
|
+
`;
|
|
37
|
+
const StyledSplitter = styled.div `
|
|
38
|
+
${(props) => props.$isVertical ? '' : 'flex: 0 0 auto;'};
|
|
39
|
+
width: ${(props) => props.$isVertical ? '100%' : '2px'};
|
|
40
|
+
height: ${(props) => props.$isVertical ? '2px' : '100%'};
|
|
41
|
+
margin-left: ${(props) => props.$isVertical ? '0' : '2px'};
|
|
42
|
+
margin-right: ${(props) => props.$isVertical ? '0' : '2px'};
|
|
43
|
+
margin-top: ${(props) => props.$isVertical ? '2px' : '0'};
|
|
44
|
+
margin-bottom: ${(props) => props.$isVertical ? '2px' : '0'};
|
|
45
|
+
cursor: ${(props) => props.$isVertical ? 'row-resize' : 'col-resize'};
|
|
46
|
+
background-color: ${(props) => props.$isResizing ? TMColors.primary : '#ccc'};
|
|
47
|
+
|
|
48
|
+
&:hover {
|
|
49
|
+
color: ${TMColors.primary};
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
const TMSplitterLayout = ({ vertical = false, percentage = false, primaryIndex = 0, primaryMinSize = 0, secondaryInitialSize, secondaryMinSize = 0, height = "100%", width = "100%", onDragStart, onDragEnd, onSecondaryPaneSizeChange, children = [], }) => {
|
|
53
|
+
const [secondaryPaneSize, setSecondaryPaneSize] = useState(0);
|
|
54
|
+
const [resizing, setResizing] = useState(false);
|
|
55
|
+
const containerRef = useRef(null);
|
|
56
|
+
const splitterRef = useRef(null);
|
|
57
|
+
const getSecondaryPaneSize = (containerRect, splitterRect, clientPosition, offsetMouse) => {
|
|
58
|
+
if (!containerRect || !splitterRect) {
|
|
59
|
+
return 0; // Return a default value or handle the case as appropriate
|
|
60
|
+
}
|
|
61
|
+
let totalSize;
|
|
62
|
+
let splitterSize;
|
|
63
|
+
let offset;
|
|
64
|
+
if (vertical) {
|
|
65
|
+
totalSize = containerRect.height;
|
|
66
|
+
splitterSize = splitterRect.height;
|
|
67
|
+
offset = clientPosition.top - containerRect.top;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
totalSize = containerRect.width;
|
|
71
|
+
splitterSize = splitterRect.width;
|
|
72
|
+
offset = clientPosition.left - containerRect.left;
|
|
73
|
+
}
|
|
74
|
+
if (offsetMouse) {
|
|
75
|
+
offset -= splitterSize / 2;
|
|
76
|
+
}
|
|
77
|
+
if (offset < 0) {
|
|
78
|
+
offset = 0;
|
|
79
|
+
}
|
|
80
|
+
else if (offset > totalSize - splitterSize) {
|
|
81
|
+
offset = totalSize - splitterSize;
|
|
82
|
+
}
|
|
83
|
+
let secondaryPaneSize;
|
|
84
|
+
if (primaryIndex === 1) {
|
|
85
|
+
secondaryPaneSize = offset;
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
secondaryPaneSize = totalSize - splitterSize - offset;
|
|
89
|
+
}
|
|
90
|
+
let primaryPaneSize = totalSize - splitterSize - secondaryPaneSize;
|
|
91
|
+
if (percentage) {
|
|
92
|
+
secondaryPaneSize = (secondaryPaneSize * 100) / totalSize;
|
|
93
|
+
primaryPaneSize = (primaryPaneSize * 100) / totalSize;
|
|
94
|
+
splitterSize = (splitterSize * 100) / totalSize;
|
|
95
|
+
totalSize = 100;
|
|
96
|
+
}
|
|
97
|
+
let l_primaryMinSize = primaryMinSize;
|
|
98
|
+
let l_secondaryMinSize = secondaryMinSize;
|
|
99
|
+
if (primaryPaneSize < l_primaryMinSize) {
|
|
100
|
+
secondaryPaneSize = Math.max(secondaryPaneSize - (l_primaryMinSize - primaryPaneSize), 0);
|
|
101
|
+
}
|
|
102
|
+
else if (secondaryPaneSize < l_secondaryMinSize) {
|
|
103
|
+
secondaryPaneSize = Math.min(totalSize - splitterSize - l_primaryMinSize, l_secondaryMinSize);
|
|
104
|
+
}
|
|
105
|
+
return secondaryPaneSize;
|
|
106
|
+
};
|
|
107
|
+
const handleResize = () => {
|
|
108
|
+
if (splitterRef && !percentage) {
|
|
109
|
+
const containerRect = containerRef.current?.getBoundingClientRect();
|
|
110
|
+
const splitterRect = splitterRef.current?.getBoundingClientRect();
|
|
111
|
+
const secondaryPaneSize = getSecondaryPaneSize(containerRect, splitterRect, {
|
|
112
|
+
left: splitterRect?.left,
|
|
113
|
+
top: splitterRect?.top
|
|
114
|
+
}, false);
|
|
115
|
+
setSecondaryPaneSize(secondaryPaneSize);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const handleMouseMove = (e) => {
|
|
119
|
+
if (resizing) {
|
|
120
|
+
const containerRect = containerRef.current?.getBoundingClientRect();
|
|
121
|
+
const splitterRect = splitterRef.current?.getBoundingClientRect();
|
|
122
|
+
const secondaryPaneSize = getSecondaryPaneSize(containerRect, splitterRect, {
|
|
123
|
+
left: e.clientX,
|
|
124
|
+
top: e.clientY
|
|
125
|
+
}, true);
|
|
126
|
+
clearSelection();
|
|
127
|
+
setSecondaryPaneSize(secondaryPaneSize);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const handleTouchMove = (e) => {
|
|
131
|
+
handleMouseMove(e.changedTouches[0]);
|
|
132
|
+
};
|
|
133
|
+
const handleSplitterMouseDown = () => {
|
|
134
|
+
clearSelection();
|
|
135
|
+
setResizing(true);
|
|
136
|
+
};
|
|
137
|
+
const handleMouseUp = () => {
|
|
138
|
+
setResizing((prevResizing) => (prevResizing ? false : prevResizing));
|
|
139
|
+
};
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
const secondaryPaneSizeCalculation = () => {
|
|
142
|
+
if (splitterRef.current && !percentage) {
|
|
143
|
+
const containerRect = containerRef.current?.getBoundingClientRect();
|
|
144
|
+
const splitterRect = splitterRef.current.getBoundingClientRect();
|
|
145
|
+
const newSecondaryPaneSize = getSecondaryPaneSize(containerRect, splitterRect, { left: splitterRect.left, top: splitterRect.top }, false);
|
|
146
|
+
setSecondaryPaneSize(newSecondaryPaneSize);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
window.addEventListener('resize', handleResize);
|
|
150
|
+
let initialSecondaryPaneSize;
|
|
151
|
+
if (typeof secondaryInitialSize !== 'undefined') {
|
|
152
|
+
initialSecondaryPaneSize = secondaryInitialSize;
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
const containerRect = containerRef.current?.getBoundingClientRect();
|
|
156
|
+
const splitterRect = splitterRef.current?.getBoundingClientRect() || { width: DEFAULT_SPLITTER_SIZE, height: DEFAULT_SPLITTER_SIZE };
|
|
157
|
+
initialSecondaryPaneSize = getSecondaryPaneSize(containerRect, splitterRect, {
|
|
158
|
+
left: containerRect.left + (containerRect.width - splitterRect.width) / 2,
|
|
159
|
+
top: containerRect.top + (containerRect.height - splitterRect.height) / 2,
|
|
160
|
+
}, false);
|
|
161
|
+
}
|
|
162
|
+
setSecondaryPaneSize(initialSecondaryPaneSize);
|
|
163
|
+
// Call the calculation function initially
|
|
164
|
+
secondaryPaneSizeCalculation();
|
|
165
|
+
return () => {
|
|
166
|
+
window.removeEventListener('resize', handleResize);
|
|
167
|
+
};
|
|
168
|
+
}, [secondaryInitialSize, percentage]);
|
|
169
|
+
useEffect(() => {
|
|
170
|
+
if (secondaryPaneSize !== 0 && onSecondaryPaneSizeChange) {
|
|
171
|
+
onSecondaryPaneSizeChange(secondaryPaneSize);
|
|
172
|
+
}
|
|
173
|
+
if (resizing) {
|
|
174
|
+
if (onDragStart) {
|
|
175
|
+
onDragStart();
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else if (onDragEnd) {
|
|
179
|
+
onDragEnd();
|
|
180
|
+
}
|
|
181
|
+
}, [secondaryPaneSize, resizing]);
|
|
182
|
+
const childrenArray = React.Children.toArray(children).slice(0, 2);
|
|
183
|
+
if (childrenArray.length === 0) {
|
|
184
|
+
childrenArray.push(_jsx("div", {}));
|
|
185
|
+
}
|
|
186
|
+
else if (childrenArray.length === 1) {
|
|
187
|
+
if (primaryIndex == 0)
|
|
188
|
+
childrenArray.push(_jsx("div", {}));
|
|
189
|
+
else
|
|
190
|
+
childrenArray.unshift(_jsx("div", {}));
|
|
191
|
+
}
|
|
192
|
+
const thereAreChildrenEmpty = () => {
|
|
193
|
+
return childrenArray.length == 2 && (elementIsEmpty(childrenArray[0]) || elementIsEmpty(childrenArray[1]));
|
|
194
|
+
};
|
|
195
|
+
const elementIsEmpty = (child) => {
|
|
196
|
+
return Boolean(Object.keys(child.props).length === 0);
|
|
197
|
+
};
|
|
198
|
+
const wrappedChildren = childrenArray.map((child, i) => {
|
|
199
|
+
let primary = true;
|
|
200
|
+
let size = null;
|
|
201
|
+
let unit = percentage ? '%' : 'px';
|
|
202
|
+
if (childrenArray.length > 1 && i !== primaryIndex) {
|
|
203
|
+
primary = false;
|
|
204
|
+
size = secondaryPaneSize;
|
|
205
|
+
}
|
|
206
|
+
if (elementIsEmpty(child)) {
|
|
207
|
+
size = 0;
|
|
208
|
+
unit = "%";
|
|
209
|
+
}
|
|
210
|
+
return (_jsx(StyledPane, { "$isPrimary": primary, "$isVertical": vertical, "$size": size || 0, "$unit": percentage ? '%' : 'px', children: child }));
|
|
211
|
+
});
|
|
212
|
+
return (_jsxs(StyledContainer, { "$isResizing": resizing, "$isVertical": vertical, "$height": height, "$width": width, ref: containerRef, onMouseMove: handleMouseMove, onTouchMove: handleTouchMove, onMouseUp: handleMouseUp, onTouchEnd: handleMouseUp, children: [wrappedChildren[0], !thereAreChildrenEmpty() &&
|
|
213
|
+
_jsx(StyledSplitter, { "$isResizing": resizing, "$isVertical": vertical, role: "separator", ref: splitterRef, onMouseDown: handleSplitterMouseDown, onTouchStart: handleSplitterMouseDown }), wrappedChildren.length > 1 && wrappedChildren[1]] }));
|
|
214
|
+
};
|
|
215
|
+
export default TMSplitterLayout;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DataListViewModes } from '@topconsultnpm/sdk-ts-beta';
|
|
2
|
+
import { DataGridTypes } from 'devextreme-react/cjs/data-grid';
|
|
3
|
+
declare const TMDataListItemViewer: ({ dataListId, value, viewMode }: {
|
|
4
|
+
dataListId?: number;
|
|
5
|
+
value?: string;
|
|
6
|
+
viewMode?: DataListViewModes;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TMDataListItemViewer;
|
|
9
|
+
export declare const cellRenderDataListItem: (data: DataGridTypes.ColumnCellTemplateData, dataListId?: number, viewMode?: DataListViewModes) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { DataListCacheService, DataListViewModes } from '@topconsultnpm/sdk-ts-beta';
|
|
4
|
+
import { TMImageLibrary } from '../../helper';
|
|
5
|
+
import { StyledDivHorizontal } from '../base/Styled';
|
|
6
|
+
import TMTooltip from '../base/TMTooltip';
|
|
7
|
+
const TMDataListItemViewer = ({ dataListId, value, viewMode = DataListViewModes.ImageAndDescription }) => {
|
|
8
|
+
const [dataListItem, setDataListItem] = useState();
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (!dataListId || dataListId <= 0) {
|
|
11
|
+
setDataListItem(undefined);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
value && DataListCacheService.GetAsync(dataListId).then((dl) => {
|
|
15
|
+
console.log(dl);
|
|
16
|
+
if (value.length > 0) {
|
|
17
|
+
setDataListItem(dl?.items?.find(o => o.value == value));
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}, [dataListId, value]);
|
|
21
|
+
let showIcon = viewMode != DataListViewModes.Description;
|
|
22
|
+
return (_jsxs(StyledDivHorizontal, { children: [showIcon && dataListItem && _jsx(TMTooltip, { content: dataListItem.value, children: _jsx(TMImageLibrary, { imageID: dataListItem.imageID }) }), _jsx("p", { style: { textAlign: 'left', marginLeft: showIcon ? '5px' : '' }, children: dataListItem?.name })] }));
|
|
23
|
+
};
|
|
24
|
+
export default TMDataListItemViewer;
|
|
25
|
+
export const cellRenderDataListItem = (data, dataListId, viewMode) => {
|
|
26
|
+
return (_jsx(TMDataListItemViewer, { dataListId: dataListId, value: data.value, viewMode: viewMode }));
|
|
27
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITopMediaSession, MetadataDescriptor } from '@topconsultnpm/sdk-ts-beta';
|
|
3
|
+
import { TID_MID } from '../../ts';
|
|
4
|
+
import { DataGridTypes } from 'devextreme-react/cjs/data-grid';
|
|
5
|
+
export declare const TMMidViewer: ({ tmSession, tid_mid, showCompleteName, showIcon, showId, noneSelectionText }: {
|
|
6
|
+
tmSession?: ITopMediaSession;
|
|
7
|
+
tid_mid: TID_MID | undefined;
|
|
8
|
+
showCompleteName?: boolean;
|
|
9
|
+
showIcon?: boolean;
|
|
10
|
+
showId?: boolean;
|
|
11
|
+
noneSelectionText?: string;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
interface ITMMetadataIcon {
|
|
14
|
+
tid: number | undefined;
|
|
15
|
+
md: MetadataDescriptor | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare const TMMetadataIcon: ({ tid, md }: ITMMetadataIcon) => import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
interface ITMMetadataTooltip {
|
|
19
|
+
tid: number | undefined;
|
|
20
|
+
md: MetadataDescriptor | undefined;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare const TMMetadataTooltip: React.FC<ITMMetadataTooltip>;
|
|
24
|
+
export declare const cellRenderMID: (data: DataGridTypes.ColumnCellTemplateData, noneSelectionText?: string, tid?: number) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const getDisplayAlias: (dcmtTypeName: string | undefined, alias: string | undefined) => string | undefined;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { LocalizeMetadataFormats, SDKUI_Localizator, getCompleteMetadataName, getTIDByMID } from '../../helper';
|
|
4
|
+
import { DcmtTypeListCacheService, MetadataDataDomains, MetadataDataTypes, MetadataFormats, SDK_Globals } from '@topconsultnpm/sdk-ts-beta';
|
|
5
|
+
import { StyledDivHorizontal, StyledTooltipContainer, StyledTooltipItem, StyledTooltipSeparatorItem } from '../base/Styled';
|
|
6
|
+
import TMTooltip from '../base/TMTooltip';
|
|
7
|
+
import mdText from '../../assets/Metadata/MetadataText_16.png';
|
|
8
|
+
import mdDate from '../../assets/Metadata/MetadataDateTime_16.png';
|
|
9
|
+
import mdNumber from '../../assets/Metadata/MetadataNumeric_16.png';
|
|
10
|
+
import mdComputed from '../../assets/Metadata/MetadataComputed_32.png';
|
|
11
|
+
import mdNumerator from '../../assets/Metadata/Numerator_32.png';
|
|
12
|
+
import mdUser from '../../assets/Metadata/UserLevel_Member_32.png';
|
|
13
|
+
import mdDataList from '../../assets/Metadata/DataList_32.png';
|
|
14
|
+
import mdDynDataList from '../../assets/Metadata/DynamicDataList_32.png';
|
|
15
|
+
import mdSpecial from '../../assets/Metadata/MetadataSpecial_32.png';
|
|
16
|
+
export const TMMidViewer = ({ tmSession, tid_mid, showCompleteName, showIcon = false, showId = false, noneSelectionText = `<${SDKUI_Localizator.NoneSelection}>` }) => {
|
|
17
|
+
const [md, setMd] = useState();
|
|
18
|
+
const [dcmtTypeName, setDcmtTypeName] = useState();
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (!tid_mid || !tid_mid.tid || tid_mid.tid <= 0) {
|
|
21
|
+
setMd(undefined);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
DcmtTypeListCacheService.GetAsync(tid_mid.tid, true, tmSession).then((dtd) => {
|
|
25
|
+
setDcmtTypeName(getDisplayAlias(SDK_Globals.useLocalizedName ? dtd?.nameLoc : dtd?.name, tid_mid.aliasTID));
|
|
26
|
+
let md = dtd?.metadata?.find(o => o.id == tid_mid.mid);
|
|
27
|
+
setMd(md);
|
|
28
|
+
});
|
|
29
|
+
}, [tid_mid]);
|
|
30
|
+
const displayName = () => {
|
|
31
|
+
if (!md)
|
|
32
|
+
return noneSelectionText;
|
|
33
|
+
if (showCompleteName)
|
|
34
|
+
return getCompleteMetadataName(dcmtTypeName, SDK_Globals.useLocalizedName ? md.nameLoc : md.name);
|
|
35
|
+
return SDK_Globals.useLocalizedName ? md.nameLoc : md.name;
|
|
36
|
+
};
|
|
37
|
+
return (_jsxs(StyledDivHorizontal, { children: [showIcon && _jsx(TMMetadataIcon, { tid: tid_mid?.tid, md: md }), _jsx("p", { style: { textAlign: 'left', marginLeft: showIcon ? '5px' : '', color: md?.isRequired == 1 ? 'red' : undefined }, children: displayName() }), showId && _jsx("p", { style: { padding: '0px 3px' }, children: `(MID: ${tid_mid?.mid})` })] }));
|
|
38
|
+
};
|
|
39
|
+
export const TMMetadataIcon = ({ tid, md }) => {
|
|
40
|
+
if (!md)
|
|
41
|
+
return null;
|
|
42
|
+
let icon = null;
|
|
43
|
+
switch (md.dataDomain) {
|
|
44
|
+
case MetadataDataDomains.Computed:
|
|
45
|
+
icon = _jsx("img", { height: 16, width: 16, src: mdComputed, alt: '' });
|
|
46
|
+
break;
|
|
47
|
+
case MetadataDataDomains.DataList:
|
|
48
|
+
icon = _jsx("img", { height: 16, width: 16, src: mdDataList, alt: '' });
|
|
49
|
+
break;
|
|
50
|
+
case MetadataDataDomains.DynamicDataList:
|
|
51
|
+
icon = _jsx("img", { height: 16, width: 16, src: mdDynDataList, alt: '' });
|
|
52
|
+
break;
|
|
53
|
+
case MetadataDataDomains.Numerator:
|
|
54
|
+
icon = _jsx("img", { height: 16, width: 16, src: mdNumerator, alt: '' });
|
|
55
|
+
break;
|
|
56
|
+
case MetadataDataDomains.Special:
|
|
57
|
+
icon = _jsx("img", { height: 16, width: 16, src: mdSpecial, alt: '' });
|
|
58
|
+
break;
|
|
59
|
+
case MetadataDataDomains.UserID:
|
|
60
|
+
icon = _jsx("img", { height: 16, width: 16, src: mdUser, alt: '' });
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
switch (md.dataType) {
|
|
64
|
+
case MetadataDataTypes.Varchar:
|
|
65
|
+
icon = _jsx("img", { src: mdText, alt: '' });
|
|
66
|
+
break;
|
|
67
|
+
case MetadataDataTypes.Number:
|
|
68
|
+
icon = _jsx("img", { src: mdNumber, alt: '' });
|
|
69
|
+
break;
|
|
70
|
+
case MetadataDataTypes.DateTime:
|
|
71
|
+
icon = _jsx("img", { src: mdDate, alt: '' });
|
|
72
|
+
break;
|
|
73
|
+
default:
|
|
74
|
+
icon = _jsx(_Fragment, {});
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
return (_jsx(_Fragment, { children: icon ? _jsx(TMMetadataTooltip, { tid: tid, md: md, children: icon }) : null }));
|
|
80
|
+
};
|
|
81
|
+
export const TMMetadataTooltip = ({ tid, md, children }) => {
|
|
82
|
+
const _setDefaultValueForUI = (defaultValue) => {
|
|
83
|
+
if (!defaultValue)
|
|
84
|
+
return defaultValue;
|
|
85
|
+
if (!defaultValue.includes("TM_GetViewLink"))
|
|
86
|
+
return defaultValue;
|
|
87
|
+
return "=TM_GetViewLink(...)";
|
|
88
|
+
};
|
|
89
|
+
const renderTooltipContent = (tid, md) => {
|
|
90
|
+
return (!md ? null
|
|
91
|
+
: _jsxs(StyledTooltipContainer, { children: [_jsx(StyledTooltipItem, { children: `${SDK_Globals.useLocalizedName ? md.nameLoc : md.name} (TID: ${tid}, MID: ${md.id})` }), md.description && _jsx(StyledTooltipItem, { children: md.description }), _jsx(StyledTooltipSeparatorItem, {}), _jsx(StyledTooltipItem, { children: `${md.dataType} ${md.dataType == MetadataDataTypes.Varchar ? `(${md.length ?? 0})` : md.dataType == MetadataDataTypes.Number ? `(${md.length ?? 0},${md.scale ?? 0})` : ''} ${md.isRequired == 1 ? `${SDKUI_Localizator.Required} ${md.isPrimaryKey == 1 ? ' (PK)' : ''}` : SDKUI_Localizator.RequiredNOT} ` }), md.dataDomain && _jsx(StyledTooltipItem, { children: md.dataDomain }), md.isLexProt == 1 && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.LexProt}: ${SDKUI_Localizator.Yes}` }), md.isLexProt == 2 && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.LexProt}: ${SDKUI_Localizator.MetadataFlag}` }), md.isLexProt == 3 && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.LexProt}: ${SDKUI_Localizator.Yes} (${SDKUI_Localizator.MetadataFlag})` }), md.isFreeSearchInput && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Search_Free}: ${SDKUI_Localizator.Yes}` }), md.isSpecialSearchOutput && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Search_Special}: ${SDKUI_Localizator.Yes}` }), md.format?.format && md.format.format != MetadataFormats.None && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Format}: ${LocalizeMetadataFormats(md.format.format)}` }), md.defaultValue && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Default}: ${_setDefaultValueForUI(md.defaultValue)}` }), md.fromTID && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.MetadataRoot}: ${md.isRootMID == 1 ? SDKUI_Localizator.Yes : SDKUI_Localizator.No}` }), md.templateMID && _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Template}: ${md.templateMID}` }), md.perm && _jsxs(_Fragment, { children: [_jsx(StyledTooltipItem, { "$color": 'primary', "$marginTop": '5px', children: SDKUI_Localizator.Perms }), _jsx(StyledTooltipSeparatorItem, {}), _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Archive}: ${md.perm.canArchive}` }), _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.View_Metadato}: ${md.perm.canView}` }), _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Search}: ${md.perm.canSearch}` }), _jsx(StyledTooltipItem, { children: `${SDKUI_Localizator.Update}: ${md.perm.canUpdate}` })] })] }));
|
|
92
|
+
};
|
|
93
|
+
return (_jsx("div", { style: { pointerEvents: 'all' }, children: _jsx(TMTooltip, { content: renderTooltipContent(tid, md), children: children }) }));
|
|
94
|
+
};
|
|
95
|
+
export const cellRenderMID = (data, noneSelectionText, tid) => {
|
|
96
|
+
let mid = data.value;
|
|
97
|
+
let calcTid = !tid ? getTIDByMID(mid) : tid;
|
|
98
|
+
return (_jsx(TMMidViewer, { tid_mid: { tid: calcTid, mid: mid }, noneSelectionText: noneSelectionText }));
|
|
99
|
+
};
|
|
100
|
+
export const getDisplayAlias = (dcmtTypeName, alias) => {
|
|
101
|
+
if (!alias)
|
|
102
|
+
return dcmtTypeName;
|
|
103
|
+
let tokens = alias.split('_');
|
|
104
|
+
if (tokens.length != 2)
|
|
105
|
+
return dcmtTypeName;
|
|
106
|
+
let num = tokens[1].replace("A", "");
|
|
107
|
+
if (!num)
|
|
108
|
+
return dcmtTypeName;
|
|
109
|
+
return `${dcmtTypeName}_${num}`;
|
|
110
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DcmtTypeDescriptor, ITopMediaSession } from '@topconsultnpm/sdk-ts-beta';
|
|
3
|
+
import { DataGridTypes } from 'devextreme-react/cjs/data-grid';
|
|
4
|
+
interface ITMDcmtTypeIcon {
|
|
5
|
+
dtd: DcmtTypeDescriptor | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const TMDcmtTypeIcon: React.FC<ITMDcmtTypeIcon>;
|
|
8
|
+
interface ITMDcmtTypeTooltip {
|
|
9
|
+
dtd: DcmtTypeDescriptor | undefined;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const TMDcmtTypeTooltip: React.FC<ITMDcmtTypeTooltip>;
|
|
13
|
+
declare const TMTidViewer: ({ tmSession, tid, showIcon, showId, noneSelectionText }: {
|
|
14
|
+
tmSession?: ITopMediaSession;
|
|
15
|
+
tid?: number;
|
|
16
|
+
showIcon?: boolean;
|
|
17
|
+
showId?: boolean;
|
|
18
|
+
noneSelectionText?: string;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default TMTidViewer;
|
|
21
|
+
export declare const cellRenderTID: (data: DataGridTypes.ColumnCellTemplateData, noneSelectionText?: string) => import("react/jsx-runtime").JSX.Element;
|