From 4fd2f628c3c092e04dece50aa31efb7776676857 Mon Sep 17 00:00:00 2001 From: Gregor Vilkner Date: Fri, 18 Apr 2025 18:56:27 -0400 Subject: [PATCH 1/4] Update 03 Browser Script to Manage Enumeration Type Instances Side by Side.php enable toggle of edit mode edit displayname of instances --- ...numeration Type Instances Side by Side.php | 717 ++++++++++++------ 1 file changed, 493 insertions(+), 224 deletions(-) diff --git a/Part I - Browser Scripts/Topic 02 - Intro to Model Automation (Types, Instances, Attributes)/03 Browser Script to Manage Enumeration Type Instances Side by Side.php b/Part I - Browser Scripts/Topic 02 - Intro to Model Automation (Types, Instances, Attributes)/03 Browser Script to Manage Enumeration Type Instances Side by Side.php index 961787e..42b0722 100644 --- a/Part I - Browser Scripts/Topic 02 - Intro to Model Automation (Types, Instances, Attributes)/03 Browser Script to Manage Enumeration Type Instances Side by Side.php +++ b/Part I - Browser Scripts/Topic 02 - Intro to Model Automation (Types, Instances, Attributes)/03 Browser Script to Manage Enumeration Type Instances Side by Side.php @@ -3,9 +3,9 @@ // { // "data": { // "script": { -// "displayName": "Enumeration Dashboard", -// "relativeName": "enumeration_dashboard", -// "description": null, +// "displayName": "Instance Dashboard", +// "relativeName": "instance_dashboard", +// "description": "To compare instances of types side by side.", // "outputType": "BROWSER", // "scriptType": "PHP" // } @@ -16,7 +16,7 @@ HTMLHelper::_('script', 'media/com_thinkiq/js/dist/tiq.core.js', array('version' => 'auto', 'relative' => false)); // HTMLHelper::_('script', 'media/com_thinkiq/js/dist/tiq.tiqGraphQL.js', array('version' => 'auto', 'relative' => false)); -HTMLHelper::_('script', 'media/com_thinkiq/js/dist/tiq.components.min.js', array('version' => 'auto', 'relative' => false)); +//HTMLHelper::_('script', 'media/com_thinkiq/js/dist/tiq.components.min.js', array('version' => 'auto', 'relative' => false)); // HTMLHelper::_('script', 'media/com_thinkiq/js/dist/tiq.charts.min.js', array('version' => 'auto', 'relative' => false)); require_once 'thinkiq_context.php'; @@ -34,6 +34,7 @@

{{pageTitle}} source +


@@ -42,100 +43,126 @@
-
+
- Enumeration Type - + Type +
-
- Name: {{activeEnumType.displayName}}
- Library: {{activeEnumType.partOf.displayName}}
- Attributes: {{FilteredAttributes.length}} of {{activeEnumType.attributes.length}}
+
+ Name: {{activeType.displayName}}
+ Inherits from: {{activeType.subTypeOf==null ? 'n/a' : activeType.subTypeOf.displayName}}
+ Library: {{activeType.partOf.displayName}}
+ Instances: {{FilteredInstances.length}} of {{activeType.objectsByTypeId.length}}
-
+
+ + Pick from Type Tree + + + +

Pick from Usage Board
-
-