From c9f6dda26b90b176684446e9cd312098f3840ea8 Mon Sep 17 00:00:00 2001 From: Deyan Nenov Date: Thu, 18 Apr 2024 15:57:35 +0100 Subject: [PATCH 1/6] DYN-6631 - Input/Output Node - part 2 (View customization) (#15022) * initialize definedata model - starting with the model and the test suite * added test structure, node customization - now types are contained inside an enum - added the basic primitives to the test structure, including lists checks - reworked the node to start getting the customization going (and make sense of the whole thing) * hierarchical container, geometry tests - created hierarchical container capable of tracking type inheritance - added all geometry tests * primitive tests done - finished all primitive date type tests * ggroup * Revert "ggroup" This reverts commit 1621855d3edacde667af1d474ef6be856d88e720. * inheritance tests done - completed tests checking inf inheritance works on individual and on list level * comments - added a few additional comments - additional test checking if inheritance stops at the desired level (ie. `Cone` does not inherit from `Curve`) * finished refactoring for tests - removed the Enum, replaced directly with Type * refactor, comments - removed dictionary in favor of list of datatypes - renamed methods to better suit the specificity of the node functionality they were serving * pass through - now returns the input as an output - not doing much with the result of the validation though, except returning to the first value of the drop-down * inputs - added functional IsAutoMode and IsList inputs to the Model - removed the ViewModel * comments - do not change dropdown if not in AutoMode - added detailed description to IsAutoMode property * datatype list refactor - public static method of retrieving the list of datatypes replaced by an internal static property DataNodeDynamoTypeList * comments - IsSupportedDataNodeDynamoType now internal - refactor --------- Co-authored-by: Ashish Aggarwal --- .../UI/Themes/Modern/DynamoModern.xaml | 60 +++++++++ src/Libraries/CoreNodeModels/DefineData.cs | 104 +++++++++++--- .../Controls/DefineDataControl.xaml | 57 ++------ .../Controls/DefineDataControl.xaml.cs | 7 +- .../NodeViewCustomizations/DefineData.cs | 31 ++++- src/Libraries/CoreNodes/Data.cs | 127 ++++++++++++++---- .../CoreNodes/Properties/AssemblyInfo.cs | 4 +- test/DynamoCoreTests/DSCoreDataTests.cs | 52 +++---- 8 files changed, 313 insertions(+), 129 deletions(-) diff --git a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml index 474efa30ab6..32b3fdf8f62 100644 --- a/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml +++ b/src/DynamoCoreWpf/UI/Themes/Modern/DynamoModern.xaml @@ -4440,6 +4440,66 @@ + + + + +