@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,39 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import ContextMenu from 'devextreme-react/context-menu';
|
|
5
|
+
import { FontSize, TMColors } from '../../utils/theme';
|
|
6
|
+
import { genUniqueId } from '../../helper';
|
|
7
|
+
const StyledContent = styled.div `
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
border-radius: ${props => props.$borderRadius};
|
|
10
|
+
color: ${props => props.$color};
|
|
11
|
+
/* background-color: ${props => props.$backgroundColor}; */
|
|
12
|
+
background-color: transparent;
|
|
13
|
+
opacity: ${props => props.$disabled ? 0.4 : 1};
|
|
14
|
+
pointer-events: ${props => props.$disabled ? 'none' : ''};
|
|
15
|
+
user-select: none;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
|
|
19
|
+
&:focus {
|
|
20
|
+
outline: none;
|
|
21
|
+
border-bottom: ${props => props.$disabled ? '' : '2px solid'};
|
|
22
|
+
border-bottom-color: ${TMColors.primary};
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
const StyledMenuItem = styled.div `
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
gap: 6px;
|
|
30
|
+
width: 100%;
|
|
31
|
+
font-size: ${FontSize.defaultFontSize};
|
|
32
|
+
`;
|
|
33
|
+
const TMDropDownMenu = ({ content, items, disabled = false, color = TMColors.text_normal, backgroundColor = TMColors.default_background, borderRadius }) => {
|
|
34
|
+
const [id, setID] = useState('');
|
|
35
|
+
useEffect(() => { setID(genUniqueId()); }, [content]);
|
|
36
|
+
const renderItemTemplate = (itemData) => (_jsxs(StyledMenuItem, { children: [itemData.icon && _jsx("div", { style: { display: 'flex', alignItems: 'center' }, children: itemData.icon }), _jsx("span", { style: { flexGrow: 1 }, children: itemData.text }), itemData.items && _jsx("span", { className: "dx-icon-spinright dx-icon", style: { marginLeft: '10px' } })] }));
|
|
37
|
+
return (_jsxs(_Fragment, { children: [_jsx(StyledContent, { id: `idContainer${id}`, tabIndex: disabled ? -1 : 0, "$disabled": disabled, "$color": color, "$backgroundColor": backgroundColor, "$borderRadius": borderRadius, children: content }), _jsx(ContextMenu, { target: `#idContainer${id}`, dataSource: items, showEvent: 'click', itemRender: renderItemTemplate, onItemClick: (e) => e.itemData?.onClick?.() })] }));
|
|
38
|
+
};
|
|
39
|
+
export default TMDropDownMenu;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ValidationItem } from "@topconsultnpm/sdk-ts-beta";
|
|
2
|
+
export type Colors = 'error' | 'warning' | 'success' | 'info' | 'primary' | 'secondary' | 'tertiary' | 'standard';
|
|
3
|
+
type IconModes = 'outside' | 'inside' | 'none';
|
|
4
|
+
type LabelModes = 'left' | 'top' | 'none';
|
|
5
|
+
export type Sizes = 'small' | 'medium' | 'large';
|
|
6
|
+
export interface ITMEditorBase {
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
customActionIcon?: any;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
elementStyle?: React.CSSProperties;
|
|
11
|
+
flexBase?: number;
|
|
12
|
+
fontSize?: string;
|
|
13
|
+
height?: string;
|
|
14
|
+
horizontalFlexBase?: number;
|
|
15
|
+
icon?: any;
|
|
16
|
+
iconMode?: IconModes;
|
|
17
|
+
iconSize?: Sizes;
|
|
18
|
+
isModifiedWhen?: boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
labelMode?: LabelModes;
|
|
21
|
+
labelPosition?: 'top' | 'left' | 'right';
|
|
22
|
+
labelAlign?: boolean;
|
|
23
|
+
placeHolder?: string;
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
showId?: boolean;
|
|
26
|
+
value?: any;
|
|
27
|
+
validationItems?: ValidationItem[];
|
|
28
|
+
width?: string;
|
|
29
|
+
onCustomActionClick?: VoidFunction;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const TMCard: ({ borderRadius, onClick, scrollX, scrollY, width, height, children, title, fontSize, fontWeight, showBorder, padding, scroll, backgroundColor, color }: {
|
|
3
|
+
borderRadius?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
scrollX?: boolean;
|
|
6
|
+
scrollY?: boolean;
|
|
7
|
+
width?: string;
|
|
8
|
+
height?: string;
|
|
9
|
+
minWidth?: string;
|
|
10
|
+
minHeight?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
title?: string;
|
|
13
|
+
fontSize?: string;
|
|
14
|
+
fontWeight?: string;
|
|
15
|
+
showBorder?: boolean;
|
|
16
|
+
padding?: boolean;
|
|
17
|
+
scroll?: boolean;
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
color?: string;
|
|
20
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const TMSplitterLayout: ({ animation, showSeparator, separatorColor, separatorSize, direction, children, start, min }: {
|
|
22
|
+
animation?: boolean;
|
|
23
|
+
separatorColor?: string;
|
|
24
|
+
showSeparator?: boolean;
|
|
25
|
+
separatorSize?: number;
|
|
26
|
+
direction?: "horizontal" | "vertical";
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
start?: string[];
|
|
29
|
+
min?: string[];
|
|
30
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, maxHeight, height, minHeight }: {
|
|
32
|
+
onClick?: () => void;
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
minWidth?: string;
|
|
35
|
+
width?: string;
|
|
36
|
+
maxWidth?: string;
|
|
37
|
+
maxHeight?: string;
|
|
38
|
+
fixed?: boolean;
|
|
39
|
+
height?: string;
|
|
40
|
+
minHeight?: string;
|
|
41
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare const TMLayoutContainer: ({ gap, onClick, justifyContent, alignItems, children, direction }: {
|
|
43
|
+
gap?: number;
|
|
44
|
+
justifyContent?: string;
|
|
45
|
+
alignItems?: string;
|
|
46
|
+
onClick?: () => void;
|
|
47
|
+
children: React.ReactNode;
|
|
48
|
+
direction?: "vertical" | "horizontal";
|
|
49
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export { TMCard, TMLayoutItem, TMSplitterLayout };
|
|
51
|
+
export default TMLayoutContainer;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { FontSize, TMColors } from '../../utils/theme';
|
|
5
|
+
const StyledLayoutContainer = styled.div `
|
|
6
|
+
width: 100%;
|
|
7
|
+
position: relative;
|
|
8
|
+
height: 100%;
|
|
9
|
+
/* min-height: max-content; */
|
|
10
|
+
/* min-width: max-content; */
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: ${props => props.$direction === 'horizontal' ? 'row' : 'column'};
|
|
13
|
+
justify-content: ${props => props.$justifyContent};
|
|
14
|
+
align-items: ${props => props.$alignItems};
|
|
15
|
+
/* overflow: ${props => props.$direction === 'horizontal' ? 'auto' : 'hidden'}; */
|
|
16
|
+
/* gap: 3px; */
|
|
17
|
+
`;
|
|
18
|
+
const StyledLayoutItem = styled.div `
|
|
19
|
+
width: ${props => props.$width};
|
|
20
|
+
min-width: ${props => props.$minWidth};
|
|
21
|
+
max-width: ${props => props.$maxWidth};
|
|
22
|
+
max-height: ${props => props.$maxHeight};
|
|
23
|
+
min-height: ${props => props.$minHeight};
|
|
24
|
+
height: ${props => props.$height};
|
|
25
|
+
position: relative;
|
|
26
|
+
`;
|
|
27
|
+
const StyledCardHeader = styled.div `
|
|
28
|
+
width:100% ;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: flex-start;
|
|
33
|
+
padding: 4px 5px;
|
|
34
|
+
background-color: ${props => props.$backgroundColor ?? TMColors.backgroundColorHeader};
|
|
35
|
+
color: ${props => props.$color ?? TMColors.colorHeader};
|
|
36
|
+
border-top-right-radius: ${props => props.$borderRadius && '3px'};
|
|
37
|
+
border-top-left-radius: ${props => props.$borderRadius && '3px'};
|
|
38
|
+
overflow: hidden;
|
|
39
|
+
position: sticky;
|
|
40
|
+
top: 0;
|
|
41
|
+
font-weight: ${props => props.$fontWeight ?? 'normal'};
|
|
42
|
+
`;
|
|
43
|
+
const StyledCardContext = styled.div `
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: ${props => props.$showHeader ? 'calc(100% - 25px);' : '100%'} ;
|
|
46
|
+
overflow: ${props => props.$scroll && 'auto'};
|
|
47
|
+
overflow-y: ${props => props.$scrollY && 'auto'};
|
|
48
|
+
overflow-x: ${props => props.$scrollX && 'auto'};
|
|
49
|
+
background-color: white;
|
|
50
|
+
top: 0;
|
|
51
|
+
padding: ${props => props.$padding ? '5px' : '0'};
|
|
52
|
+
`;
|
|
53
|
+
const TMCard = ({ borderRadius = true, onClick, scrollX = false, scrollY = false, width = '100%', height = '100%', children, title = '', fontSize = FontSize.defaultFontSize, fontWeight, showBorder = true, padding = true, scroll = false, backgroundColor, color }) => {
|
|
54
|
+
return (_jsxs("div", { onClick: onClick, style: { width: width, height: height, fontSize: fontSize, overflow: 'hidden' }, children: [title.length > 0 && _jsx(StyledCardHeader, { "$borderRadius": borderRadius, "$fontWeight": fontWeight, "$backgroundColor": backgroundColor, "$color": color, children: title }), _jsxs(StyledCardContext, { "$scrollX": scrollX, "$scrollY": scrollY, "$scroll": scroll, "$padding": padding, "$showHeader": title.length > 0, style: { border: showBorder ? '2px solid #CAD9EB' : 'none', borderBottomLeftRadius: showBorder ? '3px' : '0', borderBottomRightRadius: showBorder ? '3px' : '0' }, children: [" ", children, " "] })] }));
|
|
55
|
+
};
|
|
56
|
+
const TMSplitterLayout = ({ animation = false, showSeparator = true, separatorColor = '#e4e4e4', separatorSize = 4, direction = 'horizontal', children, start = ['50%', '50%'], min = ['150px', '150px'] }) => {
|
|
57
|
+
function isReactFragment(variableToInspect) {
|
|
58
|
+
if (variableToInspect.type) {
|
|
59
|
+
return variableToInspect.type === React.Fragment;
|
|
60
|
+
}
|
|
61
|
+
return variableToInspect === React.Fragment;
|
|
62
|
+
}
|
|
63
|
+
const sepRef = useRef(null);
|
|
64
|
+
const firstDivRef = useRef(null);
|
|
65
|
+
const secondDivRef = useRef(null);
|
|
66
|
+
const [isFrag, setIsFrag] = useState(isReactFragment(React.Children.toArray(children)[1]));
|
|
67
|
+
useEffect(() => { setIsFrag(isReactFragment(React.Children.toArray(children)[1])); }, [isReactFragment(React.Children.toArray(children)[1])]);
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
const firstDiv = firstDivRef.current;
|
|
70
|
+
const secondDiv = secondDivRef.current;
|
|
71
|
+
const sepDiv = sepRef.current;
|
|
72
|
+
let xCord = 0;
|
|
73
|
+
let yCord = 0;
|
|
74
|
+
const onMouseMoveSep = (e) => {
|
|
75
|
+
if (sepDiv) {
|
|
76
|
+
if (direction === 'horizontal') {
|
|
77
|
+
let tempX = e.clientX - xCord;
|
|
78
|
+
xCord = e.clientX;
|
|
79
|
+
firstDiv.style.width = `calc(${firstDiv?.style.width} + ${tempX}px)`;
|
|
80
|
+
secondDiv.style.width = `calc(${secondDiv?.style.width} - ${tempX}px)`;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
let tempY = e.clientY - yCord;
|
|
84
|
+
yCord = e.clientY;
|
|
85
|
+
firstDiv.style.height = `calc(${firstDiv?.style.height} + ${tempY}px)`;
|
|
86
|
+
secondDiv.style.height = `calc(${secondDiv?.style.height} - ${tempY}px)`;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
const onTouchMoveSep = (e) => {
|
|
91
|
+
if (sepDiv) {
|
|
92
|
+
if (direction === 'horizontal') {
|
|
93
|
+
let tempX = e.touches[0].clientX - xCord;
|
|
94
|
+
xCord = e.touches[0].clientX;
|
|
95
|
+
firstDiv.style.width = `calc(${firstDiv?.style.width} + ${tempX}px)`;
|
|
96
|
+
secondDiv.style.width = `calc(${secondDiv?.style.width} - ${tempX}px)`;
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
let tempY = e.touches[0].clientY - yCord;
|
|
100
|
+
yCord = e.touches[0].clientY;
|
|
101
|
+
firstDiv.style.height = `calc(${firstDiv?.style.height} + ${tempY}px)`;
|
|
102
|
+
secondDiv.style.height = `calc(${secondDiv?.style.height} - ${tempY}px)`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const onMouseUpSep = () => {
|
|
107
|
+
sepDiv.style.userSelect = 'auto';
|
|
108
|
+
firstDiv.style.userSelect = 'auto';
|
|
109
|
+
secondDiv.style.userSelect = 'auto';
|
|
110
|
+
sepDiv.style.backgroundColor = separatorColor;
|
|
111
|
+
if (animation)
|
|
112
|
+
firstDiv.style.transition = 'ease 300ms';
|
|
113
|
+
if (animation)
|
|
114
|
+
secondDiv.style.transition = 'ease 300ms';
|
|
115
|
+
document.removeEventListener('mousemove', onMouseMoveSep);
|
|
116
|
+
document.removeEventListener('touchmove', onTouchMoveSep);
|
|
117
|
+
};
|
|
118
|
+
const onMouseDownSep = (e) => {
|
|
119
|
+
sepDiv.style.userSelect = 'none';
|
|
120
|
+
firstDiv.style.userSelect = 'none';
|
|
121
|
+
secondDiv.style.userSelect = 'none';
|
|
122
|
+
if (animation)
|
|
123
|
+
firstDiv.style.transition = 'none';
|
|
124
|
+
if (animation)
|
|
125
|
+
secondDiv.style.transition = 'none';
|
|
126
|
+
if (direction === 'horizontal') {
|
|
127
|
+
xCord = e.clientX;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
yCord = e.clientY;
|
|
131
|
+
}
|
|
132
|
+
sepDiv.style.backgroundColor = TMColors.tertiary;
|
|
133
|
+
document.addEventListener('mousemove', onMouseMoveSep);
|
|
134
|
+
document.addEventListener('mouseup', onMouseUpSep);
|
|
135
|
+
document.addEventListener('touchmove', onTouchMoveSep);
|
|
136
|
+
document.addEventListener('touchend', onMouseUpSep);
|
|
137
|
+
};
|
|
138
|
+
sepDiv?.addEventListener('mousedown', onMouseDownSep);
|
|
139
|
+
sepDiv?.addEventListener('touchstart', onMouseDownSep);
|
|
140
|
+
return () => { sepDiv?.removeEventListener('mousedown', onMouseDownSep); sepDiv?.removeEventListener('touchstart', onMouseDownSep); };
|
|
141
|
+
}, [firstDivRef, secondDivRef, sepRef, isFrag]);
|
|
142
|
+
return (_jsxs("div", { style: { display: 'flex', width: '100%', height: '100%', flexDirection: direction === 'vertical' ? 'column' : 'row', alignItems: 'flex-start', justifyContent: 'flex-start', position: 'relative' }, children: [_jsx("div", { style: { transition: animation ? 'ease 300ms' : 'none', overflow: 'hidden', height: direction === 'vertical' ? start[0] : '100%', minHeight: direction === 'vertical' ? min[0] : '100%', minWidth: direction === 'vertical' ? '100%' : min[0], width: direction === 'vertical' ? '100%' : start[0] }, ref: firstDivRef, children: React.Children.toArray(children)[0] }), !isFrag && _jsx("div", { ref: sepRef, style: { display: showSeparator ? 'block' : 'none', minWidth: direction === 'vertical' ? '100%' : `${separatorSize}px`, minHeight: direction === 'vertical' ? `${separatorSize}px` : '100%', backgroundColor: separatorColor, cursor: direction === 'vertical' ? 's-resize' : 'e-resize' } }), _jsx("div", { style: { transition: animation ? 'ease 300ms' : 'none', overflow: 'hidden', height: direction === 'vertical' ? start[1] : '100%', minHeight: direction === 'vertical' ? min[1] : '100%', minWidth: direction === 'vertical' ? '100%' : min[1], width: direction === 'vertical' ? '100%' : start[1] }, ref: secondDivRef, children: React.Children.toArray(children)[1] })] }));
|
|
143
|
+
};
|
|
144
|
+
const TMLayoutItem = ({ onClick, children, width = '100%', minWidth, maxWidth, maxHeight, height = '100%', minHeight }) => {
|
|
145
|
+
return (_jsx(StyledLayoutItem, { onClick: onClick, "$height": height, "$maxHeight": maxHeight, "$minHeight": minHeight, "$width": width, "$minWidth": minWidth, "$maxWidth": maxWidth, children: children }));
|
|
146
|
+
};
|
|
147
|
+
const TMLayoutContainer = ({ gap = 3, onClick, justifyContent = 'flex-start', alignItems = 'flex-start', children, direction = 'vertical' }) => {
|
|
148
|
+
const renderedEls = () => { return (React.Children.map(children, child => (child))); };
|
|
149
|
+
return (_jsxs(StyledLayoutContainer, { "$alignItems": alignItems, "$justifyContent": justifyContent, onClick: onClick, "$direction": direction, style: { gap: gap }, children: [" ", renderedEls(), " "] }));
|
|
150
|
+
};
|
|
151
|
+
export { TMCard, TMLayoutItem, TMSplitterLayout };
|
|
152
|
+
export default TMLayoutContainer;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { TMColors } from '../../utils/theme';
|
|
4
|
+
const StyledListItem = styled.li `
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: row;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
position: relative;
|
|
10
|
+
color: ${TMColors.text_normal};
|
|
11
|
+
padding: 4px 5px;
|
|
12
|
+
height: 40px;
|
|
13
|
+
width: 100%;
|
|
14
|
+
font-size: 1rem;
|
|
15
|
+
letter-spacing: 0px;
|
|
16
|
+
|
|
17
|
+
&:hover {
|
|
18
|
+
background-color: ${TMColors.border_normal};
|
|
19
|
+
/* color: ${TMColors.secondary}; */
|
|
20
|
+
/* border-left: 7px solid ${TMColors.primary}; */
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
const StyledListContainer = styled.div `
|
|
25
|
+
height: 100%;
|
|
26
|
+
width: 100%;
|
|
27
|
+
background-color: ${TMColors.default_background};
|
|
28
|
+
padding: 3px;
|
|
29
|
+
border-radius: 2px;
|
|
30
|
+
box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
|
|
31
|
+
`;
|
|
32
|
+
const StyledListContent = styled.div `
|
|
33
|
+
height: 100%;
|
|
34
|
+
width: 100%;
|
|
35
|
+
background-color: ${TMColors.default_background};
|
|
36
|
+
padding: 10px;
|
|
37
|
+
border-radius: 2px;
|
|
38
|
+
box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
|
|
39
|
+
`;
|
|
40
|
+
;
|
|
41
|
+
const TMList = ({ items }) => {
|
|
42
|
+
return (_jsx(StyledListContainer, { children: items?.map((item, index) => {
|
|
43
|
+
return (_jsxs(StyledListItem, { style: { gap: 10 }, onClick: item.onClick, children: [item.icon, item.text] }, index));
|
|
44
|
+
}) }));
|
|
45
|
+
};
|
|
46
|
+
export default TMList;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITMEditorBase, Colors as C } from '../base/TMEditorBase';
|
|
3
|
+
type SelectedValueType = {
|
|
4
|
+
fieldName: string;
|
|
5
|
+
fieldValues: any[];
|
|
6
|
+
};
|
|
7
|
+
interface ITMListView extends ITMEditorBase {
|
|
8
|
+
dataSource?: any[];
|
|
9
|
+
multipleSelect?: boolean;
|
|
10
|
+
searchable?: boolean;
|
|
11
|
+
header?: boolean;
|
|
12
|
+
footer?: boolean;
|
|
13
|
+
selectedListItems?: (e: any[]) => void;
|
|
14
|
+
displayField?: string;
|
|
15
|
+
customListViewItem?: JSX.Element;
|
|
16
|
+
customItemDetails?: JSX.Element;
|
|
17
|
+
hasItemDetails?: boolean;
|
|
18
|
+
detailsFields?: string[];
|
|
19
|
+
color?: C;
|
|
20
|
+
selectedValues?: any[] | SelectedValueType;
|
|
21
|
+
maxHeight?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const TMListView: React.FC<ITMListView>;
|
|
24
|
+
export default TMListView;
|