From 68fc7a6d617a4a9041092a7d1c6a2ff7320a06d4 Mon Sep 17 00:00:00 2001 From: Markus Voelter Date: Fri, 10 Jan 2025 17:11:37 +0100 Subject: [PATCH] implemented Accordion Component and an example tree. Plus cosmetics. --- .../ReactDemoLanguage.editor.modelix.mps | 106 +++++--- .../models/ReactDemoLanguage.sandbox.m1.mps | 57 +++++ ...mponents.generator.templates@generator.mps | 237 +++++++++++++++--- ...delix.mps.react.muicomponents.behavior.mps | 131 +++++++++- ...modelix.mps.react.muicomponents.editor.mps | 174 ++++++++++--- ...elix.mps.react.muicomponents.structure.mps | 99 +++++++- .../org.modelix.mps.react.muicomponents.mpl | 2 + .../models/org.modelix.mps.react.editor.mps | 96 ++++--- .../org.modelix.mps.react.structure.mps | 3 +- 9 files changed, 771 insertions(+), 134 deletions(-) diff --git a/mps/modules/ReactDemoLanguage.editor/models/ReactDemoLanguage.editor.modelix.mps b/mps/modules/ReactDemoLanguage.editor/models/ReactDemoLanguage.editor.modelix.mps index 9b8b627c..a2146f59 100644 --- a/mps/modules/ReactDemoLanguage.editor/models/ReactDemoLanguage.editor.modelix.mps +++ b/mps/modules/ReactDemoLanguage.editor/models/ReactDemoLanguage.editor.modelix.mps @@ -39,6 +39,14 @@ + + + + + + + + @@ -64,14 +72,25 @@ - + + + + + + + + + + + + - + @@ -89,6 +108,7 @@ + @@ -139,38 +159,61 @@ + - - - - - - + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + - - - - - - + + + + + + + - - - - + + + + + + + + + @@ -191,6 +234,7 @@ + @@ -256,6 +300,7 @@ + @@ -278,9 +323,6 @@ - - - @@ -293,6 +335,11 @@ + + + + + @@ -306,6 +353,7 @@ + @@ -324,8 +372,10 @@ - - + + + + diff --git a/mps/modules/ReactDemoLanguage.sandbox/models/ReactDemoLanguage.sandbox.m1.mps b/mps/modules/ReactDemoLanguage.sandbox/models/ReactDemoLanguage.sandbox.m1.mps index cca2020b..84b1e6cb 100644 --- a/mps/modules/ReactDemoLanguage.sandbox/models/ReactDemoLanguage.sandbox.m1.mps +++ b/mps/modules/ReactDemoLanguage.sandbox/models/ReactDemoLanguage.sandbox.m1.mps @@ -43,12 +43,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mps/modules/org.modelix.mps.react.muicomponents/generator/templates/org.modelix.mps.react.muicomponents.generator.templates@generator.mps b/mps/modules/org.modelix.mps.react.muicomponents/generator/templates/org.modelix.mps.react.muicomponents.generator.templates@generator.mps index 70a902e1..8869b721 100644 --- a/mps/modules/org.modelix.mps.react.muicomponents/generator/templates/org.modelix.mps.react.muicomponents.generator.templates@generator.mps +++ b/mps/modules/org.modelix.mps.react.muicomponents/generator/templates/org.modelix.mps.react.muicomponents.generator.templates@generator.mps @@ -4,14 +4,15 @@ + + - @@ -58,6 +59,12 @@ + + + + + + @@ -88,6 +95,12 @@ + + + + + + @@ -127,6 +140,12 @@ + + + + + + @@ -167,6 +186,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -441,7 +547,7 @@ - + @@ -490,14 +596,6 @@ - - - - - - - - @@ -510,24 +608,92 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - - - + + + + + + - + @@ -748,20 +914,25 @@ - - - - - - - - - + + + + + + + + + + + + + + - - + + diff --git a/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.behavior.mps b/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.behavior.mps index 509f96e4..923dac3b 100644 --- a/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.behavior.mps +++ b/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.behavior.mps @@ -7,7 +7,7 @@ - + @@ -27,6 +27,10 @@ + + + + @@ -34,11 +38,18 @@ + + + + + + + @@ -56,6 +67,10 @@ + + + + @@ -67,9 +82,22 @@ + + + + + + + + + + + + + @@ -147,7 +175,7 @@ - + @@ -184,5 +212,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.editor.mps b/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.editor.mps index d6df4b62..e3d1a9dd 100644 --- a/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.editor.mps +++ b/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.editor.mps @@ -116,7 +116,7 @@ - + @@ -157,7 +157,25 @@ - + + + + + + + + + + + + + + + + + + + @@ -172,7 +190,7 @@ - + @@ -200,7 +218,7 @@ - + @@ -231,7 +249,7 @@ - + @@ -263,7 +281,7 @@ - + @@ -272,7 +290,7 @@ - + @@ -300,7 +318,7 @@ - + @@ -316,7 +334,7 @@ - + @@ -327,25 +345,8 @@ - - - - - - - - - - - - - - - - - - - + + @@ -435,5 +436,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.structure.mps b/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.structure.mps index 62e8e4f1..34170772 100644 --- a/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.structure.mps +++ b/mps/modules/org.modelix.mps.react.muicomponents/models/org.modelix.mps.react.muicomponents.structure.mps @@ -13,6 +13,15 @@ + + + + + + + + + @@ -97,6 +106,11 @@ + + + + + @@ -118,7 +132,7 @@ - + @@ -217,10 +231,12 @@ - - - - + + + + + + @@ -242,7 +258,7 @@ - + @@ -257,5 +273,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mps/modules/org.modelix.mps.react.muicomponents/org.modelix.mps.react.muicomponents.mpl b/mps/modules/org.modelix.mps.react.muicomponents/org.modelix.mps.react.muicomponents.mpl index d61d3142..cd8bdc40 100644 --- a/mps/modules/org.modelix.mps.react.muicomponents/org.modelix.mps.react.muicomponents.mpl +++ b/mps/modules/org.modelix.mps.react.muicomponents/org.modelix.mps.react.muicomponents.mpl @@ -26,6 +26,7 @@ dce965c2-af99-4a0c-9895-485700f46864(ReactDemoLanguage) + ceab5195-25ea-4f22-9b92-103b95ca8c0c(jetbrains.mps.lang.core) @@ -45,6 +46,7 @@ + diff --git a/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.editor.mps b/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.editor.mps index 7b04d686..d5eab9af 100644 --- a/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.editor.mps +++ b/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.editor.mps @@ -13,6 +13,7 @@ + @@ -855,44 +856,32 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - + + - - - - + + + + + + + + + + + - - + + + + @@ -912,8 +901,9 @@ - - + + + @@ -933,6 +923,7 @@ + @@ -955,6 +946,10 @@ + + + + @@ -1650,6 +1645,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.structure.mps b/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.structure.mps index 58820c3e..4bcbc4ae 100644 --- a/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.structure.mps +++ b/mps/modules/org.modelix.mps.react/models/org.modelix.mps.react.structure.mps @@ -369,7 +369,7 @@ - + @@ -431,6 +431,7 @@ +