diff --git a/Activities/Activities.Python.sln b/Activities/Activities.Python.sln index 7193d6ccb..bc5eb1f11 100644 --- a/Activities/Activities.Python.sln +++ b/Activities/Activities.Python.sln @@ -31,6 +31,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "UiPath.Shared", "Shared\UiPath.Shared\UiPath.Shared.shproj", "{2E040804-8ED9-4FB8-BB8A-4A38479E2A9E}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UiPath.Python.Activities.ViewModels", "Python\UiPath.Python.Activities.ViewModels\UiPath.Python.Activities.ViewModels.csproj", "{5EF1F67E-C7E0-4118-9F7F-E3FA5A1FDE1D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -69,6 +71,10 @@ Global {D2C94889-1E86-4ABD-9D5E-631B3463DA86}.Debug|Any CPU.Build.0 = Debug|Any CPU {D2C94889-1E86-4ABD-9D5E-631B3463DA86}.Release|Any CPU.ActiveCfg = Release|Any CPU {D2C94889-1E86-4ABD-9D5E-631B3463DA86}.Release|Any CPU.Build.0 = Release|Any CPU + {5EF1F67E-C7E0-4118-9F7F-E3FA5A1FDE1D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5EF1F67E-C7E0-4118-9F7F-E3FA5A1FDE1D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5EF1F67E-C7E0-4118-9F7F-E3FA5A1FDE1D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5EF1F67E-C7E0-4118-9F7F-E3FA5A1FDE1D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Activities/Python/UiPath.Python.Activities.Design/DesignerMetadata.cs b/Activities/Python/UiPath.Python.Activities.Design/DesignerMetadata.cs index fca17f9cf..8aef232af 100644 --- a/Activities/Python/UiPath.Python.Activities.Design/DesignerMetadata.cs +++ b/Activities/Python/UiPath.Python.Activities.Design/DesignerMetadata.cs @@ -19,6 +19,8 @@ public void Register() builder.AddCustomAttributes(typeof(PythonScope), new DesignerAttribute(typeof(PythonScopeDesigner))); builder.AddCustomAttributes(typeof(LoadScript), new DesignerAttribute(typeof(LoadScriptDesigner))); builder.AddCustomAttributes(typeof(RunScript), new DesignerAttribute(typeof(RunScriptDesigner))); + builder.AddCustomAttributes(typeof(GetObject<>), new DesignerAttribute(typeof(GetObjectDesigner))); + builder.AddCustomAttributes(typeof(InvokeMethod), new DesignerAttribute(typeof(InvokeMethodDesigner))); // Browsable false diff --git a/Activities/Python/UiPath.Python.Activities.Design/GetObjectDesigner.xaml b/Activities/Python/UiPath.Python.Activities.Design/GetObjectDesigner.xaml new file mode 100644 index 000000000..31c42064f --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.Design/GetObjectDesigner.xaml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Activities.Design/GetObjectDesigner.xaml.cs b/Activities/Python/UiPath.Python.Activities.Design/GetObjectDesigner.xaml.cs new file mode 100644 index 000000000..a3f2fb0e6 --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.Design/GetObjectDesigner.xaml.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace UiPath.Python.Activities.Design +{ + // Interaction logic for GetObjectDesigner.xaml + public partial class GetObjectDesigner + { + public GetObjectDesigner() + { + InitializeComponent(); + } + } +} diff --git a/Activities/Python/UiPath.Python.Activities.Design/InvokeMethodDesigner.xaml b/Activities/Python/UiPath.Python.Activities.Design/InvokeMethodDesigner.xaml new file mode 100644 index 000000000..2f8180112 --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.Design/InvokeMethodDesigner.xaml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Activities.Design/InvokeMethodDesigner.xaml.cs b/Activities/Python/UiPath.Python.Activities.Design/InvokeMethodDesigner.xaml.cs new file mode 100644 index 000000000..eab402f92 --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.Design/InvokeMethodDesigner.xaml.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace UiPath.Python.Activities.Design +{ + // Interaction logic for InvokeMethodDesigner.xaml + public partial class InvokeMethodDesigner + { + public InvokeMethodDesigner() + { + InitializeComponent(); + } + } +} diff --git a/Activities/Python/UiPath.Python.Activities.Design/LoadScriptDesigner.xaml b/Activities/Python/UiPath.Python.Activities.Design/LoadScriptDesigner.xaml index 48ef0f68d..6b4095cd0 100644 --- a/Activities/Python/UiPath.Python.Activities.Design/LoadScriptDesigner.xaml +++ b/Activities/Python/UiPath.Python.Activities.Design/LoadScriptDesigner.xaml @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Activities.Design/PythonScopeDesigner.xaml b/Activities/Python/UiPath.Python.Activities.Design/PythonScopeDesigner.xaml index 58e10c77c..b4af5a059 100644 --- a/Activities/Python/UiPath.Python.Activities.Design/PythonScopeDesigner.xaml +++ b/Activities/Python/UiPath.Python.Activities.Design/PythonScopeDesigner.xaml @@ -1,27 +1,32 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Activities.Design/RunScriptDesigner.xaml b/Activities/Python/UiPath.Python.Activities.Design/RunScriptDesigner.xaml index 004830f02..00a259147 100644 --- a/Activities/Python/UiPath.Python.Activities.Design/RunScriptDesigner.xaml +++ b/Activities/Python/UiPath.Python.Activities.Design/RunScriptDesigner.xaml @@ -1,33 +1,32 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Activities.Design/Themes/Icons.xaml b/Activities/Python/UiPath.Python.Activities.Design/Themes/Icons.xaml new file mode 100644 index 000000000..b2f48a152 --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.Design/Themes/Icons.xaml @@ -0,0 +1,319 @@ + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + 0.562541,0,0,0.567972,-14.99112,-11.702371 + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Activities/Python/UiPath.Python.Activities.Design/UiPath.Python.Activities.Design.csproj b/Activities/Python/UiPath.Python.Activities.Design/UiPath.Python.Activities.Design.csproj index 045fe1e33..a1ef4e3d6 100644 --- a/Activities/Python/UiPath.Python.Activities.Design/UiPath.Python.Activities.Design.csproj +++ b/Activities/Python/UiPath.Python.Activities.Design/UiPath.Python.Activities.Design.csproj @@ -2,7 +2,7 @@ net461;net6.0-windows - $(ProjectDir)..\..\Output\Activities\Java\ + $(ProjectDir)..\..\Output\Activities\Python\ true false diff --git a/Activities/Python/UiPath.Python.Activities.ViewModels/Resources/ActivitiesMetadataWindows.json b/Activities/Python/UiPath.Python.Activities.ViewModels/Resources/ActivitiesMetadataWindows.json new file mode 100644 index 000000000..55a76f618 --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.ViewModels/Resources/ActivitiesMetadataWindows.json @@ -0,0 +1,42 @@ +{ + "orderedCategoryDisplayNameKeys": [], + "additionalTypeCacheInfo": { + "legacyDesignerActivities": [ + { + "fullName": "UiPath.Python.Activities.GetObject", + "displayNameKey": "PythonObjectNameDisplayName", + "descriptionKey": "PythonObjectDescription", + "iconKey": "PythonIcon.svg" + }, + { + "fullName": "UiPath.Python.Activities.InvokeMethod", + "displayNameKey": "InstanceNameDisplayName", + "descriptionKey": "InstanceDescription", + "iconKey": "PythonIcon.svg" + }, + { + "fullName": "UiPath.Python.Activities.LoadScript", + "displayNameKey": "ScriptFileNameDisplayName", + "descriptionKey": "ScriptFileDescription", + "iconKey": "PythonIcon.svg" + }, + { + "fullName": "UiPath.Python.Activities.PythonScope", + "displayNameKey": "VersionNameDisplayName", + "descriptionKey": "VersionDescription", + "iconKey": "PythonIcon.svg" + }, + { + "fullName": "UiPath.Python.Activities.RunScript", + "displayNameKey": "ScriptFileNameDisplayName", + "descriptionKey": "ScriptFileDescription", + "iconKey": "PythonIcon.svg" + } + ] + }, + "defaultActivityNameBackgroundColor": "#00489D", + "defaultActivityColor": "#00489D", + "defaultActivityIconKey": "PythonIcon.svg", + "assemblyIconKey": "PythonIcon.svg", + "resourceManagerName": "UiPath.Python.Activities.Design.Properties.UiPath.Python.Activities.Design" +} diff --git a/Activities/Python/UiPath.Python.Activities.ViewModels/Resources/Icons/PythonLogo.svg b/Activities/Python/UiPath.Python.Activities.ViewModels/Resources/Icons/PythonLogo.svg new file mode 100644 index 000000000..467b07b26 --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.ViewModels/Resources/Icons/PythonLogo.svg @@ -0,0 +1,265 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Activities/Python/UiPath.Python.Activities.ViewModels/UiPath.Python.Activities.ViewModels.csproj b/Activities/Python/UiPath.Python.Activities.ViewModels/UiPath.Python.Activities.ViewModels.csproj new file mode 100644 index 000000000..8328b373c --- /dev/null +++ b/Activities/Python/UiPath.Python.Activities.ViewModels/UiPath.Python.Activities.ViewModels.csproj @@ -0,0 +1,23 @@ + + + + + net6.0;net6.0-windows + $(ProjectDir)..\..\Output\Activities\Python\ + VIEW_MODELS + UiPath.Python.Activities.ViewModels + UiPath.Activities.Python.ViewModels + + + + + + + + + + All + + + + diff --git a/Activities/Python/UiPath.Python.Activities/Properties/AssemblyInfo.cs b/Activities/Python/UiPath.Python.Activities/Properties/AssemblyInfo.cs index faecfe80c..4932eaf18 100644 --- a/Activities/Python/UiPath.Python.Activities/Properties/AssemblyInfo.cs +++ b/Activities/Python/UiPath.Python.Activities/Properties/AssemblyInfo.cs @@ -1,4 +1,5 @@ using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows.Markup; @@ -18,3 +19,5 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("e270608b-ba9e-4972-a18e-34b93e6552b4")] +[assembly: InternalsVisibleTo("UiPath.Python.Activities.Design")] + diff --git a/Activities/Python/UiPath.Python.Packaging/UiPath.Python.Packaging.csproj b/Activities/Python/UiPath.Python.Packaging/UiPath.Python.Packaging.csproj index a23c06485..19a6abd03 100644 --- a/Activities/Python/UiPath.Python.Packaging/UiPath.Python.Packaging.csproj +++ b/Activities/Python/UiPath.Python.Packaging/UiPath.Python.Packaging.csproj @@ -125,6 +125,11 @@ + + + + + @@ -143,6 +148,12 @@ + + + All + + + All