Skip to content

Commit

Permalink
Restart BlazorUI
Browse files Browse the repository at this point in the history
  • Loading branch information
aorzelskiGH committed Aug 5, 2024
1 parent 9b4eb8a commit c78f8ee
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 32 deletions.
6 changes: 3 additions & 3 deletions src/BlazorUI/Data/AASService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This source code may use other Open Source software components (see LICENSE.txt)
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Aas = AasCore.Aas3_0_RC02;
using Aas = AasCore.Aas3_0;
using AdminShellNS;
using Extensions;
using AasxIntegrationBase;
Expand Down Expand Up @@ -249,7 +249,7 @@ public void buildTree(blazorSessionService bi)
Text = "PLUGIN",
Tag = new Tuple<AdminShellPackageEnv, Aas.Submodel,
Plugins.PluginInstance, AasxPluginResultVisualExtension>
(bi.env, sm, lpi, ext),
(bi.env, (Aas.Submodel)sm, lpi, ext),
Type = "Plugin"
};
smChilds.Add(piItem);
Expand Down Expand Up @@ -394,7 +394,7 @@ void createEntityItems(Item smeRootItem, Aas.Entity e, int i)
c.parent = smeRootItem;
}

public List<Aas.Submodel> GetSubmodels(blazorSessionService bi)
public List<Aas.ISubmodel> GetSubmodels(blazorSessionService bi)
{
return bi.env.AasEnv.Submodels;
}
Expand Down
3 changes: 1 addition & 2 deletions src/BlazorUI/Pages/AnyUiRenderElem.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@page "/test"
@using AdminShellNS
@using Aas = AasCore.Aas3_0_RC02
@using AdminShellNS;
@using Aas = AasCore.Aas3_0;
@using Extensions
@using AnyUi
@using BlazorUI.Shared
Expand Down
3 changes: 1 addition & 2 deletions src/BlazorUI/Pages/AnyUiRenderGrid.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@page "/test2"
@using AdminShellNS
@using Aas = AasCore.Aas3_0_RC02
@using AdminShellNS;
@using Aas = AasCore.Aas3_0
@using Extensions
@using AnyUi
@using BlazorUI.Shared
Expand Down
3 changes: 1 addition & 2 deletions src/BlazorUI/Pages/AnyUiRenderMultiText.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@page "/testMultiRenderText"
@using AdminShellNS
@using Aas = AasCore.Aas3_0_RC02
@using AdminShellNS;
@using Aas = AasCore.Aas3_0
@using Extensions
@using AnyUi
@using BlazorUI.Shared
Expand Down
3 changes: 1 addition & 2 deletions src/BlazorUI/Pages/AnyUiRenderStackPanel.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@page "/test3"
@using AdminShellNS
@using Aas = AasCore.Aas3_0_RC02
@using AdminShellNS;
@using Aas = AasCore.Aas3_0
@using Extensions
@using AnyUi
@using BlazorUI.Shared
Expand Down
3 changes: 1 addition & 2 deletions src/BlazorUI/Pages/AnyUiRenderWrapPanel.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@page "/test4"
@using AdminShellNS
@using Aas = AasCore.Aas3_0_RC02
@using AdminShellNS;
@using Aas = AasCore.Aas3_0
@using Extensions
@using AnyUi
@using BlazorUI.Shared
Expand Down
36 changes: 18 additions & 18 deletions src/BlazorUI/Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page "/"
@using Aas = AasCore.Aas3_0_RC02
@using Aas = AasCore.Aas3_0
@using AdminShellNS
@using AasxIntegrationBase
@*using BlazorUI*@
Expand Down Expand Up @@ -1091,48 +1091,48 @@
{
var sm = o as Aas.Submodel;
ret = "";
if (sm.Kind != null && sm.Kind == Aas.ModelingKind.Template)
ret += "<T> ";
// if (sm.Kind != null && sm.Kind == Aas.ModelingKind.Template)
// ret += "<T> ";
ret += sm.IdShort;
}
if (o is Aas.ISubmodelElement)
{
var sme = o as Aas.ISubmodelElement;
ret = "";
if (sme.Kind != null && sme.Kind == Aas.ModelingKind.Template)
ret += "<T> ";
// if (sme.Kind != null && sme.Kind == Aas.ModelingKind.Template)
// ret += "<T> ";
ret += sme.IdShort;
}
if (o is Aas.File)
{
var f = o as Aas.File;
ret = "";
if (f.Kind != null && f.Kind == Aas.ModelingKind.Template)
ret += "<T> ";
// if (f.Kind != null && f.Kind == Aas.ModelingKind.Template)
// ret += "<T> ";
ret += f.IdShort;
}
if (o is Aas.Blob)
{
var b = o as Aas.Blob;
ret = "";
if (b.Kind != null && b.Kind == Aas.ModelingKind.Template)
ret += "<T> ";
// if (b.Kind != null && b.Kind == Aas.ModelingKind.Template)
// ret += "<T> ";
ret += b.IdShort;
}
if (o is AasCore.Aas3_0_RC02.Range)
if (o is Aas.Range)
{
var r = o as AasCore.Aas3_0_RC02.Range;
var r = o as Aas.Range;
ret = "";
if (r.Kind != null && r.Kind == Aas.ModelingKind.Template)
ret += "<T> ";
// if (r.Kind != null && r.Kind == Aas.ModelingKind.Template)
// ret += "<T> ";
ret += r.IdShort;
}
if (o is Aas.MultiLanguageProperty)
{
var mlp = o as Aas.MultiLanguageProperty;
ret = "";
if (mlp.Kind != null && mlp.Kind == Aas.ModelingKind.Template)
ret += "<T> ";
// if (mlp.Kind != null && mlp.Kind == Aas.ModelingKind.Template)
// ret += "<T> ";
ret += mlp.IdShort;
}
return (ret);
Expand Down Expand Up @@ -1196,9 +1196,9 @@
}
}
}
if (o is AasCore.Aas3_0_RC02.Range)
if (o is Aas.Range)
{
var r = o as AasCore.Aas3_0_RC02.Range;
var r = o as Aas.Range;
ret = " = " + r.Min + " .. " + r.Max;
if (r.Qualifiers != null && r.Qualifiers.Count > 0)
{
Expand Down Expand Up @@ -1359,7 +1359,7 @@
if (found.htmlEventOutputs.Count == 1
&& found.htmlEventOutputs[0] is Aas.IReferable rf)
{
var kl = new List<Aas.Key>();
var kl = new List<Aas.IKey>();
rf?.CollectReferencesByParent(kl);
pluginInstance?.InvokeAction("event-return",
new AasxIntegrationBase.AasxPluginEventReturnSelectAasEntity()
Expand Down
1 change: 0 additions & 1 deletion src/BlazorUI/StylePile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This source code may use other Open Source software components (see LICENSE.txt)
using System.Globalization;
using System.IO;
using System.Linq;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text.RegularExpressions;
Expand Down

0 comments on commit c78f8ee

Please sign in to comment.