@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,117 @@
|
|
|
1
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { ResultTypes } from '@topconsultnpm/sdk-ts-beta';
|
|
4
|
+
import { FontSize, TMColors } from '../../utils/theme';
|
|
5
|
+
export const StyledDivHorizontal = styled.div `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
`;
|
|
11
|
+
export const StyledParagraph = styled.p `
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
padding: 0 10px;
|
|
17
|
+
font-size: 1rem;
|
|
18
|
+
`;
|
|
19
|
+
export const StyledToolbarForm = styled.div `
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
height: 35px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding-left: 10px;
|
|
27
|
+
gap: 2px;
|
|
28
|
+
background-color: ${TMColors.toolbar_background};
|
|
29
|
+
`;
|
|
30
|
+
export const StyledPanelPage = styled.div `
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: calc(100% - 50px);
|
|
33
|
+
top: 50px;
|
|
34
|
+
left: ${(props) => props.$isOpen ? '50px' : '-150%'};
|
|
35
|
+
bottom: 30px;
|
|
36
|
+
border-radius: 0px;
|
|
37
|
+
background: ${TMColors.default_background};
|
|
38
|
+
/* transition: left ease 1000ms; */
|
|
39
|
+
z-index: 1500;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
padding: 10px;
|
|
42
|
+
`;
|
|
43
|
+
export const StyledModalContainer = styled.div `
|
|
44
|
+
position: absolute;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: calc(100%);//TODO: Centralizzare STATUSBAR_HEIGHT
|
|
47
|
+
top: 0;
|
|
48
|
+
left: 0;
|
|
49
|
+
background-color: transparent;
|
|
50
|
+
z-index: 100;//TODO: Devexpress checkbox DataGrid z-index: 2
|
|
51
|
+
`;
|
|
52
|
+
export const StyledResultTypeContainer = styled.div `
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
width: fit-content;
|
|
57
|
+
gap: 5px;
|
|
58
|
+
padding: 6px 3px;
|
|
59
|
+
height: 100%;
|
|
60
|
+
border-radius: 3px;
|
|
61
|
+
color: white;
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
background-color: ${props => props.$resultType === ResultTypes.ERROR ? TMColors.error : props.$resultType === ResultTypes.WARNING ? TMColors.warning : TMColors.success};
|
|
65
|
+
`;
|
|
66
|
+
export const StyledTooltipSeparatorItem = styled.hr `
|
|
67
|
+
width: 75%;
|
|
68
|
+
margin-bottom: 3px;
|
|
69
|
+
`;
|
|
70
|
+
export const StyledTooltipItem = styled.div `
|
|
71
|
+
margin-right: 5px;
|
|
72
|
+
margin-bottom: 3px;
|
|
73
|
+
margin-top: ${props => props.$marginTop || '0px'};
|
|
74
|
+
color: ${TMColors.text_normal};
|
|
75
|
+
font-size: ${props => props.$fontSize || FontSize.defaultFontSize};
|
|
76
|
+
`;
|
|
77
|
+
export const StyledTooltipContainer = styled.div `
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
align-items: flex-start;
|
|
81
|
+
z-index: 100;//TODO: Devexpress checkbox DataGrid z-index: 2
|
|
82
|
+
`;
|
|
83
|
+
export const StyledDraggableDiv = styled.div `
|
|
84
|
+
display: flex;
|
|
85
|
+
cursor: move;
|
|
86
|
+
`;
|
|
87
|
+
export const StyledBadge = styled.div `
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
background-color: ${(props) => props.$backgroundColor};
|
|
92
|
+
color: #fff;
|
|
93
|
+
font-size: 10px;
|
|
94
|
+
padding: 0 6px;
|
|
95
|
+
border-radius: 999em;
|
|
96
|
+
line-height: 16px;
|
|
97
|
+
margin-left: 5px;
|
|
98
|
+
`;
|
|
99
|
+
export const StyledDxGridGroupHeader = styled.div `
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: row;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: flex-start;
|
|
104
|
+
gap: 5px;
|
|
105
|
+
height: 30px;
|
|
106
|
+
font-weight: bold;
|
|
107
|
+
/* background-image: linear-gradient(white, #E4E9F7); */
|
|
108
|
+
background: ${(props) => props.$backgroundColor ? `linear-gradient(90deg, #f0f4fa, ${props.$backgroundColor}) ` : 'linear-gradient(90deg, #f0f4fa, #135596)'} ;
|
|
109
|
+
`;
|
|
110
|
+
const StyledCellRenderObjectIcon = styled.div `
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: row;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
overflow: visible;
|
|
116
|
+
`;
|
|
117
|
+
export const cellRenderObjectIcon = (icon) => { return (_jsxs(StyledCellRenderObjectIcon, { children: [" ", icon, " "] })); };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface AlertVariant {
|
|
2
|
+
variant: string;
|
|
3
|
+
color: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
icon: JSX.Element;
|
|
6
|
+
textColor: string;
|
|
7
|
+
}
|
|
8
|
+
interface AlertModes {
|
|
9
|
+
warning: AlertVariant;
|
|
10
|
+
error: AlertVariant;
|
|
11
|
+
success: AlertVariant;
|
|
12
|
+
info: AlertVariant;
|
|
13
|
+
}
|
|
14
|
+
declare const ShowAlert: ({ mode, message, duration, title }: {
|
|
15
|
+
mode: keyof AlertModes;
|
|
16
|
+
message: string;
|
|
17
|
+
duration?: number;
|
|
18
|
+
title?: string;
|
|
19
|
+
}) => void;
|
|
20
|
+
export default ShowAlert;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useState, useEffect } from 'react';
|
|
3
|
+
import ReactDOM from 'react-dom/client';
|
|
4
|
+
import { IconCloseCircle, IconInfo, IconSuccess, IconWarning } from '../../helper';
|
|
5
|
+
const TMAlertPosition = {
|
|
6
|
+
TOP_RIGHT: { top: '10px', right: '10px', position: 'absolute' },
|
|
7
|
+
TOP_CENTER: { top: '10px', left: '50%', transform: 'translateX(-50%)', position: 'absolute' },
|
|
8
|
+
TOP_LEFT: { top: '10px', left: '10px', position: 'absolute' },
|
|
9
|
+
BOTTOM_RIGHT: { bottom: '10px', right: '10px', position: 'absolute' },
|
|
10
|
+
BOTTOM_LEFT: { bottom: '10px', left: '10px', position: 'absolute' },
|
|
11
|
+
BOTTOM_CENTER: { bottom: '10px', left: '50%', transform: 'translateX(-50%)', position: 'absolute' },
|
|
12
|
+
CENTER_RIGHT: { top: '50%', right: '10px', transform: 'translateY(-50%)', position: 'absolute' },
|
|
13
|
+
CENTER_LEFT: { top: '50%', left: '10px', transform: 'translateY(-50%)', position: 'absolute' },
|
|
14
|
+
CENTER_CENTER: { top: '50%', left: '50%', transform: 'translate(-50%, -50%)', position: 'absolute' },
|
|
15
|
+
};
|
|
16
|
+
const Mode = {
|
|
17
|
+
warning: {
|
|
18
|
+
variant: 'warning',
|
|
19
|
+
color: 'transparent linear-gradient(272deg, #FFFFFF 0%, #EAD305 100%) 0% 0% no-repeat padding-box',
|
|
20
|
+
borderColor: '#ba873d',
|
|
21
|
+
textColor: '#6e5024',
|
|
22
|
+
icon: _jsx(IconWarning, { fontSize: 16, color: '#F0AD4E' }),
|
|
23
|
+
},
|
|
24
|
+
error: {
|
|
25
|
+
variant: 'error',
|
|
26
|
+
color: 'transparent linear-gradient(272deg, #FFFFFF 0%, #E87A8E 100%) 0% 0% no-repeat padding-box',
|
|
27
|
+
borderColor: '#a8413e',
|
|
28
|
+
textColor: '#4a1b1b',
|
|
29
|
+
icon: _jsx(IconCloseCircle, { fontSize: 16, color: '#D9534F' }),
|
|
30
|
+
},
|
|
31
|
+
success: {
|
|
32
|
+
variant: 'success',
|
|
33
|
+
color: 'transparent linear-gradient(272deg, #FFFFFF 0%, #6DB735 100%) 0% 0% no-repeat padding-box',
|
|
34
|
+
borderColor: '#4d994d',
|
|
35
|
+
textColor: '#203d20',
|
|
36
|
+
icon: _jsx(IconSuccess, { fontSize: 16, color: '#5CB85C' }),
|
|
37
|
+
},
|
|
38
|
+
info: {
|
|
39
|
+
variant: 'info',
|
|
40
|
+
color: 'transparent linear-gradient(272deg, #FFFFFF 0%, #679CE8 100%) 0% 0% no-repeat padding-box',
|
|
41
|
+
borderColor: '#285f8f',
|
|
42
|
+
textColor: '#16354f',
|
|
43
|
+
icon: _jsx(IconInfo, { fontSize: 16, color: '#337AB7' }),
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
// const TMAlert = ({ mode, duration = 5000, message, position = 'BOTTOM_CENTER' }: { mode: keyof AlertModes, duration?: number, message: string, position?: keyof typeof TMAlertPosition }) => {
|
|
47
|
+
const TMAlert = ({ mode, duration = 1000, title, message }) => {
|
|
48
|
+
const [currentWidth, setCurrentWidth] = useState(window.innerWidth);
|
|
49
|
+
const [container] = useState(document.getElementsByClassName('tm-alert-temporary-container'));
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
window.addEventListener('resize', () => {
|
|
52
|
+
setCurrentWidth(window.innerWidth);
|
|
53
|
+
});
|
|
54
|
+
}, [currentWidth]);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
const tiemout = setTimeout(() => {
|
|
57
|
+
let container = document.getElementsByClassName('tm-alert-temporary-container');
|
|
58
|
+
container[0]?.remove();
|
|
59
|
+
}, duration + 50);
|
|
60
|
+
return () => {
|
|
61
|
+
clearTimeout(tiemout);
|
|
62
|
+
};
|
|
63
|
+
}, [container]);
|
|
64
|
+
return (_jsx("div", { style: { width: '100%', paddingTop: '3px', position: 'absolute', bottom: `10px`, right: '10px' }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms`, position: 'relative', float: 'right', zIndex: '20000999', width: '356px', height: '86px', borderRadius: '8px', overflow: 'hidden', border: '2px white solid', boxShadow: '0px 3px 6px #00000029' }, children: _jsx("div", { className: 'tm-alert-animation-style', style: { animationDuration: `${duration}ms` }, children: _jsxs("div", { className: 'tm-alert-container', style: { background: Mode[mode].color, animationDuration: `${duration}ms` }, children: [_jsxs("div", { className: "tm-alert-context", style: { position: 'relative' }, children: [_jsx("div", { className: 'tm-alert-icon', style: { position: 'absolute', top: '12px', left: '12px', paddingTop: '1px' }, children: Mode[mode].icon }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: '15px', left: '45px', textAlign: 'left', fontSize: '1.1rem', fontWeight: 'bold', maxWidth: '280px' }, children: title }), _jsx("div", { style: { color: Mode[mode].textColor, position: 'absolute', top: '35px', left: '45px', textAlign: 'left', fontSize: '1rem', maxWidth: '280px' }, children: message })] }), _jsx("div", { className: 'tm-alert-loading', style: { backgroundImage: `linear-gradient(to right, ${Mode[mode].borderColor}, ${Mode[mode].textColor})`, animationDuration: `${duration}ms` } })] }) }) }) }));
|
|
65
|
+
};
|
|
66
|
+
const ShowAlert = ({ mode, message, duration, title }) => {
|
|
67
|
+
let container = document.createElement('div');
|
|
68
|
+
container.setAttribute("class", 'tm-alert-temporary-container');
|
|
69
|
+
document.body.appendChild(container);
|
|
70
|
+
// container.style.position = 'relative'
|
|
71
|
+
container.style.display = 'flex';
|
|
72
|
+
const root = ReactDOM.createRoot(container);
|
|
73
|
+
root.render(_jsx(React.StrictMode, { children: _jsx(TMAlert, { message: message, mode: mode, duration: duration, title: title }) }));
|
|
74
|
+
};
|
|
75
|
+
export default ShowAlert;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITMEditorBase } from './TMEditorBase';
|
|
3
|
+
export type ButtonColors = 'error' | 'warning' | 'success' | 'info' | 'primary' | 'secondary' | 'tertiary' | 'standard' | 'primaryOutline' | 'secondaryOutline' | 'tertiaryOutline' | 'errorOutline' | 'warningOutline' | 'successOutline' | 'infoOutline';
|
|
4
|
+
type ButtonStyle = 'normal' | 'toolbar' | 'icon' | 'text';
|
|
5
|
+
interface ITMButton extends ITMEditorBase {
|
|
6
|
+
color?: ButtonColors;
|
|
7
|
+
btnStyle?: ButtonStyle;
|
|
8
|
+
caption?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
icon?: any;
|
|
11
|
+
keyGesture?: string;
|
|
12
|
+
padding?: string;
|
|
13
|
+
showTooltip?: boolean;
|
|
14
|
+
onClick?: VoidFunction;
|
|
15
|
+
}
|
|
16
|
+
declare const TMButton: React.FunctionComponent<ITMButton>;
|
|
17
|
+
export default TMButton;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { getColor } from '../../helper';
|
|
4
|
+
import { FontSize } from '../../utils/theme';
|
|
5
|
+
import TMTooltip from './TMTooltip';
|
|
6
|
+
const StyledNormalButton = styled.button.withConfig({ shouldForwardProp: prop => !['text'].includes(prop) }) `
|
|
7
|
+
font-size: ${props => props.fontSize};
|
|
8
|
+
width: ${props => props.width && props.width};
|
|
9
|
+
height: ${props => props.height && props.height};
|
|
10
|
+
min-width: 60px;
|
|
11
|
+
min-height: 25px;
|
|
12
|
+
padding: 3px 10px;
|
|
13
|
+
border: none;
|
|
14
|
+
cursor: ${props => !props.disabled && 'pointer'};
|
|
15
|
+
border-radius: 3px;
|
|
16
|
+
border: 1px solid;
|
|
17
|
+
border-color: ${props => !props.disabled ? props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'white' : 'rgb(225, 225, 225)'};
|
|
18
|
+
background-color: ${props => !props.disabled ? props.color?.toLowerCase().includes('outline') ? 'white' : getColor(props.color) : 'rgb(225, 225, 225)'};
|
|
19
|
+
color: ${props => !props.disabled ? props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'white' : 'rgb(160, 160, 160)'};
|
|
20
|
+
&:hover {
|
|
21
|
+
border-color: ${props => !props.disabled ? !props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'white' : 'rgb(225, 225, 225)'};
|
|
22
|
+
background-color: ${props => !props.disabled ? !props.color?.toLowerCase().includes('outline') ? 'white' : getColor(props.color.split('Outline')[0]) : 'rgb(225, 225, 225)'};
|
|
23
|
+
color: ${props => !props.disabled ? !props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'white' : 'rgb(160, 160, 160)'};
|
|
24
|
+
}
|
|
25
|
+
`;
|
|
26
|
+
const StyledToolbarButton = styled.button.withConfig({ shouldForwardProp: prop => !['text'].includes(prop) }) `
|
|
27
|
+
font-size: ${props => props.fontSize ? props.fontSize : '18px'};
|
|
28
|
+
width: 30px;
|
|
29
|
+
height: 30px;
|
|
30
|
+
padding: 5px;
|
|
31
|
+
border-radius: 50px;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex: 1;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
border: none;
|
|
37
|
+
cursor: ${props => !props.disabled && 'pointer'};
|
|
38
|
+
border: 1px solid;
|
|
39
|
+
border-color: ${props => !props.disabled ? props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'none' : 'rgb(225, 225, 225)'};
|
|
40
|
+
background-color: ${props => !props.disabled ? props.color?.toLowerCase().includes('outline') ? 'white' : getColor(props.color) : 'rgb(225, 225, 225)'};
|
|
41
|
+
color: ${props => !props.disabled ? props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'white' : 'rgb(160, 160, 160)'};
|
|
42
|
+
&:hover {
|
|
43
|
+
border-color: ${props => !props.disabled ? !props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'white' : 'rgb(225, 225, 225)'};
|
|
44
|
+
background-color: ${props => !props.disabled ? !props.color?.toLowerCase().includes('outline') ? 'white' : getColor(props.color.split('Outline')[0]) : 'rgb(225, 225, 225)'};
|
|
45
|
+
color: ${props => !props.disabled ? !props.color?.toLowerCase().includes('outline') ? getColor(props.color.split('Outline')[0]) : 'white' : 'rgb(160, 160, 160)'};
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
const StyledIconButton = styled.button.withConfig({ shouldForwardProp: prop => !['text'].includes(prop) }) `
|
|
49
|
+
font-size: ${props => props.fontSize};
|
|
50
|
+
min-width: 10px;
|
|
51
|
+
min-height: 10px;
|
|
52
|
+
padding: ${props => props.padding ?? '0px'};
|
|
53
|
+
display: flex;
|
|
54
|
+
border: none;
|
|
55
|
+
flex: 1;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
cursor: ${props => !props.disabled && 'pointer'};
|
|
59
|
+
background-color: transparent;
|
|
60
|
+
color: ${props => !props.disabled ? getColor(props.color) : 'rgb(180, 180, 180)'};
|
|
61
|
+
user-select: none;
|
|
62
|
+
`;
|
|
63
|
+
const StyledTextButton = styled.button.withConfig({ shouldForwardProp: prop => !['text'].includes(prop) }) `
|
|
64
|
+
font-size: ${props => props.fontSize};
|
|
65
|
+
width: ${props => props.width && props.width};
|
|
66
|
+
height: ${props => props.height && props.height};
|
|
67
|
+
min-width: 60px;
|
|
68
|
+
min-height: 30px;
|
|
69
|
+
padding: 3px;
|
|
70
|
+
display: flex;
|
|
71
|
+
border: none;
|
|
72
|
+
flex: 1;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
cursor: ${props => !props.disabled && 'pointer'};
|
|
76
|
+
border-radius: 2px;
|
|
77
|
+
background-color: transparent;
|
|
78
|
+
color: ${props => !props.disabled ? getColor(props.color) : 'rgb(231, 231, 231)'};
|
|
79
|
+
user-select: none;
|
|
80
|
+
transition: ease 200ms;
|
|
81
|
+
&:hover {
|
|
82
|
+
background-color: rgb(241, 241, 241);
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
const StyledButtonTooltipHeader = styled.div `
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
justify-content: flex-start;
|
|
89
|
+
align-items: center;
|
|
90
|
+
background-color: white;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 28px;
|
|
93
|
+
padding: 0 5px;
|
|
94
|
+
border-bottom: ${props => props.$description ? '1px solid rgb(210, 210, 210)' : 'none'};
|
|
95
|
+
margin-bottom: ${props => props.$description ? '5px' : '0px'};
|
|
96
|
+
`;
|
|
97
|
+
const StyledButtonTooltipIcon = styled.div `
|
|
98
|
+
margin-right: 5px;
|
|
99
|
+
color: ${props => props.$color ? props.$color : "primary"};
|
|
100
|
+
font-size: '20px';
|
|
101
|
+
`;
|
|
102
|
+
const StyledButtonTooltipItem = styled.div `
|
|
103
|
+
margin-right: 5px;
|
|
104
|
+
color: ${props => props.$color ? props.$color : "primary"};
|
|
105
|
+
font-size: ${props => props.fontSize || FontSize.defaultFontSize};
|
|
106
|
+
`;
|
|
107
|
+
const TMButton = ({ width, height, keyGesture, btnStyle = 'normal', color = 'primary', fontSize = FontSize.defaultFontSize, disabled = false, showTooltip = true, caption, icon, description, padding, elementStyle, onClick = () => { } }) => {
|
|
108
|
+
// const [random, setRandom] = useState(0.0);
|
|
109
|
+
// const [key, setKey] = useState("");
|
|
110
|
+
// let accBtns = keyGesture?.replaceAll(' ', '').split('+')
|
|
111
|
+
// const registerKeyPress = useCallback((e: KeyboardEvent) => {
|
|
112
|
+
// setRandom(Math.random());
|
|
113
|
+
// if (accBtns && accBtns?.length > 1) {
|
|
114
|
+
// if (accBtns[0].toLowerCase() === 'alt') {
|
|
115
|
+
// if (e.altKey) {
|
|
116
|
+
// e.preventDefault()
|
|
117
|
+
// setKey(e.key);
|
|
118
|
+
// }
|
|
119
|
+
// }
|
|
120
|
+
// if (accBtns[0].toLowerCase() === 'ctrl') {
|
|
121
|
+
// if (e.ctrlKey) {
|
|
122
|
+
// e.preventDefault()
|
|
123
|
+
// setKey(e.key);
|
|
124
|
+
// }
|
|
125
|
+
// }
|
|
126
|
+
// if (accBtns[0].toLowerCase() === 'shift') {
|
|
127
|
+
// if (e.shiftKey) {
|
|
128
|
+
// e.preventDefault()
|
|
129
|
+
// setKey(e.key);
|
|
130
|
+
// }
|
|
131
|
+
// }
|
|
132
|
+
// }
|
|
133
|
+
// }, []);
|
|
134
|
+
// useEffect(() => {
|
|
135
|
+
// if (accBtns && key.toLowerCase() === accBtns[1]) { !disabled && onClick && onClick(); setKey('') }
|
|
136
|
+
// }, [random]);
|
|
137
|
+
// useEffect(() => {
|
|
138
|
+
// if (keyGesture) {
|
|
139
|
+
// document.addEventListener("keydown", registerKeyPress);
|
|
140
|
+
// }
|
|
141
|
+
// return () => { document.removeEventListener("keydown", registerKeyPress) }
|
|
142
|
+
// }, [registerKeyPress]);
|
|
143
|
+
const renderedButton = () => {
|
|
144
|
+
if (btnStyle === 'normal') {
|
|
145
|
+
return (_jsx(StyledNormalButton, { width: width, height: height, color: color, caption: caption, disabled: disabled, fontSize: fontSize, onClick: onClick, children: caption }));
|
|
146
|
+
}
|
|
147
|
+
else if (btnStyle === 'toolbar') {
|
|
148
|
+
return (_jsx(StyledToolbarButton, { color: color, caption: caption, disabled: disabled, fontSize: fontSize, onClick: onClick, children: icon }));
|
|
149
|
+
}
|
|
150
|
+
else if (btnStyle === 'icon') {
|
|
151
|
+
return (_jsx(StyledIconButton, { color: color, caption: caption, disabled: disabled, fontSize: fontSize, padding: padding, onClick: onClick, children: icon }));
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
return (_jsx(StyledTextButton, { color: color, caption: caption, disabled: disabled, fontSize: fontSize, onClick: onClick, children: caption }));
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const renderTooltip = () => {
|
|
158
|
+
return (showTooltip &&
|
|
159
|
+
_jsxs(_Fragment, { children: [caption && _jsxs(StyledButtonTooltipHeader, { "$description": description, children: [_jsx(StyledButtonTooltipIcon, { "$color": color, children: icon }), _jsx(StyledButtonTooltipItem, { "$color": color, children: caption })] }), description && _jsx(StyledButtonTooltipItem, { children: description })] }));
|
|
160
|
+
};
|
|
161
|
+
return (_jsx("div", { style: elementStyle, children: showTooltip ? _jsx(TMTooltip, { hideAfterDelay: true, content: renderTooltip(), children: renderedButton() }) : renderedButton() }));
|
|
162
|
+
};
|
|
163
|
+
export default TMButton;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Colors, FontSize } from '../../utils/theme';
|
|
5
|
+
import { IconDown, IconRight, SDKUI_Localizator, useWindowWidth } from '../../helper';
|
|
6
|
+
const StyledClosableContainer = styled.div `
|
|
7
|
+
background-color: rgb(248,248,248);
|
|
8
|
+
border-radius: 5px;
|
|
9
|
+
padding: ${props => props.$padding};
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: ${props => !props.$isMobile ? 'row' : 'column'};
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
width: 100%;
|
|
15
|
+
margin-bottom: 5px;
|
|
16
|
+
`;
|
|
17
|
+
const StyledClosableContext = styled.div `
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
`;
|
|
23
|
+
const StyledClosableLabel = styled.div `
|
|
24
|
+
/* color: black; */
|
|
25
|
+
font-size: ${FontSize.defaultFontSize};
|
|
26
|
+
width: ${props => props.$inline ? '100%' : !props.$isMobile && '180px'};
|
|
27
|
+
padding: 1px;
|
|
28
|
+
`;
|
|
29
|
+
const StyledClosableItems = styled.div `
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
width: ${props => props.$inline ? '100%' : !props.$isMobile && 'calc(100% - 180px)'};
|
|
35
|
+
`;
|
|
36
|
+
const StyledClosableItem = styled.div `
|
|
37
|
+
/* font-weight: bold; */
|
|
38
|
+
font-size: ${FontSize.defaultFontSize};
|
|
39
|
+
padding: 2px;
|
|
40
|
+
`;
|
|
41
|
+
const StyledClosabelIcon = styled.div `
|
|
42
|
+
/* color: ${Colors.primary}; */
|
|
43
|
+
font-size: ${FontSize.defaultFontSize};
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: flex-start;
|
|
49
|
+
padding: 2px;
|
|
50
|
+
user-select: none;
|
|
51
|
+
`;
|
|
52
|
+
const StyledClosableItemsCount = styled.div `
|
|
53
|
+
/* color: ${Colors.primary}; */
|
|
54
|
+
font-size: ${FontSize.defaultFontSize};
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
margin-right: 5px;
|
|
57
|
+
user-select: none;
|
|
58
|
+
`;
|
|
59
|
+
const TMClosableList = ({ dataSource, visibility = false, label, inline = false, hasPadding = true }) => {
|
|
60
|
+
const [status, setStatus] = useState(visibility);
|
|
61
|
+
let width = useWindowWidth();
|
|
62
|
+
const renderedItems = () => {
|
|
63
|
+
return (dataSource.map((item, index) => (_jsx(StyledClosableItem, { children: item }, index))));
|
|
64
|
+
};
|
|
65
|
+
return (_jsxs(StyledClosableContainer, { "$isMobile": width < 1024, "$padding": hasPadding ? '5px' : '0', children: [_jsxs(StyledClosableContext, { children: [label && _jsxs(StyledClosableLabel, { "$isMobile": width < 640, "$inline": inline, children: [label, ":"] }), status ?
|
|
66
|
+
_jsxs(StyledClosableItems, { "$isMobile": width < 640, "$inline": inline, children: [" ", renderedItems(), " "] }) :
|
|
67
|
+
_jsxs(StyledClosableItems, { "$isMobile": width < 640, "$inline": inline, children: [" ", _jsxs(StyledClosableItem, { children: [" ", dataSource[0], " "] }), " "] })] }), dataSource.length > 1 && _jsxs(StyledClosabelIcon, { onClick: () => setStatus(!status), children: [!status && _jsxs(StyledClosableItemsCount, { children: [" (", _jsx("span", { children: "+" }), " ", dataSource.length - 1, " ", dataSource.length === 2 ? SDKUI_Localizator.OneMore : SDKUI_Localizator.More, ") "] }), !status ? _jsx(IconRight, { fontSize: 14 }) : _jsx(IconDown, { fontSize: 14 })] })] }));
|
|
68
|
+
};
|
|
69
|
+
export default TMClosableList;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const useContextMenu: () => {
|
|
3
|
+
clicked: boolean;
|
|
4
|
+
setClicked: React.Dispatch<React.SetStateAction<boolean>>;
|
|
5
|
+
points: {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
};
|
|
9
|
+
setPoints: React.Dispatch<React.SetStateAction<{
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
}>>;
|
|
13
|
+
};
|
|
14
|
+
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
15
|
+
$top: number;
|
|
16
|
+
$left: number;
|
|
17
|
+
}>> & string;
|
|
18
|
+
export declare const MenuOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
+
interface ITMContextMenu {
|
|
20
|
+
menuData: any[];
|
|
21
|
+
onMenuItemClick?: (item: string) => void;
|
|
22
|
+
top: number;
|
|
23
|
+
left: number;
|
|
24
|
+
}
|
|
25
|
+
declare const TMContextMenu: React.FunctionComponent<ITMContextMenu>;
|
|
26
|
+
export default TMContextMenu;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { Colors, FontSize } from '../../utils/theme';
|
|
5
|
+
// #region Hook useContextMenu
|
|
6
|
+
export const useContextMenu = () => {
|
|
7
|
+
// boolean value to determine if the user has right clicked
|
|
8
|
+
const [clicked, setClicked] = useState(false);
|
|
9
|
+
// allows us to track the x,y coordinates of the users right click
|
|
10
|
+
const [points, setPoints] = useState({ x: 0, y: 0 });
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
// reset clicked to false on user click
|
|
13
|
+
const handleClick = () => {
|
|
14
|
+
setClicked(false);
|
|
15
|
+
};
|
|
16
|
+
// add listener for user click
|
|
17
|
+
document.addEventListener("click", handleClick);
|
|
18
|
+
// clean up listener function to avoid memory leaks
|
|
19
|
+
return () => {
|
|
20
|
+
document.removeEventListener("click", handleClick);
|
|
21
|
+
};
|
|
22
|
+
}, []);
|
|
23
|
+
return { clicked, setClicked, points, setPoints };
|
|
24
|
+
};
|
|
25
|
+
// #endregion
|
|
26
|
+
export const Container = styled.div `
|
|
27
|
+
position: absolute;
|
|
28
|
+
padding: 5px 5px;
|
|
29
|
+
background-color: white;
|
|
30
|
+
width: max-content;
|
|
31
|
+
height: max-content;
|
|
32
|
+
border-radius: 2px;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
justify-content: flex-start;
|
|
36
|
+
align-items: center;
|
|
37
|
+
box-shadow: 2px 2px 10px #00000030;
|
|
38
|
+
z-index: 2;
|
|
39
|
+
top: ${(props) => props.$top || 0}px;
|
|
40
|
+
left: ${(props) => props.$left || 0}px;
|
|
41
|
+
`;
|
|
42
|
+
export const MenuOption = styled.div `
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 20px;
|
|
45
|
+
padding: 3px;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
font-size: ${FontSize.defaultFontSize};
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
color: ${Colors.primary};
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
const TMContextMenu = ({ menuData, top, left, onMenuItemClick }) => {
|
|
54
|
+
return (_jsx(_Fragment, { children: _jsx(Container, { "$top": top, "$left": left, children: menuData.map((item, index) => (_jsx(MenuOption, { onClick: (e) => onMenuItemClick?.(e.target.innerText), children: item.text }, index))) }) }));
|
|
55
|
+
};
|
|
56
|
+
export default TMContextMenu;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Colors, ITMEditorBase } from './TMEditorBase';
|
|
3
|
+
interface ITMDropDown extends ITMEditorBase {
|
|
4
|
+
dataSource?: any[];
|
|
5
|
+
color?: Colors;
|
|
6
|
+
value?: string | number | undefined;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onValueChanged?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const TMDropDown: React.FC<ITMDropDown>;
|
|
11
|
+
export default TMDropDown;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { FontSize } from '../../utils/theme';
|
|
5
|
+
import { getColor } from "../../helper/helpers";
|
|
6
|
+
const StyledDropDownContainer = styled.div.withConfig({ shouldForwardProp: prop => !['labelPosition'].includes(prop) }) `
|
|
7
|
+
width: ${props => props.width};
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: ${props => props.labelPosition === 'left' ? 'row' : 'column'};
|
|
10
|
+
justify-content: flex-start;
|
|
11
|
+
align-items: ${props => props.labelPosition === 'left' ? 'center' : 'flex-start'};;
|
|
12
|
+
position: relative;
|
|
13
|
+
`;
|
|
14
|
+
const StyledDropDown = styled.select.withConfig({ shouldForwardProp: prop => !['flexBase'].includes(prop) }) `
|
|
15
|
+
width: ${props => props.width};
|
|
16
|
+
padding: 3px 15px 3px 5px;
|
|
17
|
+
border: 1px solid;
|
|
18
|
+
border-color: ${props => !props.disabled ? getColor(props.color) : 'rgb(180,180,180)'};;
|
|
19
|
+
color: ${props => getColor(props.color)};
|
|
20
|
+
border-radius: 5px;
|
|
21
|
+
min-width: 70px;
|
|
22
|
+
/* &:focus{
|
|
23
|
+
outline: none;
|
|
24
|
+
} */
|
|
25
|
+
font-size: ${props => props.fontSize};
|
|
26
|
+
flex: ${props => 10 - props.flexBase};
|
|
27
|
+
&::placeholder {
|
|
28
|
+
color: ${props => getColor(props.color)};
|
|
29
|
+
font-size: ${props => props.fontSize};
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const StyledDropDownIcon = styled.div.withConfig({ shouldForwardProp: prop => !['labelPosition'].includes(prop) }) `
|
|
33
|
+
color: ${props => !props.disabled ? getColor(props.color) : 'rgb(180,180,180)'};
|
|
34
|
+
width: 25px;
|
|
35
|
+
height: 25px;
|
|
36
|
+
margin-right: 2px;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
font-size: 18px;
|
|
41
|
+
user-select: none;
|
|
42
|
+
`;
|
|
43
|
+
const StyledDropDownLabel = styled.div.withConfig({ shouldForwardProp: prop => !['flexBase'].includes(prop) }) `
|
|
44
|
+
font-size: ${props => props.fontSize} ;
|
|
45
|
+
color: ${props => !props.disabled ? getColor(props.color) : 'rgb(180,180,180)'};
|
|
46
|
+
flex: ${props => props.flexBase};
|
|
47
|
+
transform: translateY(1px);
|
|
48
|
+
user-select: none;
|
|
49
|
+
padding-right: 10px;
|
|
50
|
+
`;
|
|
51
|
+
const TMDropDown = ({ disabled = false, elementStyle, isModifiedWhen, labelPosition = 'left', flexBase = 1, label, icon, width = '100%', fontSize = FontSize.defaultFontSize, dataSource, color = 'primary', value, onValueChanged }) => {
|
|
52
|
+
const [currentColor, setCurrentColor] = useState(color);
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
setCurrentColor(isModifiedWhen ? 'tertiary' : color);
|
|
55
|
+
}, [isModifiedWhen, color]);
|
|
56
|
+
const renderedLeftLabelTextBox = () => {
|
|
57
|
+
return (_jsx("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'flex-start', alignItems: 'flex-start', width: '100%' }, children: _jsxs(StyledDropDownContainer, { labelPosition: labelPosition, width: width, children: [icon && _jsx(StyledDropDownIcon, { disabled: disabled, labelPosition: labelPosition, color: currentColor, children: icon }), label && _jsx(StyledDropDownLabel, { disabled: disabled, flexBase: flexBase, color: currentColor, fontSize: fontSize, children: label }), _jsx(StyledDropDown, { disabled: disabled, flexBase: flexBase, fontSize: fontSize, width: width, color: currentColor, value: value, onChange: onValueChanged, children: dataSource?.map((data, index) => (_jsx("option", { value: data.value, children: data.display }, index))) })] }) }));
|
|
58
|
+
};
|
|
59
|
+
const renderedTopLabelTextBox = () => {
|
|
60
|
+
return (_jsxs(StyledDropDownContainer, { labelPosition: labelPosition, width: width, children: [_jsx("div", { style: { display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginBottom: '2px', marginTop: '3px', width: '100%' }, children: _jsxs("div", { style: { display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'center' }, children: [icon && _jsx(StyledDropDownIcon, { disabled: disabled, labelPosition: labelPosition, color: currentColor, children: icon }), label && _jsx(StyledDropDownLabel, { disabled: disabled, flexBase: flexBase, color: currentColor, fontSize: fontSize, children: label })] }) }), _jsx("div", { style: { width: '100%', display: 'flex', flexDirection: 'row', position: 'relative' }, children: _jsx(StyledDropDown, { disabled: disabled, flexBase: flexBase, fontSize: fontSize, width: width, color: currentColor, value: value, onChange: onValueChanged, children: dataSource?.map((data, index) => (_jsx("option", { value: data.value, children: data.display }, index))) }) })] }));
|
|
61
|
+
};
|
|
62
|
+
return (_jsx("div", { style: elementStyle, children: labelPosition === 'left' ? renderedLeftLabelTextBox() : renderedTopLabelTextBox() }));
|
|
63
|
+
};
|
|
64
|
+
export default TMDropDown;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ITMDropDownMenu {
|
|
2
|
+
content: JSX.Element;
|
|
3
|
+
color?: string;
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
borderRadius?: string;
|
|
7
|
+
items?: ITMDropDownMenuItem[];
|
|
8
|
+
}
|
|
9
|
+
export interface ITMDropDownMenuItem {
|
|
10
|
+
icon?: any;
|
|
11
|
+
text: any;
|
|
12
|
+
items?: ITMDropDownMenuItem[];
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare const TMDropDownMenu: ({ content, items, disabled, color, backgroundColor, borderRadius }: ITMDropDownMenu) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default TMDropDownMenu;
|