parent
d8a7e0c5cd
commit
943579faec
@ -0,0 +1,20 @@
|
||||
@using System.Reflection;
|
||||
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="@additionalAssemblies">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||
</Found>
|
||||
<NotFound>
|
||||
<PageTitle>Not found</PageTitle>
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p role="alert">Sorry, there's nothing at this address.</p>
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
||||
|
||||
@code {
|
||||
private List<Assembly> additionalAssemblies { get; set; } = new()
|
||||
{
|
||||
//typeof(Connected.Components.Showcase.Pages.AlertShowcase).Assembly
|
||||
};
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.0" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Connected.Components.Showcase\Connected.Components.Showcase.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,5 @@
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<main>
|
||||
@Body
|
||||
</main>
|
@ -0,0 +1,731 @@
|
||||
@page "/demo"
|
||||
|
||||
<body>
|
||||
<div class="document-container d-flex">
|
||||
|
||||
<aside>
|
||||
<div class="sidebar @sidebarClosed">
|
||||
|
||||
|
||||
<div class="profile-details">
|
||||
<div class="avatar">
|
||||
<img src="http://sys-app/core/app/sys/avatar/1733c1cf-a588-4a45-9773-dcd320bee57f/1" title="Janko Jordan">
|
||||
</div>
|
||||
<div class="name-job">
|
||||
<div class="profile-name">Janko Jordan</div>
|
||||
<div class="profile-job">Web Designer</div>
|
||||
</div>
|
||||
<i class='bx bx-log-out'></i>
|
||||
</div>
|
||||
|
||||
<ul class="nav-links">
|
||||
<li class="@NavClosed">
|
||||
<div @onclick="ToggleNav" class="iocn-link">
|
||||
<a href="#">
|
||||
<i class='bx bx-collection' @onclick="ToggleNav"></i>
|
||||
<span class="link_name">Proizvodni nalogi</span>
|
||||
</a>
|
||||
<i class='bx bxs-chevron-down arrow'></i>
|
||||
</div>
|
||||
<ul class="sub-menu">
|
||||
<li><a class="link_name" href="#">Proizvodni nalogi</a></li>
|
||||
<li><a href="#">Osnutek</a></li>
|
||||
<li><a href="#">V obdelavi</a></li>
|
||||
<li><a href="#">Aktiven</a></li>
|
||||
<li><a href="#">Zaprt</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class='bx bx-grid-alt'></i>
|
||||
<span class="link_name">Izvedba</span>
|
||||
</a>
|
||||
<ul class="sub-menu blank">
|
||||
<li><a class="link_name" href="#">Izvedba</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
|
||||
|
||||
<section class="main @sidebarClosed">
|
||||
|
||||
|
||||
<div class="color-picker-container">
|
||||
|
||||
<form class="color-picker" action="">
|
||||
<fieldset>
|
||||
<legend class="visually-hidden">Pick a color scheme</legend>
|
||||
|
||||
<label for="light" class="visually-hidden">Light</label>
|
||||
<input type="radio" id="light" name="theme" checked>
|
||||
|
||||
<label for="pink" class="visually-hidden">Pink theme</label>
|
||||
<input type="radio" id="pink" name="theme">
|
||||
|
||||
<label for="dark" class="visually-hidden">Dark theme</label>
|
||||
<input type="radio" id="dark" name="theme">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="">
|
||||
<i class='bx bx-menu' @onclick="ToggleSidebar"></i>
|
||||
<span class="text">Open Sidebar</span>
|
||||
|
||||
<section id="borders" class="mt-3 b-1 b-r-4 p-5">
|
||||
<h2>Borders</h2>
|
||||
<p>Use border utilities to quickly style the border, border color and border-radius of an element.
|
||||
Great for images, buttons, or any other element. Responsive classes are available that use the
|
||||
same viewport width breakpoints as the grid system.
|
||||
</p>
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Position</h4>
|
||||
<div class="d-flex flex-wrap gap-3 square">
|
||||
<div class="b-1">b-1</div>
|
||||
<span class="bt-1">bt-1</span>
|
||||
<span class="br-1">br-1</span>
|
||||
<span class="bb-1">bb-1</span>
|
||||
<span class="bl-1">bl-1</span>
|
||||
<span class="bx-1">bx-1</span>
|
||||
<span class="by-1">by-1</span>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Color</h4>
|
||||
<div class="d-flex flex-wrap gap-3 square">
|
||||
<span class="b-1 b-c-core">b-1 <br> b-c-core</span>
|
||||
<span class="b-1 b-c-primary">b-1 <br> b-c-primary</span>
|
||||
<span class="b-1 b-c-secondary">b-1 <br> b-c-secondary</span>
|
||||
<span class="b-1 b-c-success">b-1 <br> b-c-success</span>
|
||||
<span class="b-1 b-c-info">b-1 <br> b-c-info</span>
|
||||
<span class="b-1 b-c-warning">b-1 <br> b-c-warning</span>
|
||||
<span class="b-1 b-c-danger">b-1 <br> b-c-danger</span>
|
||||
<span class="b-1 b-c-white">b-1 <br> b-c-white</span>
|
||||
<span class="b-1 b-c-light">b-1 <br> b-c-light</span>
|
||||
<span class="b-1 b-c-dark">b-1 <br> b-c-dark</span>
|
||||
<span class="b-1 b-c-black">b-1 <br> b-c-black</span>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Border-radius</h4>
|
||||
<div class="d-flex flex-wrap gap-3 square">
|
||||
<span class="b-1 b-r-0">b-1 b-r-0</span>
|
||||
<span class="b-1 b-r-1">b-1 b-r-1</span>
|
||||
<span class="b-1 b-r-2">b-1 b-r-2</span>
|
||||
<span class="b-1 b-r-3">b-1 b-r-3</span>
|
||||
<span class="b-1 b-r-4">b-1 b-r-4</span>
|
||||
<span class="b-1 b-r-5">b-1 b-r-5</span>
|
||||
<span class="b-1 b-r-circle">b-1 b-r-circle</span>
|
||||
<span style="width:100px;" class="b-1 b-r-pill">b-1 b-r-pill</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section id="text" class="mt-3 b-1 b-r-4 p-5">
|
||||
<h2>Colors</h2>
|
||||
<p>Convey meaning through color with a handful of color utility classes. Includes support for
|
||||
styling links with hover states, too.
|
||||
</p>
|
||||
<h4 class="text-core mt-5">Color</h4>
|
||||
<div class="grid test grid-col-6 gap-3">
|
||||
<span class="p-3 text-core">text-core </span>
|
||||
<span class="p-3 text-primary">text-primary </span>
|
||||
<span class="p-3 text-secondary">text-secondary </span>
|
||||
<span class="p-3 text-success">text-success</span>
|
||||
<span class="p-3 text-info">text-info</span>
|
||||
<span class="p-3 text-warning">text-warning</span>
|
||||
<span class="p-3 text-danger">text-danger</span>
|
||||
<span class="p-3 text-white">text-white</span>
|
||||
<span class="p-3 text-light">text-light</span>
|
||||
<span class="p-3 text-dark">text-dark</span>
|
||||
<span class="p-3 text-black">text-black</span>
|
||||
</div>
|
||||
|
||||
<div class="mt-4 b-1 b-r-3 px-4 element-fg-core">
|
||||
<pre>
|
||||
<code id="htmlViewer" style="display:block;overflow-x:auto;">
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-core"</span>></span>text-core<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-primary"</span>></span>text-primary<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-secondary"</span>></span>text-secondary<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-success"</span>></span>text-success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-info"</span>></span>text-info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-warning"</span>></span>text-warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-danger"</span>></span>text-danger<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-white"</span>></span>text-white<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-light"</span>></span>text-light<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-dark"</span>></span>text-dark<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">span</span> <span style="color:rgb(0, 128, 128); font-weight:400;">class</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"text-black"</span>></span>text-black<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">span</span>></span>
|
||||
</code></pre>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<h4 class="text-core mt-5">Background color</h4>
|
||||
<div class="grid test grid-col-6 gap-3">
|
||||
<div class="p-3 bg-core">bg-core</div>
|
||||
<div class="p-3 bg-primary">bg-primary</div>
|
||||
<div class="p-3 bg-secondary">bg-secondary</div>
|
||||
<div class="p-3 bg-success">bg-success</div>
|
||||
<div class="p-3 bg-info">bg-info</div>
|
||||
<div class="p-3 bg-warning">bg-warning</div>
|
||||
<div class="p-3 bg-danger">bg-danger</div>
|
||||
<div class="p-3 bg-white">bg-white</div>
|
||||
<div class="p-3 bg-light">bg-light</div>
|
||||
<div class="p-3 bg-dark">bg-dark</div>
|
||||
<div class="p-3 bg-black">bg-black</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
|
||||
<h4 class="text-core mt-5">Link color</h4>
|
||||
<div class="grid test grid-col-6 gap-3">
|
||||
<a href="#" class="p-3 text-core">text-core </a>
|
||||
<a href="#" class="p-3 text-primary">text-primary </a>
|
||||
<a href="#" class="p-3 text-secondary">text-secondary </a>
|
||||
<a href="#" class="p-3 text-success">text-success</a>
|
||||
<a href="#" class="p-3 text-info">text-info</a>
|
||||
<a href="#" class="p-3 text-warning">text-warning</a>
|
||||
<a href="#" class="p-3 text-danger">text-danger</a>
|
||||
<a href="#" class="p-3 text-white">text-white</a>
|
||||
<a href="#" class="p-3 text-light">text-light</a>
|
||||
<a href="#" class="p-3 text-dark">text-dark</a>
|
||||
<a href="#" class="p-3 text-black">text-black</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section id="text" class="mt-3 b-1 b-r-4 p-5">
|
||||
<h2>Text</h2>
|
||||
<p>Documentation and examples for common text utilities to control size, alignment, wrapping,
|
||||
weight, and
|
||||
more.
|
||||
</p>
|
||||
|
||||
<!-- text sizes -->
|
||||
<h4 class="text-core mt-5">Text sizes</h4>
|
||||
<div class="grid test grid-col-1 gap-3">
|
||||
<div>
|
||||
<h5>This is h5 </h5>
|
||||
<p class="text-small"><span class="text-semibold">text-small</span><br>This is small font
|
||||
size<br>
|
||||
Lorem
|
||||
ipsum dolor sit, amet
|
||||
consectetur
|
||||
adipisicing
|
||||
elit. Eum quis neque ullam, eos eaque nam voluptate veniam dolor ex ratione?
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h4>This is h4 </h4>
|
||||
<p><span class="text-semibold">No class required</span><br>This is base font size <br>Lorem
|
||||
ipsum
|
||||
dolor sit amet consectetur,
|
||||
adipisicing elit.
|
||||
Explicabo modi dicta eveniet quia, repudiandae perspiciatis omnis vitae nihil vero
|
||||
ratione.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3>This is h3 </h3>
|
||||
<p class="text-medium"><span class="text-semibold">text-medium</span><br>This is medium font
|
||||
<br>
|
||||
Lorem
|
||||
ipsum
|
||||
dolor sit, amet consectetur
|
||||
adipisicing
|
||||
elit. Alias praesentium quo est pariatur sed nobis maiores rem aperiam ut voluptas?
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>This is h2 </h2>
|
||||
<p class="text-large"><span class="text-semibold">text-large</span><br>This is large font
|
||||
<br>
|
||||
Lorem
|
||||
ipsum
|
||||
dolor sit, amet consectetur
|
||||
adipisicing
|
||||
elit. Obcaecati nihil totam, modi minus excepturi laboriosam maiores. Provident quos est
|
||||
maiores.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h1>This is h1 </h1>
|
||||
<p class="text-extralarge"><span class="text-semibold">text-extralarge</span><br>This is
|
||||
extra
|
||||
large
|
||||
font <br>
|
||||
Lorem
|
||||
ipsum dolor sit amet,
|
||||
consectetur adipisicing elit. Beatae, modi!
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-sm-medium"><span class="text-semibold">text-sm-medium</span>
|
||||
<br>Medium size text on viewports sized SM (small) or wider.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-md-medium"><span class="text-semibold">text-md-medium</span>
|
||||
<br>Medium size text on viewports sized MD (medium) or wider.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-lg-medium"><span class="text-semibold">text-lg-medium</span>
|
||||
<br>Medium size text on viewports sized LG (large) or wider.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<p class="text-xl-medium"><span class="text-semibold">text-xl-medium</span>
|
||||
<br>Medium size text on viewports sized XL (extra-large) or wider.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Text alignment</h4>
|
||||
<p>Easily realign text to components with text alignment classes.
|
||||
</p>
|
||||
<div class="b-1 b-r-3 p-5 border-core">
|
||||
<div class="text-left">
|
||||
<p class="text-semibold">text-left</p>
|
||||
<p>Left aligned text on all viewport sizes</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="text-center">
|
||||
<p class="text-semibold">text-center</p>
|
||||
<p>Center aligned text on all viewport sizes.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="text-right">
|
||||
<p class="text-semibold">text-right</p>
|
||||
<p>Right aligned text on all viewport sizes.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="text-justify">
|
||||
<p class="text-semibold">text-justify</p>
|
||||
<p>Justified text on all viewport sizes. Lorem ipsum dolor sit, amet consectetur
|
||||
adipisicing elit. Temporibus consequatur nisi amet modi in voluptatum facere
|
||||
reprehenderit, aut assumenda. Velit.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="text-sm-right">
|
||||
<p class="text-semibold">text-sm-right</p>
|
||||
<p>Right aligned text on viewports sized SM (small) or wider.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="text-md-right">
|
||||
<p class="text-semibold">text-md-right</p>
|
||||
<p>Right aligned text on viewports sized MD (medium) or wider.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="text-lg-right">
|
||||
<p class="text-semibold">text-lg-right</p>
|
||||
<p>Right aligned text on viewports sized LG (large) or wider.</p>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="text-xl-right">
|
||||
<p class="text-semibold">text-xl-right</p>
|
||||
<p>Right aligned text on viewports sized XL (extra-large) or wider.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Font weight</h4>
|
||||
<p>Quickly change the weight (boldness).
|
||||
</p>
|
||||
<div class="b-1 b-r-3 p-5 border-core">
|
||||
<p class="text-semibold">text-thin</p>
|
||||
<div class="text-thin">
|
||||
<p>This is thin text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-regular</p>
|
||||
<div class="text-regular">
|
||||
<p>This is normal weight text - no class required</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-semibold</p>
|
||||
<div class="text-semibold">
|
||||
<p>This is semibold text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-bold</p>
|
||||
<div class="text-bold">
|
||||
<p>This is bold text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-extrabold</p>
|
||||
<div class="text-extrabold">
|
||||
<p>This is extra bold text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-sm-bold</p>
|
||||
<div class="text-sm-bold">
|
||||
<p>Bold text on viewports sized SM (small) or wider.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Text transform</h4>
|
||||
<p>Transform text in components with text capitalization classes or italicize text.
|
||||
</p>
|
||||
<div class="b-1 b-r-3 p-5 border-core">
|
||||
<p class="text-semibold">text-italic</p>
|
||||
<div class="text-italic">
|
||||
<p>This is italic text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-lowercase</p>
|
||||
<div class="text-lowercase">
|
||||
<p>This is lowercased text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-uppercase</p>
|
||||
<div class="text-uppercase">
|
||||
<p>This is uppercased text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-capitalize</p>
|
||||
<div class="text-capitalize">
|
||||
<p>This is capitalized text</p>
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-nowrap</p>
|
||||
<div style="width:150px; background:yellow;" class="text-nowrap">
|
||||
This text should overflow the parent.
|
||||
</div>
|
||||
<hr>
|
||||
<p class="text-semibold">text-truncate</p>
|
||||
<div style="width:150px; background:yellow;" class="text-truncate">
|
||||
<span>
|
||||
This is text is truncated
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<section id="buttons" class="mt-3 b-1 b-r-4 p-5">
|
||||
<h2>Buttons</h2>
|
||||
<p>Use custom button styles for actions in forms, dialogs, and more with support for multiple sizes,
|
||||
states, and more.
|
||||
</p>
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Examples</h4>
|
||||
<div class="d-flex flex-wrap gap-3 ">
|
||||
<button type="button" href="#" class="btn btn-core">click me</button>
|
||||
<button type="button" href="#" class="btn btn-primary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-secondary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-success">click me</button>
|
||||
<button type="button" href="#" class="btn btn-info">click me</button>
|
||||
<button type="button" href="#" class="btn btn-warning">click me</button>
|
||||
<button type="button" href="#" class="btn btn-danger">click me</button>
|
||||
<button type="button" href="#" class="btn btn-white">click me</button>
|
||||
<button type="button" href="#" class="btn btn-light">click me</button>
|
||||
<button type="button" href="#" class="btn btn-dark">click me</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Outline buttons</h4>
|
||||
<div class="d-flex flex-wrap gap-3 ">
|
||||
<button type="button" href="#" class="btn btn-outline-core">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-primary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-secondary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-success">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-info">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-warning">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-danger">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-white">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-light">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-dark">click me</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Sizes</h4>
|
||||
<div class="">
|
||||
<button type="button" href="#" class="btn btn-sm btn-core">small button</button>
|
||||
<button type="button" href="#" class="btn btn-sm btn-light">small button</button>
|
||||
</div>
|
||||
<div class="mt-4 ">
|
||||
<button type="button" href="#" class="btn btn-lg btn-core">large button</button>
|
||||
<button type="button" href="#" class="btn btn-lg btn-light">large button</button>
|
||||
</div>
|
||||
<div class="mt-4 ">
|
||||
<button type="button" href="#" class="btn btn-block btn-core">full width button</button>
|
||||
<button type="button" href="#" class="mt-4 btn btn-block btn-light">full width
|
||||
button</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Button states</h4>
|
||||
<div class="">
|
||||
<button type="button" href="#" class="btn btn-core active" aria-pressed="true">active
|
||||
button</button>
|
||||
<button type="button" href="#" class="btn btn-core">normal button</button>
|
||||
<button type="button" href="#" class="btn btn-core disabled" aria-disabled="true">disabled
|
||||
button</button>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
<button type="button" href="#" class="btn btn-outline-core active" aria-pressed="true">active button</button>
|
||||
<button type="button" href="#" class="btn btn-outline-core">normal button</button>
|
||||
<button type="button" href="#" class="btn btn-outline-core disabled" aria-disabled="true">disabled
|
||||
button</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="buttons" class="mt-3 b-1 b-r-4 p-5">
|
||||
<h2>Radio
|
||||
</h2>
|
||||
<p>Radio buttons allow the user to select a single choice from a group of options.
|
||||
|
||||
|
||||
</p>
|
||||
<div>
|
||||
<div class="container">
|
||||
|
||||
<div class="checkbox-group">
|
||||
<input id="checkbox-1" name="checkbox" type="checkbox" checked>
|
||||
<label for="checkbox-1" class="checkbox-label">Checked</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox-group">
|
||||
<input id="checkbox-2" name="checkbox" type="checkbox">
|
||||
<label for="checkbox-2" class="checkbox-label">Unchecked</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox-group">
|
||||
<input id="checkbox-1" name="checkbox" type="checkbox" disabled>
|
||||
<label for="checkbox-1" class="checkbox-label">Checked disabled</label>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="radio-group">
|
||||
<input id="radio-1" name="radio" type="radio" checked>
|
||||
<label for="radio-1" class="radio-label">Checked</label>
|
||||
</div>
|
||||
|
||||
<div class="radio-group">
|
||||
<input id="radio-2" name="radio" type="radio">
|
||||
<label for="radio-2" class="radio-label">Unchecked</label>
|
||||
</div>
|
||||
|
||||
<div class="radio-group">
|
||||
<input id="radio-3" name="radio" type="radio" disabled>
|
||||
<label for="radio-3" class="radio-label">Disabled</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="inputs" class="mt-3 b-1 b-r-4 p-5">
|
||||
<h2>Input
|
||||
</h2>
|
||||
<p>Inputs buttons allow the user to select a single choice from a group of options.
|
||||
</p>
|
||||
|
||||
|
||||
<form>
|
||||
<div class="d-flex flex-wrap gap-3">
|
||||
|
||||
|
||||
<div class="form-group error">
|
||||
<input type="text" required="required" /><span class="highlight"></span><span class="bar"></span>
|
||||
<label class="label-animated">Name</label>
|
||||
<div class="input-helper-text">Some helping Text</div>
|
||||
<div class="input-error-text">At least 6 characters required</div>
|
||||
<span class="input-glyph-wraper">
|
||||
<span class="input-glyph">
|
||||
<span class="input-glyph button">
|
||||
<i class='bx bx-x-circle'></i>
|
||||
</span>
|
||||
<span class="input-glyph error">
|
||||
<i class='bx bx-error-circle'></i>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<input type="text" required="required" /><span class="highlight"></span><span class="bar"></span>
|
||||
<label class="label-animated">Email</label>
|
||||
<div class="input-helper-text">Some helping Text</div>
|
||||
<div class="input-error-text">At least 6 characters required</div>
|
||||
<span class="input-glyph-wraper">
|
||||
<span class="input-glyph">
|
||||
<span class="input-glyph button">
|
||||
<i class='bx bx-x-circle'></i>
|
||||
</span>
|
||||
<span class="input-glyph error">
|
||||
<i class='bx bx-error-circle'></i>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<input type="password" required="required" /><span class="highlight"></span><span class="bar"></span>
|
||||
<label class="label-animated">Password</label>
|
||||
<div class="input-helper-text">Some helping Text</div>
|
||||
<div class="input-error-text">At least 6 characters required</div>
|
||||
<span class="input-glyph-wraper">
|
||||
<span class="input-glyph">
|
||||
<span class="input-glyph button">
|
||||
<i class='bx bx-x-circle'></i>
|
||||
</span>
|
||||
<span class="input-glyph error">
|
||||
<i class='bx bx-error-circle'></i>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input type="number" required="required" /><span class="highlight"></span><span class="bar"></span>
|
||||
<label class="label-animated">Number</label>
|
||||
<div class="input-helper-text">Some helping Text</div>
|
||||
<div class="input-error-text">At least 6 characters required</div>
|
||||
<span class="input-glyph-wraper">
|
||||
<span class="input-glyph">
|
||||
<span class="input-glyph button">
|
||||
<i class='bx bx-x-circle'></i>
|
||||
</span>
|
||||
<span class="input-glyph error">
|
||||
<i class='bx bx-error-circle'></i>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<select type="textarea" required="required">
|
||||
<option value="" disabled selected hidden></option>
|
||||
<option value="1">Twitter </option>
|
||||
<option value="2">Facebook</option>
|
||||
</select>
|
||||
<span class="highlight"></span><span class="bar"></span>
|
||||
<label class="label-animated">Select</label>
|
||||
<span class="input-glyph-wraper">
|
||||
<span class="input-glyph"><i class='bx bx-caret-down'></i></span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group error">
|
||||
<select type="textarea" required="required">
|
||||
</select>
|
||||
<span class="highlight"></span><span class="bar"></span>
|
||||
<label class="label-animated">Select</label>
|
||||
<span class="input-glyph-wraper">
|
||||
<span class="input-glyph button">
|
||||
<i class='bx bx-x-circle'></i>
|
||||
</span>
|
||||
<span class="input-glyph">
|
||||
<i class='bx bx-caret-down'></i>
|
||||
</span>
|
||||
<span class="input-glyph error">
|
||||
<i class='bx bx-error-circle'></i>
|
||||
</span>
|
||||
</span>
|
||||
<div class="drop-down">
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<div class="dropdown-header">Header</div>
|
||||
|
||||
<a class="dropdown-item" href="#">Action</a>
|
||||
<a class="dropdown-item" href="#">Another action</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#">Something else here</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<textarea type="textarea" rows="5" required="required"></textarea><span class="highlight"></span><span class="bar"></span>
|
||||
<label class="label-animated">Message</label>
|
||||
<div class="input-helper-text">Some helping Text</div>
|
||||
<div class="input-error-text">At least 6 characters required</div>
|
||||
<span class="input-glyph-wraper">
|
||||
<span class="input-glyph">
|
||||
<span class="input-glyph button">
|
||||
<i class='bx bx-x-circle'></i>
|
||||
</span>
|
||||
<span class="input-glyph error">
|
||||
<i class='bx bx-error-circle'></i>
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="btn-box">
|
||||
<button type="button" href="#" class="btn btn-core " aria-pressed="true">active
|
||||
button</button>
|
||||
<button type="button" href="#" class="btn btn-outline-core " aria-pressed="true">active
|
||||
button</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<hr class="mt-4 mb-4">
|
||||
|
||||
<h2 class="mb-2">Grid</h2>
|
||||
<div class="grid test grid-col-4 gap-3">
|
||||
<div class="col-span-23">1</div>
|
||||
<div>2</div>
|
||||
<div>3</div>
|
||||
<div>4</div>
|
||||
<div>5</div>
|
||||
<div>6</div>
|
||||
<div>7</div>
|
||||
<div>8</div>
|
||||
<div>9</div>
|
||||
<div>10</div>
|
||||
<div>11</div>
|
||||
<div>12</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@code {
|
||||
private string sidebarClosed { get; set; } = "close";
|
||||
|
||||
private void ToggleSidebar()
|
||||
{
|
||||
sidebarClosed = string.IsNullOrWhiteSpace(sidebarClosed) ? "close" : "";
|
||||
}
|
||||
|
||||
|
||||
private string NavClosed { get; set; } = "showMenu";
|
||||
|
||||
private void ToggleNav()
|
||||
{
|
||||
NavClosed = string.IsNullOrWhiteSpace(NavClosed) ? "showMenu" : "";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
@page "/"
|
||||
|
||||
<h1 style="text-align:center;">Component Sandbox</h1>
|
||||
|
||||
<p>ValueDouble: @inputValueDouble.ToString()</p>
|
||||
<p>ValueInt: @inputValueInt.ToString()</p>
|
||||
<p>ValueText: @inputValueText</p>
|
||||
|
||||
<InputNumber
|
||||
Label="Double"
|
||||
Required="true"
|
||||
Step="0.002"
|
||||
@bind-Value="@inputValueDouble">
|
||||
</InputNumber>
|
||||
|
||||
<InputNumber
|
||||
Label="Integer"
|
||||
Required="true"
|
||||
Step="0.002"
|
||||
@bind-Value="@inputValueInt">
|
||||
</InputNumber>
|
||||
|
||||
<InputText
|
||||
Label="String"
|
||||
Required="true"
|
||||
@bind-Value="@inputValueText">
|
||||
</InputText>
|
||||
|
||||
<InputPassword Label="Password"
|
||||
Required="true"
|
||||
@bind-Value="@inputValueText">
|
||||
</InputPassword>
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
|
||||
int counter { get; set; } = 0;
|
||||
|
||||
string inputValueText = "Sample text";
|
||||
double inputValueDouble = 12.756;
|
||||
int inputValueInt = 12;
|
||||
|
||||
DateTime inputValueDate = DateTime.Now.AddDays(-10);
|
||||
|
||||
public void CounterIncrement()
|
||||
{
|
||||
counter++;
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using Connected.Components.Showcase.Runner;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
|
||||
internal class Program
|
||||
{
|
||||
private static async global::System.Threading.Tasks.Task Main(string[] args)
|
||||
{
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
builder.RootComponents.Add<App>("#app");
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
{
|
||||
"iisSettings": {
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:47832",
|
||||
"sslPort": 44313
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"http": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||
"applicationUrl": "http://localhost:5225",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"https": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||
"applicationUrl": "https://localhost:7045;http://localhost:5225",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
@using System.Net.Http
|
||||
@using System.Net.Http.Json
|
||||
@using Microsoft.AspNetCore.Components.Routing
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using Microsoft.AspNetCore.Components.WebAssembly.Http
|
||||
@using Microsoft.JSInterop
|
||||
@using Connected.Components.Showcase.Runner
|
||||
@using Connected.Components.Showcase;
|
@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>Connected.Components.Showcase.Runner</title>
|
||||
<base href="/" />
|
||||
<link href="css/app.css" rel="stylesheet" />
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
|
||||
<link href="_content/Connected.Components/Connected.Components.min.css" rel="stylesheet" />
|
||||
<script src="_content/Connected.Components/Connected.Components.min.js"></script>
|
||||
|
||||
<link href='https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css' rel='stylesheet'>
|
||||
|
||||
<!-- If you add any scoped CSS files, uncomment the following to load them
|
||||
<link href="Connected.Components.Showcase.Runner.styles.css" rel="stylesheet" /> -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">Loading...</div>
|
||||
|
||||
<div id="blazor-error-ui">
|
||||
An unhandled error has occurred.
|
||||
<a href="" class="reload">Reload</a>
|
||||
<a class="dismiss">🗙</a>
|
||||
</div>
|
||||
<script src="_framework/blazor.webassembly.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,381 +0,0 @@
|
||||
@page "/components/alert"
|
||||
|
||||
@using Connected.Components;
|
||||
|
||||
<ThemeProvider></ThemeProvider>
|
||||
|
||||
|
||||
<ThemeProvider Theme="MyCustomTheme" />
|
||||
@code {
|
||||
Theme MyCustomTheme = new Theme()
|
||||
{
|
||||
Palette = new Palette()
|
||||
{
|
||||
Error = "#ffd8e4",
|
||||
ErrorContrastText = "#31111d",
|
||||
//ErrorDarken = Colors.Green.Accent4,
|
||||
},
|
||||
LayoutProperties = new LayoutProperties()
|
||||
{
|
||||
DefaultBorderRadius = "1rem",
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
<Container>
|
||||
<Text Typo="Typo.h3" Align="Align.Left" GutterBottom="true">Alert</Text>
|
||||
<Text Align="Align.Left" GutterBottom="true">An alert is used to notify the user about an important message without interrupting the ongoing task.</Text>
|
||||
</Container>
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<Grid>
|
||||
<Item xs="12">
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Simple alert</Text>
|
||||
<Alert Severity="Severity.Normal" GlyphVisible="true" ClassList="my-2">The reactor type is RBMK-1000</Alert>
|
||||
<Alert Severity="Severity.Info" GlyphVisible="true" ClassList="my-2">The reactor was fired up successfully</Alert>
|
||||
<Alert Severity="Severity.Success" GlyphVisible="true" ClassList="my-2">The reactor is running at optimum temperature</Alert>
|
||||
<Alert Severity="Severity.Warning" GlyphVisible="true" ClassList="my-2">The reactor temperature exceeds the optimal range</Alert>
|
||||
<Alert Severity="Severity.Error" GlyphVisible="true" ClassList="my-2">Meltdown is imminent</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor type is RBMK-1000<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor was fired up successfully<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor is running at optimum temperature<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor temperature exceeds the optimal range<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>Meltdown is imminent<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<Grid>
|
||||
<Item xs="12">
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Outlined alert</Text>
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2">The reactor type is RBMK-1000</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2">The reactor was fired up successfully</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2">The reactor is running at optimum temperature</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2">The reactor temperature exceeds the optimal range</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2">Meltdown is imminent</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: 1rem;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor type is RBMK-1000<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor was fired up successfully<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor is running at optimum temperature<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor temperature exceeds the optimal range<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>Meltdown is imminent<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<Grid>
|
||||
<Item xs="12">
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Outlined alert</Text>
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2">The reactor type is RBMK-1000</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2">The reactor was fired up successfully</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2">The reactor is running at optimum temperature</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2">The reactor temperature exceeds the optimal range</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2">Meltdown is imminent</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor type is RBMK-1000<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor was fired up successfully<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor is running at optimum temperature<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>The reactor temperature exceeds the optimal range<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>Meltdown is imminent<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<div>
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Dense</Text>
|
||||
<Text Align="Align.Left" GutterBottom="true">Taking up too much space? Insert dense class in ClassList. It removes the vertical padding and lowers the horizontal.
|
||||
</Text>
|
||||
</div>
|
||||
<Grid>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" GlyphVisible="true" ClassList="my-2 dense">Dense Default</Alert>
|
||||
<Alert Severity="Severity.Info" GlyphVisible="true" ClassList="my-2 dense">Dense Info</Alert>
|
||||
<Alert Severity="Severity.Success" GlyphVisible="true" ClassList="my-2 dense">Dense Success</Alert>
|
||||
<Alert Severity="Severity.Warning" GlyphVisible="true" ClassList="my-2 dense">Dense Warning</Alert>
|
||||
<Alert Severity="Severity.Error" GlyphVisible="true" ClassList="my-2 dense">Dense Errorr</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 dense">Dense Default</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 dense">Dense Info</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 dense">Dense Success</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 dense">Dense Warning</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 dense">Dense Error</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 dense">Dense Default</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 dense">Dense Info</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 dense">Dense Success</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 dense">Dense Warning</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 dense">Dense Error</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Errorr<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 dense"</span>></span>Dense Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<div>
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">No Icons</Text>
|
||||
<Text Align="Align.Left" GutterBottom="true">You can disable the alert icons with the bool GlyphVisible set to false.</Text>
|
||||
</div>
|
||||
<Grid>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" GlyphVisible="false" ClassList="my-2">No Icon Default</Alert>
|
||||
<Alert Severity="Severity.Info" GlyphVisible="false" ClassList="my-2 ">No Icon Info</Alert>
|
||||
<Alert Severity="Severity.Success" GlyphVisible="false" ClassList="my-2">No Icon Success</Alert>
|
||||
<Alert Severity="Severity.Warning" GlyphVisible="false" ClassList="my-2">No Icon Warning</Alert>
|
||||
<Alert Severity="Severity.Error" GlyphVisible="false" ClassList="my-2">No Icon Error</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Outlined" GlyphVisible="false" ClassList="my-2">No Icon Default</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Outlined" GlyphVisible="false" ClassList="my-2">No Icon Info</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Outlined" GlyphVisible="false" ClassList="my-2">No Icon Success</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Outlined" GlyphVisible="false" ClassList="my-2">No Icon Warning</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Outlined" GlyphVisible="false" ClassList="my-2 ">No Icon Error</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Filled" GlyphVisible="false" ClassList="my-2 ">No Icon Default</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Filled" GlyphVisible="false" ClassList="my-2 ">No Icon Info</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Filled" GlyphVisible="false" ClassList="my-2 ">No Icon Success</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Filled" GlyphVisible="false" ClassList="my-2 ">No Icon Warning</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Filled" GlyphVisible="false" ClassList="my-2 ">No Icon Error</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 "</span>></span>No Icon Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>No Icon Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 "</span>></span>No Icon Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 "</span>></span>No Icon Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 "</span>></span>No Icon Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 "</span>></span>No Icon Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 "</span>></span>No Icon Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"false"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 "</span>></span>No Icon Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<div>
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Rounded and Square</Text>
|
||||
<Text Align="Align.Left" GutterBottom="true">By default, the alert is set to rounded corners by your theme's
|
||||
default value. If you need a square Alert but don't want to change the theme, insert class rounded-0 in
|
||||
ClassList or change the default radius width classes rounded-sm, rounded-lg, rounded-xl.</Text>
|
||||
</div>
|
||||
<Grid>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" GlyphVisible="true" ClassList="my-2 rounded-0">Rounded-0 Default</Alert>
|
||||
<Alert Severity="Severity.Info" GlyphVisible="true" ClassList="my-2 rounded">Rounded Info</Alert>
|
||||
<Alert Severity="Severity.Success" GlyphVisible="true" ClassList="my-2 rounded-sm">Rounded-sm Success</Alert>
|
||||
<Alert Severity="Severity.Warning" GlyphVisible="true" ClassList="my-2 rounded-lg">Rounded-lg Warning</Alert>
|
||||
<Alert Severity="Severity.Error" GlyphVisible="true" ClassList="my-2 rounded-xl">Rounded-xl Error</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 rounded-0">Rounded-0 Default</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 rounded">Rounded Info</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 rounded-sm">Rounded-sm Success</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 rounded-lg">Rounded-lg Warning</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 rounded-xl">Rounded-xl Error</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 rounded-0">Rounded-0 Default</Alert>
|
||||
<Alert Severity="Severity.Info" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 rounded">Rounded Info</Alert>
|
||||
<Alert Severity="Severity.Success" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 rounded-sm">Rounded-sm Success</Alert>
|
||||
<Alert Severity="Severity.Warning" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 rounded-lg">Rounded-lg Warning</Alert>
|
||||
<Alert Severity="Severity.Error" Variant="Variant.Filled" GlyphVisible="true" ClassList="my-2 rounded-xl">Rounded-xl Error</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-0"</span>></span>Rounded-0 Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded"</span>></span>Rounded Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-sm"</span>></span>Rounded-sm Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-lg"</span>></span>Rounded-lg Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-xl"</span>></span>Rounded-xl Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-0"</span>></span>Rounded-0 Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded"</span>></span>Rounded Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-sm"</span>></span>Rounded-sm Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-lg"</span>></span>Rounded-lg Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Outlined"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-xl"</span>></span>Rounded-xl Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-0"</span>></span>Rounded-0 Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded"</span>></span>Rounded Info<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-sm"</span>></span>Rounded-sm Success<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Warning"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-lg"</span>></span>Rounded-lg Warning<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Error"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Variant</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Variant.Filled"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 rounded-xl"</span>></span>Rounded-xl Error<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
|
||||
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<div>
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Elevation</Text>
|
||||
<Text Align="Align.Left" GutterBottom="true">The component also accepts the Elevation class set a scale from elevation-1 to elevation-24 in ClassList.</Text>
|
||||
</div>
|
||||
<Grid>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" GlyphVisible="true" ClassList="my-2 elevation-8">elevation-8</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Info" GlyphVisible="true" ClassList="my-2 elevation-16">elevation-16</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Success" GlyphVisible="true" ClassList="my-2 elevation-24">elevation-24</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 elevation-8"</span>></span>elevation-8 Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 elevation-16"</span>></span>elevation-16 Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 elevation-24"</span>></span>elevation-24 Default<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<div>
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Content Alignment</Text>
|
||||
<Text Align="Align.Left" GutterBottom="true">Insert Utility class for the Alignment property in ClassList to define the content alignment - justify-center or justify-end</Text>
|
||||
</div>
|
||||
<Grid>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" GlyphVisible="true" ClassList="my-2">Default Alignment</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Info" GlyphVisible="true" ClassList="my-2 justify-center">Center Alignment</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Success" GlyphVisible="true" ClassList="my-2 justify-end">Right Alignment</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>Default Alignment<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 justify-center"</span>></span>Center Alignment<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 justify-end"</span>></span>Right Alignment<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span></code></pre>
|
||||
</Container>
|
||||
|
||||
|
||||
|
||||
<Container ClassList="mt-12">
|
||||
<div>
|
||||
<Text Typo="Typo.h5" Align="Align.Left" GutterBottom="true">Close Icon and Event</Text>
|
||||
<Text Align="Align.Left" GutterBottom="true">Set the CloseGlyphVisible property to True to display a Close icon.
|
||||
CloseIconClicked provides the EventCallback when clicking on the Close icon of the alert</Text>
|
||||
</div>
|
||||
<Grid>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Normal" GlyphVisible="true" CloseGlyphVisible="true" ClassList="my-2">Time to leave. Please close me!</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Info" GlyphVisible="true" CloseGlyphVisible="true" ClassList="my-2 justify-center">Time to leave. Please close me!</Alert>
|
||||
</Item>
|
||||
<Item md="4" xs="12">
|
||||
<Alert Severity="Severity.Success" GlyphVisible="true" CloseGlyphVisible="true" ClassList="my-2 justify-end">RTime to leave. Please close me!</Alert>
|
||||
</Item>
|
||||
</Grid>
|
||||
</Container>
|
||||
|
||||
<Container>
|
||||
<pre>
|
||||
<code id="htmlViewer" style="color:rgb(51, 51, 51); font-weight:400;background-color:rgb(248, 248, 248);background:rgb(248, 248, 248);display:block;padding: .5em;"><span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Normal"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">CloseGlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2"</span>></span>Time to leave. Please close me!<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Info"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">CloseGlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 justify-center"</span>></span>Time to leave. Please close me!<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span> <span style="color:rgb(0, 128, 128); font-weight:400;">md</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"4"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">xs</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"12"</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"><<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span> <span style="color:rgb(0, 128, 128); font-weight:400;">Severity</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"Severity.Success"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">GlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">CloseGlyphVisible</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"true"</span> <span style="color:rgb(0, 128, 128); font-weight:400;">ClassList</span>=<span style="color:rgb(221, 17, 68); font-weight:400;">"my-2 justify-end"</span>></span>RTime to leave. Please close me!<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Alert</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Item</span>></span>
|
||||
<span style="color:rgb(0, 0, 128); font-weight:400;"></<span style="color:rgb(0, 0, 128); font-weight:400;">Grid</span>></span></code></pre>
|
||||
</Container>
|
@ -1,7 +0,0 @@
|
||||
@page "/components/app-bar"
|
||||
|
||||
@using Connected.Components;
|
||||
|
||||
<ThemeProvider></ThemeProvider>
|
||||
|
||||
<AppBar Dense="true">This is an alert</AppBar>
|
@ -1,36 +0,0 @@
|
||||
@page "/components/drawer"
|
||||
|
||||
@using Connected.Components;
|
||||
|
||||
<ThemeProvider></ThemeProvider>
|
||||
|
||||
|
||||
<Layout>
|
||||
<AppBar Elevation="1">
|
||||
<Button Icon="Icons.Material.Filled.Menu" Edge="Edge.Start" OnClick="ToggleDrawer">aa</Button>
|
||||
</AppBar>
|
||||
<Drawer @bind-Open="_drawerOpen" Elevation="2" Variant="DrawerVariant.Mini" ClassList="info">
|
||||
<DrawerHeader>
|
||||
<Text Typo="Typo.h5" Class="mt-1">Application</Text>
|
||||
</DrawerHeader>
|
||||
<NavMenu>
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 border-0">Production</Alert>
|
||||
<Alert Severity="Severity.Normal" Variant="Variant.Outlined" GlyphVisible="true" ClassList="my-2 border-0">Production</Alert>
|
||||
|
||||
</NavMenu>
|
||||
</Drawer>
|
||||
<MainContent>
|
||||
<Container>
|
||||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quam fuga necessitatibus illum non earum aperiam consequuntur odit odio a laborum!
|
||||
<Button OnClick="_ToggleDrawer" Color="Color.Primary">Toggle</Button>
|
||||
</Container>
|
||||
</MainContent>
|
||||
</Layout>
|
||||
@code {
|
||||
bool _drawerOpen = true;
|
||||
|
||||
void DrawerToggle()
|
||||
{
|
||||
_drawerOpen = !_drawerOpen;
|
||||
}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<h3>TextBox</h3>
|
||||
|
||||
@code {
|
||||
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
|
||||
<div role="alert" class="@CompiledClassList" @attributes="CustomAttributes" @onclick="Clicked">
|
||||
<div name="alert-content" class="alert-content">
|
||||
|
||||
@if (GlyphVisible)
|
||||
{
|
||||
<div class="alert-icon alert-icon-left">
|
||||
<Icon Glyph="@Glyph" />
|
||||
</div>
|
||||
}
|
||||
|
||||
<div class="alert-message">
|
||||
@ChildContent
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (CloseGlyphVisible)
|
||||
{
|
||||
<div class="alert-close">
|
||||
<GlyphButton ClassList="size-small" Glyph="@CloseGlyph" Clicked="OnCloseGlyphClick" />
|
||||
</div>
|
||||
}
|
||||
</div>
|
@ -1,10 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
<header @attributes="CustomAttributes" class="@CompiledHeaderClassList">
|
||||
<ToolBar Class="@CompiledToolbarClassList">
|
||||
@ChildContent
|
||||
</ToolBar>
|
||||
</header>
|
||||
|
||||
|
@ -1,96 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits InputBase<T>
|
||||
@typeparam T
|
||||
|
||||
<CascadingValue Name="SubscribeToParentForm" Value="false" IsFixed="true">
|
||||
<div class="@AutocompleteClassList">
|
||||
<InputControl Label="@Label" Variant="@Variant" HelperText="@HelperText" HelperTextOnFocus="@HelperTextOnFocus" FullWidth="@FullWidth" Margin="@Margin" Class="@ClassList()"
|
||||
Error="@HasError" ErrorText="@ErrorText" Disabled="@Disabled" @onclick="@ToggleMenu" Required="@Required" ForId="@FieldId">
|
||||
<InputContent>
|
||||
<Input @ref="_elementReference" @key="_elementKey" InputType="InputType.Text"
|
||||
Class="select-input" Margin="@Margin"
|
||||
Variant="@Variant"
|
||||
TextUpdateSuppression="@TextUpdateSuppression"
|
||||
Value="@Text" DisableUnderLine="@DisableUnderLine"
|
||||
Disabled="@Disabled" ReadOnly="@ReadOnly" Error="@HasError"
|
||||
OnAdornmentClick="@OnAdornmentClick" AdornmentIcon="@CurrentIcon" Adornment="@Adornment" AdornmentColor="@AdornmentColor" IconSize="@IconSize" AdornmentText="@AdornmentText"
|
||||
Clearable="@Clearable" OnClearButtonClick="@OnClearButtonClick"
|
||||
@attributes="CustomAttributes"
|
||||
TextChanged="OnTextChanged" OnBlur="OnInputBlurred"
|
||||
OnKeyDown="@this.OnInputKeyDown"
|
||||
OnKeyUp="@this.OnInputKeyUp" autocomplete=@("disabled-"+Guid.NewGuid()) KeyUpPreventDefault="KeyUpPreventDefault"
|
||||
Placeholder="@Placeholder" ChangeTextImmediately="true"
|
||||
InputMode="@InputMode" Pattern="@Pattern"
|
||||
T="string" />
|
||||
|
||||
@if (ShowProgressIndicator && IsLoading)
|
||||
{
|
||||
@if (ProgressIndicatorTemplate is not null)
|
||||
{
|
||||
@ProgressIndicatorTemplate
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="@CircularProgressClassList">
|
||||
<ProgressCircular Color="ProgressIndicatorColor" Indeterminate="true" Size="Size.Small"/>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
<Popover Open="@IsOpen" MaxHeight="@MaxHeight" AnchorOrigin="@AnchorOrigin" TransformOrigin="@TransformOrigin" Class="@PopoverClass" RelativeWidth="true">
|
||||
@if(ProgressIndicatorInPopoverTemplate != null && IsLoading)
|
||||
{
|
||||
@ProgressIndicatorInPopoverTemplate
|
||||
}
|
||||
else if (_items != null && _items.Length != 0)
|
||||
{
|
||||
<List Clickable="true" Dense="@Dense">
|
||||
@for (var index = 0; index < _items.Length; index++)
|
||||
{
|
||||
var item = _items[index];
|
||||
bool is_selected = index == _selectedListItemIndex;
|
||||
bool is_disabled = !_enabledItemIndices.Contains(index);
|
||||
<ListItem @key="@item" id="@GetListItemId(index)" Disabled="@(is_disabled)" OnClick="@(async() => await ListItemOnClick(item))" OnClickHandlerPreventDefault="true" Class="@(is_selected ? "selected-item primary-text primary-hover" : "")">
|
||||
@if (ItemTemplate == null)
|
||||
{
|
||||
@GetItemString(item)
|
||||
}
|
||||
else if (is_disabled && ItemDisabledTemplate is not null)
|
||||
{
|
||||
@ItemDisabledTemplate(item)
|
||||
}
|
||||
else if (is_selected)
|
||||
{
|
||||
@if (ItemSelectedTemplate is null)
|
||||
@ItemTemplate(item)
|
||||
else
|
||||
@ItemSelectedTemplate(item)
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@ItemTemplate(item)
|
||||
}
|
||||
</ListItem>
|
||||
}
|
||||
@if (MoreItemsTemplate is not null && _itemsReturned > MaxItems)
|
||||
{
|
||||
<div class="pa-1">
|
||||
@MoreItemsTemplate
|
||||
</div>
|
||||
}
|
||||
</List>
|
||||
}
|
||||
else if (NoItemsTemplate is not null)
|
||||
{
|
||||
<div class="pa-1">
|
||||
@NoItemsTemplate
|
||||
</div>
|
||||
}
|
||||
</Popover>
|
||||
</InputContent>
|
||||
</InputControl>
|
||||
</div>
|
||||
</CascadingValue>
|
||||
|
||||
<Overlay Visible="IsOpen" OnClick="@ToggleMenu" @ontouchstart="@ToggleMenu" LockScroll="false" />
|
@ -1,732 +0,0 @@
|
||||
using Connected.Utilities;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
|
||||
namespace Connected.Components;
|
||||
|
||||
public partial class Autocomplete<T> : InputBase<T>, IDisposable
|
||||
{
|
||||
|
||||
#region Variables
|
||||
|
||||
[Inject]
|
||||
IScrollManager ScrollManager { get; set; }
|
||||
|
||||
private Func<T, string>? _toStringFunc;
|
||||
private Task _currentSearchTask;
|
||||
private CancellationTokenSource _cancellationTokenSrc;
|
||||
private bool _isOpen;
|
||||
private Timer _timer;
|
||||
private T[] _items;
|
||||
private int _selectedListItemIndex = 0;
|
||||
private IList<int> _enabledItemIndices = new List<int>();
|
||||
private int _itemsReturned; //the number of items returned by the search function
|
||||
int _elementKey = 0;
|
||||
/// <summary>
|
||||
/// This boolean will keep track if the clear function is called too keep the set text function to be called.
|
||||
/// </summary>
|
||||
private bool _isCleared;
|
||||
private Input<string> _elementReference;
|
||||
/// <summary>
|
||||
/// We need a random id for the year items in the year list so we can scroll to the item safely in every DatePicker.
|
||||
/// </summary>
|
||||
private readonly string _componentId = Guid.NewGuid().ToString();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Event callbacks
|
||||
|
||||
/// <summary>
|
||||
/// Function to be invoked when checking whether an item should be disabled or not
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public Func<T, bool> ItemDisabledFunc { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// If true, the currently selected item from the drop-down (if it is open) is selected.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool SelectValueOnTab { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// Func that returns a list of items matching the typed text. Provides a cancellation token that
|
||||
/// is marked as cancelled when the user changes the search text or selects a value from the list.
|
||||
/// This can be used to cancel expensive asynchronous work occuring within the SearchFunc itself.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public Func<string, CancellationToken, Task<IEnumerable<T>>> SearchFuncWithCancel { get; set; }
|
||||
/// <summary>
|
||||
/// The SearchFunc returns a list of items matching the typed text
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public Func<string, Task<IEnumerable<T>>> SearchFunc { get; set; }
|
||||
|
||||
|
||||
// <summary>
|
||||
/// An event triggered when the state of IsOpen has changed
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<bool> IsOpenChanged { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Button click event for clear button. Called after text and value has been cleared.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<MouseEventArgs> OnClearButtonClick { get; set; }
|
||||
|
||||
internal virtual async Task OnInputKeyUp(KeyboardEventArgs args)
|
||||
{
|
||||
switch (args.Key)
|
||||
{
|
||||
case "Enter":
|
||||
case "NumpadEnter":
|
||||
if (!IsOpen)
|
||||
await ToggleMenu();
|
||||
else
|
||||
await OnEnterKey();
|
||||
|
||||
break;
|
||||
case "ArrowDown":
|
||||
if (!IsOpen)
|
||||
await ToggleMenu();
|
||||
else
|
||||
{
|
||||
var increment = _enabledItemIndices.ElementAtOrDefault(_enabledItemIndices.IndexOf(_selectedListItemIndex) + 1) - _selectedListItemIndex;
|
||||
|
||||
await SelectNextItem(increment < 0 ? 1 : increment);
|
||||
}
|
||||
|
||||
break;
|
||||
case "ArrowUp":
|
||||
if (args.AltKey)
|
||||
await ChangeMenu(false);
|
||||
else if (!IsOpen)
|
||||
await ToggleMenu();
|
||||
else
|
||||
{
|
||||
var decrement = _selectedListItemIndex - _enabledItemIndices.ElementAtOrDefault(_enabledItemIndices.IndexOf(_selectedListItemIndex) - 1);
|
||||
await SelectNextItem(-(decrement < 0 ? 1 : decrement));
|
||||
}
|
||||
|
||||
break;
|
||||
case "Escape":
|
||||
await ChangeMenu(false);
|
||||
|
||||
break;
|
||||
case "Tab":
|
||||
await Task.Delay(1);
|
||||
|
||||
if (!IsOpen)
|
||||
return;
|
||||
|
||||
if (SelectValueOnTab)
|
||||
await OnEnterKey();
|
||||
else
|
||||
await ToggleMenu();
|
||||
|
||||
break;
|
||||
case "Backspace":
|
||||
if (args.CtrlKey && args.ShiftKey)
|
||||
Reset();
|
||||
break;
|
||||
}
|
||||
|
||||
base.InvokeKeyUp(args);
|
||||
}
|
||||
|
||||
internal virtual async Task OnInputKeyDown(KeyboardEventArgs args)
|
||||
{
|
||||
switch (args.Key)
|
||||
{
|
||||
case "Tab":
|
||||
// NOTE: We need to catch Tab in Keydown because a tab will move focus to the next element and thus
|
||||
// in OnInputKeyUp we'd never get the tab key
|
||||
if (!IsOpen)
|
||||
return;
|
||||
if (SelectValueOnTab)
|
||||
await OnEnterKey();
|
||||
else
|
||||
IsOpen = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public async Task SelectOption(T value)
|
||||
{
|
||||
await SetValueAsync(value);
|
||||
|
||||
if (_items is not null)
|
||||
_selectedListItemIndex = Array.IndexOf(_items, value);
|
||||
|
||||
var optionText = GetItemString(value);
|
||||
|
||||
if (!_isCleared)
|
||||
await SetTextAsync(optionText, false);
|
||||
|
||||
_timer?.Dispose();
|
||||
|
||||
IsOpen = false;
|
||||
|
||||
BeginValidate();
|
||||
|
||||
if (!_isCleared)
|
||||
_elementReference?.SetText(optionText);
|
||||
|
||||
_elementReference?.FocusAsync().AndForget();
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
/// <summary>
|
||||
/// Toggle the menu (if not disabled or not readonly, and is opened).
|
||||
/// </summary>
|
||||
public async Task ToggleMenu()
|
||||
{
|
||||
if ((Disabled || ReadOnly) && !IsOpen)
|
||||
return;
|
||||
|
||||
await ChangeMenu(!IsOpen);
|
||||
}
|
||||
|
||||
private async Task ChangeMenu(bool open)
|
||||
{
|
||||
if (open)
|
||||
{
|
||||
if (SelectOnClick)
|
||||
await _elementReference.SelectAsync();
|
||||
|
||||
await OnSearchAsync();
|
||||
}
|
||||
else
|
||||
{
|
||||
_timer?.Dispose();
|
||||
|
||||
RestoreScrollPosition();
|
||||
|
||||
await CoerceTextToValue();
|
||||
|
||||
IsOpen = false;
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected override Task UpdateTextPropertyAsync(bool updateValue)
|
||||
{
|
||||
_timer?.Dispose();
|
||||
// This keeps the text from being set when clear() was called
|
||||
if (_isCleared)
|
||||
return Task.CompletedTask;
|
||||
|
||||
return base.UpdateTextPropertyAsync(updateValue);
|
||||
}
|
||||
|
||||
protected override async Task UpdateValuePropertyAsync(bool updateText)
|
||||
{
|
||||
_timer?.Dispose();
|
||||
|
||||
if (ResetValueOnEmptyText && string.IsNullOrWhiteSpace(Text))
|
||||
await SetValueAsync(default, updateText);
|
||||
|
||||
if (DebounceInterval <= 0)
|
||||
await OnSearchAsync();
|
||||
else
|
||||
_timer = new Timer(OnTimerComplete, null, DebounceInterval, Timeout.Infinite);
|
||||
}
|
||||
|
||||
private void OnTimerComplete(object stateInfo)
|
||||
{
|
||||
InvokeAsync(OnSearchAsync);
|
||||
}
|
||||
private void CancelToken()
|
||||
{
|
||||
try
|
||||
{
|
||||
_cancellationTokenSrc?.Cancel();
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
_cancellationTokenSrc = new CancellationTokenSource();
|
||||
}
|
||||
/// <remarks>
|
||||
/// This async method needs to return a task and be awaited in order for
|
||||
/// unit tests that trigger this method to work correctly.
|
||||
/// </remarks>
|
||||
private async Task OnSearchAsync()
|
||||
{
|
||||
if (MinCharacters > 0 && (string.IsNullOrWhiteSpace(Text) || Text.Length < MinCharacters))
|
||||
{
|
||||
IsOpen = false;
|
||||
StateHasChanged();
|
||||
return;
|
||||
}
|
||||
|
||||
IEnumerable<T> searchedItems = Array.Empty<T>();
|
||||
CancelToken();
|
||||
|
||||
try
|
||||
{
|
||||
if (ProgressIndicatorInPopoverTemplate is not null)
|
||||
IsOpen = true;
|
||||
|
||||
var searchTask = SearchFuncWithCancel is not null ? SearchFuncWithCancel(Text, _cancellationTokenSrc.Token) : SearchFunc(Text);
|
||||
|
||||
_currentSearchTask = searchTask;
|
||||
|
||||
StateHasChanged();
|
||||
|
||||
searchedItems = await searchTask ?? Array.Empty<T>();
|
||||
}
|
||||
catch (TaskCanceledException)
|
||||
{
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine($"The search function failed to return results: {e.Message}");
|
||||
}
|
||||
|
||||
_itemsReturned = searchedItems.Count();
|
||||
|
||||
if (MaxItems.HasValue)
|
||||
searchedItems = searchedItems.Take(MaxItems.Value);
|
||||
|
||||
_items = searchedItems.ToArray();
|
||||
_enabledItemIndices = _items.Select((item, idx) => (item, idx)).Where(tuple => ItemDisabledFunc?.Invoke(tuple.item) != true).Select(tuple => tuple.idx).ToList();
|
||||
_selectedListItemIndex = _enabledItemIndices.Any() ? _enabledItemIndices.First() : -1;
|
||||
|
||||
IsOpen = true;
|
||||
|
||||
if (_items?.Length == 0)
|
||||
{
|
||||
await CoerceValueToText();
|
||||
|
||||
StateHasChanged();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clears the autocomplete's text
|
||||
/// </summary>
|
||||
public async Task Clear()
|
||||
{
|
||||
_isCleared = true;
|
||||
IsOpen = false;
|
||||
|
||||
await SetTextAsync(string.Empty, updateValue: false);
|
||||
await CoerceValueToText();
|
||||
|
||||
if (_elementReference is not null)
|
||||
await _elementReference.SetText(string.Empty);
|
||||
|
||||
_timer?.Dispose();
|
||||
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
protected override async void ResetValue()
|
||||
{
|
||||
await Clear();
|
||||
base.ResetValue();
|
||||
}
|
||||
|
||||
private string GetItemString(T item)
|
||||
{
|
||||
if (item is null)
|
||||
return string.Empty;
|
||||
try
|
||||
{
|
||||
return Converter.Convert(item);
|
||||
}
|
||||
catch (NullReferenceException) { }
|
||||
|
||||
return "null";
|
||||
}
|
||||
|
||||
private ValueTask SelectNextItem(int increment)
|
||||
{
|
||||
if (increment == 0 || _items is null || !_items.Any() || !_enabledItemIndices.Any())
|
||||
return ValueTask.CompletedTask;
|
||||
// if we are at the end, or the beginning we just do an rollover
|
||||
_selectedListItemIndex = Math.Clamp(value: (10 * _items.Length + _selectedListItemIndex + increment) % _items.Length, min: 0, max: _items.Length - 1);
|
||||
|
||||
return ScrollToListItem(_selectedListItemIndex);
|
||||
}
|
||||
/// <summary>
|
||||
/// Scroll to a specific item index in the Autocomplete list of items.
|
||||
/// </summary>
|
||||
/// <param name="index">the index to scroll to</param>
|
||||
public ValueTask ScrollToListItem(int index)
|
||||
{
|
||||
var id = GetListItemId(index);
|
||||
//id of the scrolled element
|
||||
return ScrollManager.ScrollToListItemAsync(id);
|
||||
}
|
||||
/*
|
||||
* This restores the scroll position after closing the menu and element being 0
|
||||
*/
|
||||
private void RestoreScrollPosition()
|
||||
{
|
||||
if (_selectedListItemIndex != 0)
|
||||
return;
|
||||
|
||||
ScrollManager.ScrollToListItemAsync(GetListItemId(0));
|
||||
}
|
||||
|
||||
private string GetListItemId(in int index)
|
||||
{
|
||||
return $"{_componentId}_item{index}";
|
||||
}
|
||||
|
||||
internal Task OnEnterKey()
|
||||
{
|
||||
if (!IsOpen)
|
||||
return Task.CompletedTask;
|
||||
|
||||
if (_items is null || !_items.Any())
|
||||
return Task.CompletedTask;
|
||||
|
||||
if (_selectedListItemIndex >= 0 && _selectedListItemIndex < _items.Length)
|
||||
return SelectOption(_items[_selectedListItemIndex]);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private Task OnInputBlurred(FocusEventArgs args)
|
||||
{
|
||||
OnBlur.InvokeAsync(args);
|
||||
|
||||
return Task.CompletedTask;
|
||||
// we should not validate on blur in autocomplete, because the user needs to click out of the input to select a value,
|
||||
// resulting in a premature validation. thus, don't call base
|
||||
//base.OnBlurred(args);
|
||||
}
|
||||
|
||||
private Task CoerceTextToValue()
|
||||
{
|
||||
if (!CoerceText)
|
||||
return Task.CompletedTask;
|
||||
|
||||
_timer?.Dispose();
|
||||
|
||||
var text = Value is null ? null : GetItemString(Value);
|
||||
/*
|
||||
* Don't update the value to prevent the popover from opening again after coercion
|
||||
*/
|
||||
if (text != Text)
|
||||
return SetTextAsync(text, updateValue: false);
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private Task CoerceValueToText()
|
||||
{
|
||||
if (!CoerceValue)
|
||||
return Task.CompletedTask;
|
||||
|
||||
_timer?.Dispose();
|
||||
|
||||
var value = Converter.ConvertBack(Text);
|
||||
|
||||
return SetValueAsync(value, updateText: false);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Focus the input in the Autocomplete component.
|
||||
/// </summary>
|
||||
public override ValueTask FocusAsync()
|
||||
{
|
||||
return _elementReference.FocusAsync();
|
||||
}
|
||||
/// <summary>
|
||||
/// Blur from the input in the Autocomplete component.
|
||||
/// </summary>
|
||||
public override ValueTask BlurAsync()
|
||||
{
|
||||
return _elementReference.BlurAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Select all text within the Autocomplete input.
|
||||
/// </summary>
|
||||
public override ValueTask SelectAsync()
|
||||
{
|
||||
return _elementReference.SelectAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Select all text within the Autocomplete input and aligns its start and end points to the text content of the current input.
|
||||
/// </summary>
|
||||
public override ValueTask SelectRangeAsync(int pos1, int pos2)
|
||||
{
|
||||
return _elementReference.SelectRangeAsync(pos1, pos2);
|
||||
}
|
||||
|
||||
private async Task OnTextChanged(string text)
|
||||
{
|
||||
await TextChanged.InvokeAsync();
|
||||
|
||||
if (text is null)
|
||||
return;
|
||||
|
||||
await SetTextAsync(text, true);
|
||||
}
|
||||
|
||||
private async Task ListItemOnClick(T item)
|
||||
{
|
||||
await SelectOption(item);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Content placeholders
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Styling properties
|
||||
|
||||
/// <summary>
|
||||
/// Show clear button.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool Clearable { get; set; } = false;
|
||||
private string CurrentIcon => !string.IsNullOrWhiteSpace(AdornmentIcon) ? AdornmentIcon : _isOpen ? CloseIcon : OpenIcon;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the open state of the drop-down.
|
||||
/// </summary>
|
||||
public bool IsOpen
|
||||
{
|
||||
get => _isOpen;
|
||||
// Note: the setter is protected because it was needed by a user who derived his own autocomplete from this class.
|
||||
// Note: setting IsOpen will not open or close it. Use ToggleMenu() for that.
|
||||
protected set
|
||||
{
|
||||
if (value == _isOpen)
|
||||
return;
|
||||
|
||||
_isOpen = value;
|
||||
|
||||
IsOpenChanged.InvokeAsync(_isOpen).AndForget();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// User class names for the popover, separated by space
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string PopoverClass { get; set; }
|
||||
/// <summary>
|
||||
/// Set the anchor origin point to determen where the popover will open from.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public Origin AnchorOrigin { get; set; } = Origin.BottomCenter;
|
||||
/// <summary>
|
||||
/// Sets the transform origin point for the popover.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public Origin TransformOrigin { get; set; } = Origin.TopCenter;
|
||||
/// <summary>
|
||||
/// If true, compact vertical padding will be applied to all Autocomplete items.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool Dense { get; set; }
|
||||
/// <summary>
|
||||
/// The Open Autocomplete Glyph
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string OpenIcon { get; set; } = Icons.Material.Filled.ArrowDropDown;
|
||||
/// <summary>
|
||||
/// The Close Autocomplete Glyph
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string CloseIcon { get; set; } = Icons.Material.Filled.ArrowDropUp;
|
||||
/// <summary>
|
||||
/// The maximum height of the Autocomplete when it is open.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public int MaxHeight { get; set; } = 300;
|
||||
/// <summary>
|
||||
/// Defines how values are displayed in the drop-down list
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public Func<T, string>? ToStringFunc
|
||||
{
|
||||
get => _toStringFunc;
|
||||
set
|
||||
{
|
||||
if (_toStringFunc == value)
|
||||
return;
|
||||
|
||||
_toStringFunc = value;
|
||||
|
||||
SetConverter(new LambdaConverter<T, string>(_toStringFunc ?? (x => x?.ToString()), null));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// Whether to show the progress indicator.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool ShowProgressIndicator { get; set; } = false;
|
||||
/// <summary>
|
||||
/// The color of the progress indicator.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public ThemeColor ProgressIndicatorColor { get; set; } = ThemeColor.Default;
|
||||
private bool IsLoading => _currentSearchTask is not null && !_currentSearchTask.IsCompleted;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum items to display, defaults to 10.
|
||||
/// A null value will display all items.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public int? MaxItems { get; set; } = 10;
|
||||
/// <summary>
|
||||
/// Minimum characters to initiate a search
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public int MinCharacters { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// Reset value if user deletes the text
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool ResetValueOnEmptyText { get; set; } = false;
|
||||
/// <summary>
|
||||
/// If true, clicking the text field will select (highlight) its contents.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool SelectOnClick { get; set; } = true;
|
||||
|
||||
protected string ClassList()
|
||||
{
|
||||
return new CssBuilder("select")
|
||||
.Build();
|
||||
}
|
||||
|
||||
protected string AutocompleteClassList()
|
||||
{
|
||||
return new CssBuilder("select")
|
||||
.AddClass("autocomplete")
|
||||
.AddClass("width-full", FullWidth)
|
||||
.AddClass("autocomplete--with-progress", ShowProgressIndicator && IsLoading)
|
||||
.Build();
|
||||
}
|
||||
|
||||
protected string CircularProgressClassList()
|
||||
{
|
||||
return new CssBuilder("progress-indicator-circular")
|
||||
.AddClass("progress-indicator-circular--with-adornment", Adornment == Adornment.End)
|
||||
.Build();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Debounce interval in milliseconds.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public int DebounceInterval { get; set; } = 100;
|
||||
/// <summary>
|
||||
/// Optional presentation template for unselected items
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment<T> ItemTemplate { get; set; }
|
||||
/// <summary>
|
||||
/// Optional presentation template for the selected item
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment<T> ItemSelectedTemplate { get; set; }
|
||||
/// <summary>
|
||||
/// Optional presentation template for disabled item
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment<T> ItemDisabledTemplate { get; set; }
|
||||
/// <summary>
|
||||
/// Optional presentation template for when more items were returned from the Search function than the MaxItems limit
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment MoreItemsTemplate { get; set; }
|
||||
/// <summary>
|
||||
/// Optional presentation template for when no items were returned from the Search function
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment NoItemsTemplate { get; set; }
|
||||
/// <summary>
|
||||
/// Optional template for progress indicator
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment ProgressIndicatorTemplate { get; set; }
|
||||
/// <summary>
|
||||
/// Optional template for showing progress indicator inside the popover
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public RenderFragment ProgressIndicatorInPopoverTemplate { get; set; }
|
||||
/// <summary>
|
||||
/// On drop-down close override Text with selected Value. This makes it clear to the user
|
||||
/// which list value is currently selected and disallows incomplete values in Text.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool CoerceText { get; set; } = true;
|
||||
/// <summary>
|
||||
/// If user input is not found by the search func and CoerceValue is set to true the user input
|
||||
/// will be applied to the Value which allows to validate it and display an error message.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool CoerceValue { get; set; }
|
||||
|
||||
#endregion Styling
|
||||
|
||||
#region Lifecycle
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
public Autocomplete()
|
||||
{
|
||||
Adornment = Adornment.End;
|
||||
IconSize = Size.Medium;
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
var text = GetItemString(Value);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(text))
|
||||
Text = text;
|
||||
}
|
||||
|
||||
protected override void OnAfterRender(bool firstRender)
|
||||
{
|
||||
_isCleared = false;
|
||||
|
||||
base.OnAfterRender(firstRender);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
_timer?.Dispose();
|
||||
|
||||
if (_cancellationTokenSrc is not null)
|
||||
{
|
||||
try
|
||||
{
|
||||
_cancellationTokenSrc.Dispose();
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
@if(AvatarGroup is null || AvatarGroup.MaxGroupReached(this))
|
||||
{
|
||||
<div @attributes="CustomAttributes" class="@CompiledClassList" style="@CompiledStyles">
|
||||
@if (!String.IsNullOrEmpty(Image))
|
||||
{
|
||||
if (!String.IsNullOrEmpty(ImageAltText))
|
||||
{
|
||||
<img src="@Image" alt="@ImageAltText" class="avatar-img" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<img src="@Image" class="avatar-img" />
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
</div>
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
<div @attributes="CustomAttributes" class="@CompiledClassList">
|
||||
<CascadingValue Value="this" IsFixed="true">
|
||||
@ChildContent
|
||||
</CascadingValue>
|
||||
@if(_avatars.Count > Max)
|
||||
{
|
||||
<Avatar Class="@CompiledMaxAvatarClassList" Color="@MaxColor" Size="@MaxSize" Variant="@MaxVariant" Rounded="@MaxRounded" Square="@MaxSquare" Elevation="@MaxElevation">
|
||||
@($"+{_avatars.Count - Max}")
|
||||
</Avatar>
|
||||
}
|
||||
</div>
|
@ -1,24 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
<span @attributes="CustomAttributes" class="@CompiledClassList">
|
||||
@ChildContent
|
||||
@if (Visible)
|
||||
{
|
||||
<span class="@WrapperClass">
|
||||
<span class="@BadgeClassName" @onclick="HandleBadgeClick">
|
||||
@if (!Dot)
|
||||
{
|
||||
@if (!String.IsNullOrEmpty(Icon))
|
||||
{
|
||||
<Icon Glyph="@Icon" Class="icon-badge" />
|
||||
}
|
||||
else
|
||||
{
|
||||
@_content
|
||||
}
|
||||
}
|
||||
</span>
|
||||
</span>
|
||||
}
|
||||
</span>
|
@ -1,19 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
<li class="@Classname">
|
||||
@if (Parent?.ItemTemplate is null)
|
||||
{
|
||||
<a href="@(Item?.Href ?? "#")">
|
||||
@if (Item?.Icon != null)
|
||||
{
|
||||
<Icon Glyph="@Item?.Icon" Size="Size.Small" />
|
||||
}
|
||||
@Item?.Text
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@Parent?.ItemTemplate(Item);
|
||||
}
|
||||
</li>
|
@ -1,13 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
<li aria-hidden="true" class="breadcrumb-separator mud-ltr mud-flip-x-rtl">
|
||||
@if (Parent?.SeparatorTemplate is null)
|
||||
{
|
||||
<span>@Parent?.Separator</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
@Parent?.SeparatorTemplate
|
||||
}
|
||||
</li>
|
@ -1,35 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
@if (Items is null || !Items.Any())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
<CascadingValue Value="this" IsFixed="true">
|
||||
<ul @attributes="CustomAttributes" class=@Classname>
|
||||
@if (MaxItems is not null && Collapsed && Items.Count > MaxItems)
|
||||
{
|
||||
<BreadcrumbLink Item="Items[0]"></BreadcrumbLink>
|
||||
<BreadcrumbSeparator></BreadcrumbSeparator>
|
||||
<li class="breadcrumbs-expander" @onclick="Expand">
|
||||
<Icon Glyph="@ExpanderIcon" Size="Size.Small"></Icon>
|
||||
</li>
|
||||
<BreadcrumbSeparator></BreadcrumbSeparator>
|
||||
<BreadcrumbLink Item="Items[Items.Count - 1]"></BreadcrumbLink>
|
||||
}
|
||||
else
|
||||
{
|
||||
@for (var i = 0; i < Items.Count; i++)
|
||||
{
|
||||
var item = Items[i];
|
||||
<BreadcrumbLink Item="item"></BreadcrumbLink>
|
||||
|
||||
if (i != Items.Count - 1)
|
||||
{
|
||||
<BreadcrumbSeparator></BreadcrumbSeparator>
|
||||
}
|
||||
}
|
||||
}
|
||||
</ul>
|
||||
</CascadingValue>
|
@ -1,6 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
<CascadingValue Value="Breakpoint">
|
||||
@ChildContent
|
||||
</CascadingValue>
|
@ -0,0 +1,128 @@
|
||||
<button
|
||||
type="button"
|
||||
href="#"
|
||||
@onclick="@OnClick"
|
||||
disabled=@Disabled
|
||||
style="@Style"
|
||||
class="@ClassList">
|
||||
<div class="@ContentClassList">
|
||||
@if (!string.IsNullOrEmpty(Glyph))
|
||||
{
|
||||
@if (GlyphPosition == Position.Top || GlyphPosition == Position.Bottom)
|
||||
{
|
||||
<div style="align-items:center">
|
||||
@if (GlyphPosition == Position.Top)
|
||||
{
|
||||
<Glyph SVG="@Glyph" Color="@GlyphColor"/>
|
||||
}
|
||||
@ChildContent
|
||||
@if (GlyphPosition == Position.Bottom)
|
||||
{
|
||||
<Glyph SVG="@Glyph" Color="@GlyphColor"/>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if (GlyphPosition == Position.Left || GlyphPosition == Position.Right)
|
||||
{
|
||||
<div style="display:flex; align-items:center">
|
||||
@if (GlyphPosition == Position.Left)
|
||||
{
|
||||
<Glyph SVG="@Glyph" Color="@GlyphColor" Class="m-1" />
|
||||
}
|
||||
@ChildContent
|
||||
@if (GlyphPosition == Position.Right)
|
||||
{
|
||||
<Glyph SVG="@Glyph" Color="@GlyphColor" Class="m-1" />
|
||||
}
|
||||
</div>
|
||||
}
|
||||
} else
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
</div>
|
||||
</button>
|
||||
|
||||
|
||||
<!--
|
||||
<section id="buttons" class="mt-3 b-1 b-r-4 p-5">
|
||||
<h2>Buttons</h2>
|
||||
<p>
|
||||
Use custom button styles for actions in forms, dialogs, and more with support for multiple sizes,
|
||||
states, and more.
|
||||
</p>
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Examples</h4>
|
||||
<div class="d-flex flex-wrap gap-3 ">
|
||||
<button type="button" href="#" class="btn btn-core">click me</button>
|
||||
<button type="button" href="#" class="btn btn-primary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-secondary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-success">click me</button>
|
||||
<button type="button" href="#" class="btn btn-info">click me</button>
|
||||
<button type="button" href="#" class="btn btn-warning">click me</button>
|
||||
<button type="button" href="#" class="btn btn-danger">click me</button>
|
||||
<button type="button" href="#" class="btn btn-white">click me</button>
|
||||
<button type="button" href="#" class="btn btn-light">click me</button>
|
||||
<button type="button" href="#" class="btn btn-dark">click me</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Outline buttons</h4>
|
||||
<div class="d-flex flex-wrap gap-3 ">
|
||||
<button type="button" href="#" class="btn btn-outline-core">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-primary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-secondary">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-success">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-info">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-warning">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-danger">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-white">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-light">click me</button>
|
||||
<button type="button" href="#" class="btn btn-outline-dark">click me</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Sizes</h4>
|
||||
<div class="">
|
||||
<button type="button" href="#" class="btn btn-sm btn-core">small button</button>
|
||||
<button type="button" href="#" class="btn btn-sm btn-light">small button</button>
|
||||
</div>
|
||||
<div class="mt-4 ">
|
||||
<button type="button" href="#" class="btn btn-lg btn-core">large button</button>
|
||||
<button type="button" href="#" class="btn btn-lg btn-light">large button</button>
|
||||
</div>
|
||||
<div class="mt-4 ">
|
||||
<button type="button" href="#" class="btn btn-block btn-core">full width button</button>
|
||||
<button type="button" href="#" class="mt-4 btn btn-block btn-light">
|
||||
full width
|
||||
button
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<hr class="mt-4 mb-4">
|
||||
<div>
|
||||
<h4 class="text-core mt-5">Button states</h4>
|
||||
<div class="">
|
||||
<button type="button" href="#" class="btn btn-core active" aria-pressed="true">
|
||||
active
|
||||
button
|
||||
</button>
|
||||
<button type="button" href="#" class="btn btn-core">normal button</button>
|
||||
<button type="button" href="#" class="btn btn-core disabled" aria-disabled="true">
|
||||
disabled
|
||||
button
|
||||
</button>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
<button type="button" href="#" class="btn btn-outline-core active" aria-pressed="true">active button</button>
|
||||
<button type="button" href="#" class="btn btn-outline-core">normal button</button>
|
||||
<button type="button" href="#" class="btn btn-outline-core disabled" aria-disabled="true">
|
||||
disabled
|
||||
button
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
-->
|
@ -1,17 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@using Connected.Extensions;
|
||||
|
||||
@inherits ButtonBase
|
||||
|
||||
<Element type="@ButtonType.ToDescription()"
|
||||
disabled="@Disabled"
|
||||
HtmlTag="@HtmlTag"
|
||||
ClassList="@CompiledClassList.ToString()"
|
||||
PreventOnClickPropagation="PreventOnClickPropagation"
|
||||
@attributes="CustomAttributes"
|
||||
@onclick="OnClick">
|
||||
<span name="button-content" class="button-content">
|
||||
@ChildContent
|
||||
</span>
|
||||
</Element>
|
@ -1,25 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits ButtonBase
|
||||
|
||||
@using Connected.Extensions;
|
||||
|
||||
<Element HtmlTag="@HtmlTag"
|
||||
Class="@Classname"
|
||||
@attributes="CustomAttributes"
|
||||
@onclick="OnClick"
|
||||
type="@ButtonType.ToDescription()"
|
||||
disabled="@Disabled"
|
||||
title="@Title">
|
||||
<span class="fab-label">
|
||||
@if (!string.IsNullOrWhiteSpace(StartIcon))
|
||||
{
|
||||
<Icon Glyph="@StartIcon" Color="@IconColor" Size="@IconSize" />
|
||||
}
|
||||
@Label
|
||||
@if (!string.IsNullOrWhiteSpace(EndIcon))
|
||||
{
|
||||
<Icon Glyph="@EndIcon" Color="@IconColor" Size="@IconSize" />
|
||||
}
|
||||
</span>
|
||||
</Element>
|
@ -1,27 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits ButtonBase
|
||||
|
||||
@using Connected.Components;
|
||||
|
||||
<Element disabled="@Disabled"
|
||||
title="@GlyphTitle"
|
||||
type="@ButtonType.ToString()"
|
||||
ClassList="@CompiledClassList.ToString()"
|
||||
HtmlTag="@HtmlTag"
|
||||
PreventOnClickPropagation="PreventOnClickPropagation"
|
||||
@attributes="CustomAttributes"
|
||||
@onclick="OnClick">
|
||||
@if (!String.IsNullOrEmpty(Glyph))
|
||||
{
|
||||
<span name="glyph-container" class="glyph-button-label">
|
||||
<Icon Glyph="@Glyph" />
|
||||
</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<TextContent Typo="Typo.body2">
|
||||
@ChildContent
|
||||
</TextContent>
|
||||
}
|
||||
</Element>
|
@ -1,13 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<GlyphButton aria-pressed="@Toggled.ToString()"
|
||||
ClassList="@ClassList"
|
||||
Clicked="Toggle"
|
||||
Disabled="Disabled"
|
||||
Glyph="@(Toggled ? ToggledGlyph : Glyph)"
|
||||
GlyphTitle="@(Toggled && ToggledGlyphTitle != null ? ToggledGlyphTitle : GlyphTitle)"
|
||||
Variant="Variant"
|
||||
@attributes="CustomAttributes"
|
||||
/>
|
@ -1,12 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<Element HtmlTag="div" Class="@Classname" Tag="@Tag" UserAttributes="@CustomAttributes">
|
||||
@ChildContent
|
||||
</Element>
|
||||
|
||||
@{
|
||||
if(!CustomAttributes.ContainsKey("role"))
|
||||
CustomAttributes.Add("role", "group");
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<Paper @attributes="CustomAttributes" Class="@Classname" Outlined="@Outlined" Square="@Square" Elevation="@Elevation">
|
||||
@ChildContent
|
||||
</Paper>
|
@ -1,7 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<div @attributes="CustomAttributes" class="@Classname">
|
||||
@ChildContent
|
||||
</div>
|
@ -1,7 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<div @attributes="CustomAttributes" class="@Classname">
|
||||
@ChildContent
|
||||
</div>
|
@ -1,22 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<div @attributes="CustomAttributes" class="@Classname">
|
||||
@if (CardHeaderAvatar is not null)
|
||||
{
|
||||
<div class="card-header-avatar">@CardHeaderAvatar</div>
|
||||
}
|
||||
@if (CardHeaderContent is not null)
|
||||
{
|
||||
<div class="card-header-content">@CardHeaderContent</div>
|
||||
}
|
||||
@if (CardHeaderActions is not null)
|
||||
{
|
||||
<div class="card-header-actions">@CardHeaderActions</div>
|
||||
}
|
||||
@if (ChildContent is not null)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
</div>
|
@ -1,5 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<div @attributes="CustomAttributes" title="@Title" class="@Classname" style="@StyleString"></div>
|
@ -1,84 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits BindableItemsControlBase<CarouselItem, TData>
|
||||
@using Connected.Extensions
|
||||
@implements IAsyncDisposable
|
||||
@typeparam TData
|
||||
|
||||
<section @attributes="CustomAttributes" aria-roledescription="carousel" class="@Classname">
|
||||
<CascadingValue Value="this">
|
||||
|
||||
<SwipeArea OnSwipe="OnSwipe" Class="carousel-swipe">
|
||||
@*Selected Content*@
|
||||
@if (ItemsSource == null)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
else
|
||||
{
|
||||
foreach (TData item in ItemsSource)
|
||||
{
|
||||
<CarouselItem>
|
||||
@ItemTemplate(item)
|
||||
</CarouselItem>
|
||||
}
|
||||
}
|
||||
</SwipeArea>
|
||||
|
||||
@*Controls*@
|
||||
<div class="d-flex flex-grow-1 align-self-auto">
|
||||
@*Left Arrow*@
|
||||
@if (ShowArrows)
|
||||
{
|
||||
@if (PreviousButtonTemplate == null)
|
||||
{
|
||||
<GlyphButton tabindex="1" aria-label="Go to previous" Class="@NavigationButtonsClassName" Style="z-index:3;opacity:0.75" Glyph="@PreviousIcon" Clicked="Previous" Color="ThemeColor.Inherit" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<div @onclick="Previous" tabindex="1" aria-label="Go to previous" class="@NavigationButtonsClassName" style="z-index:3">
|
||||
@PreviousButtonTemplate
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
@*Bullets*@
|
||||
<div class="@($"flex-grow-1 align-self-{ConvertPosition(BulletsPosition).ToDescription()}")" style="z-index:3">
|
||||
@if (ShowBullets)
|
||||
{
|
||||
<div class="d-flex justify-center">
|
||||
@for (int i = 0; i < Items.Count; i++)
|
||||
{
|
||||
int current = i;
|
||||
if (BulletTemplate == null)
|
||||
{
|
||||
<GlyphButton tabindex="@(i+3)" aria-label="@(i+1)" Class="@BulletsButtonsClassName" Style="z-index:3;opacity:0.75" Glyph="@(current == SelectedIndex ? CheckedIcon : UncheckedIcon)" Clicked="(() => MoveTo(current))" Color="ThemeColor.Inherit" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<div @onclick="() => MoveTo(current)" class="@BulletsButtonsClassName" style="z-index:3">
|
||||
@BulletTemplate(current == SelectedIndex)
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@*Right Arrow*@
|
||||
@if (ShowArrows)
|
||||
{
|
||||
@if (NextButtonTemplate == null)
|
||||
{
|
||||
<GlyphButton tabindex="2" aria-label="Go to next" Class="@NavigationButtonsClassName" Style="z-index:3;opacity:0.75" Glyph="@NextIcon" Clicked="Next" Color="ThemeColor.Inherit" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<div @onclick="Next" tabindex="2" aria-label="Go to next" class="@NavigationButtonsClassName" style="z-index:3">
|
||||
@NextButtonTemplate
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
</CascadingValue>
|
||||
</section>
|
@ -1,10 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
@if (IsVisible)
|
||||
{
|
||||
<div @attributes="CustomAttributes" class="@Classname">
|
||||
@ChildContent
|
||||
</div>
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
@inherits UIComponent
|
||||
|
||||
<CascadingValue Value="@this" IsFixed="true">
|
||||
<div @attributes="CustomAttributes" class="@Classname" dir="ltr">
|
||||
@if (ChartType == ChartType.Donut)
|
||||
{
|
||||
<Donut InputData="@InputData" @bind-SelectedIndex="@SelectedIndex" InputLabels="@InputLabels"></Donut>
|
||||
}
|
||||
@if (ChartType == ChartType.Pie)
|
||||
{
|
||||
<Pie InputData="@InputData" @bind-SelectedIndex="@SelectedIndex" InputLabels="@InputLabels"></Pie>
|
||||
}
|
||||
@if (ChartType == ChartType.Line)
|
||||
{
|
||||
<Line ChartSeries="@ChartSeries" @bind-SelectedIndex="@SelectedIndex" XAxisLabels="@XAxisLabels"></Line>
|
||||
}
|
||||
@if (ChartType == ChartType.Bar)
|
||||
{
|
||||
<Bar ChartSeries="@ChartSeries" @bind-SelectedIndex="@SelectedIndex" XAxisLabels="@XAxisLabels"></Bar>
|
||||
}
|
||||
</div>
|
||||
</CascadingValue>
|
||||
|
@ -1,45 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@using System.Globalization;
|
||||
@inherits Chart
|
||||
|
||||
<svg @attributes="CustomAttributes" class="chart-line mud-ltr" width="@ChartParent?.Width" height="@ChartParent?.Height" viewBox="0 0 650 350">
|
||||
<g class="charts-grid">
|
||||
<g class="charts-gridlines-yaxis">
|
||||
@foreach (var horizontalLine in _horizontalLines)
|
||||
{
|
||||
<path stroke="#e0e0e0" stroke-width="0.3" d="@horizontalLine.Data"></path>
|
||||
}
|
||||
</g>
|
||||
@if (ChartParent?.ChartOptions.XAxisLines==true)
|
||||
{
|
||||
<g class="charts-gridlines-xaxis-lines">
|
||||
@foreach (var verticalLine in _verticalLines)
|
||||
{
|
||||
<path stroke="gray" stroke-width="0.3" d="@verticalLine.Data"></path>
|
||||
}
|
||||
</g>
|
||||
}
|
||||
</g>
|
||||
<g class="charts-yaxis">
|
||||
@foreach (var horizontalLineValue in _horizontalValues)
|
||||
{
|
||||
@((MarkupString)$"<text x='{horizontalLineValue.X.ToString(CultureInfo.InvariantCulture)}' y='{horizontalLineValue.Y.ToString(CultureInfo.InvariantCulture)}' font-size='12px' text-anchor='end' dominant-baseline='auto'>{horizontalLineValue.Value.ToString(CultureInfo.InvariantCulture)}</text>")
|
||||
}
|
||||
</g>
|
||||
<g class="charts-xaxis">
|
||||
@foreach (var verticalLineValue in _verticalValues)
|
||||
{
|
||||
@((MarkupString)$"<text x='{verticalLineValue.X.ToString(CultureInfo.InvariantCulture)}' y='{verticalLineValue.Y.ToString(CultureInfo.InvariantCulture)}' font-size='12px' text-anchor='middle'>{verticalLineValue.Value.ToString(CultureInfo.InvariantCulture)}</text>")
|
||||
}
|
||||
</g>
|
||||
<g class="charts-bar-series">
|
||||
@foreach (var bar in _bars)
|
||||
{
|
||||
<path class="chart-bar" @onclick="() => SelectedIndex = bar.Index" fill="@(ChartParent.ChartOptions.ChartPalette.GetValue(bar.Index % ChartOptions.ChartPalette.Count()))" stroke="@(ChartParent.ChartOptions.ChartPalette.GetValue(bar.Index % ChartOptions.ChartPalette.Count()))" stroke-width="8" d="@bar.Data"></path>
|
||||
}
|
||||
</g>
|
||||
|
||||
|
||||
@ChartParent?.CustomGraphics
|
||||
</svg>
|
||||
<Legend Data="@_legends" />
|
@ -1,22 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@using System.Globalization
|
||||
@inherits Chart
|
||||
|
||||
<svg @attributes="CustomAttributes" class="chart-donut" width="@ParentWidth" height="@ParentHeight" viewBox="0 0 42 42">
|
||||
<Filters />
|
||||
<circle class="donut-ring" cx="21" cy="21" r="15.91549430918954"></circle>
|
||||
@foreach (var item in _circles.ToList())
|
||||
{
|
||||
<circle class="chart-serie mud-donut-segment" @onclick="() => SelectedIndex = item.Index" stroke="@(ChartParent.ChartOptions.ChartPalette.GetValue(item.Index % ChartOptions.ChartPalette.Count()))"
|
||||
cx="@ToS(item.CX)"
|
||||
cy="@ToS(item.CY)"
|
||||
r="@ToS(item.Radius)"
|
||||
stroke-dasharray="@item.StrokeDashArray"
|
||||
stroke-dashoffset="@ToS(item.StrokeDashOffset)">
|
||||
</circle>
|
||||
}
|
||||
<circle class="donut-hole" cx="21" cy="21" r="13.4"></circle>
|
||||
|
||||
@ChartParent?.CustomGraphics
|
||||
</svg>
|
||||
<Legend Data="@_legends" />
|
@ -1,44 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@using System.Globalization;
|
||||
@inherits Chart
|
||||
|
||||
<svg @attributes="CustomAttributes" class="chart-line mud-ltr" width="@ChartParent?.Width" height="@ChartParent?.Height" viewBox="0 0 650 350">
|
||||
<g class="charts-grid">
|
||||
<g class="charts-gridlines-yaxis">
|
||||
@foreach (var horizontalLine in _horizontalLines)
|
||||
{
|
||||
<path stroke="#e0e0e0" stroke-width="0.3" d="@horizontalLine.Data"></path>
|
||||
}
|
||||
</g>
|
||||
@if (ChartParent?.ChartOptions.XAxisLines==true)
|
||||
{
|
||||
<g class="charts-gridlines-xaxis-lines">
|
||||
@foreach (var verticalLine in _verticalLines)
|
||||
{
|
||||
<path stroke="gray" stroke-width="0.3" d="@verticalLine.Data"></path>
|
||||
}
|
||||
</g>
|
||||
}
|
||||
</g>
|
||||
<g class="charts-yaxis">
|
||||
@foreach (var horizontalLineValue in _horizontalValues)
|
||||
{
|
||||
@((MarkupString)$"<text x='{horizontalLineValue.X.ToString(CultureInfo.InvariantCulture)}' y='{horizontalLineValue.Y.ToString(CultureInfo.InvariantCulture)}' font-size='12px' text-anchor='end' dominant-baseline='auto'>{horizontalLineValue.Value.ToString(CultureInfo.InvariantCulture)}</text>")
|
||||
}
|
||||
</g>
|
||||
<g class="charts-xaxis">
|
||||
@foreach (var verticalLineValue in _verticalValues)
|
||||
{
|
||||
@((MarkupString)$"<text x='{verticalLineValue.X.ToString(CultureInfo.InvariantCulture)}' y='{verticalLineValue.Y.ToString(CultureInfo.InvariantCulture)}' font-size='12px' text-anchor='middle'>{verticalLineValue.Value.ToString(CultureInfo.InvariantCulture)}</text>")
|
||||
}
|
||||
</g>
|
||||
<g class="charts-line-series">
|
||||
@foreach (var chartLine in _chartLines)
|
||||
{
|
||||
<path class="chart-line" @onclick="() => SelectedIndex = chartLine.Index" fill="none" stroke="@(ChartParent.ChartOptions.ChartPalette.GetValue(chartLine.Index % ChartOptions.ChartPalette.Count()))" stroke-width="@(ChartParent.ChartOptions.LineStrokeWidth)" d="@chartLine.Data"></path>
|
||||
}
|
||||
</g>
|
||||
|
||||
@ChartParent?.CustomGraphics
|
||||
</svg>
|
||||
<Legend Data="@_legends" />
|
@ -1,14 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@using System.Globalization
|
||||
@inherits Chart
|
||||
|
||||
<svg @attributes="CustomAttributes" class="chart-pie" width="@ChartParent?.Width" height="@ChartParent?.Height" viewBox="-1 -1 2 2" style="transform: rotate(-90deg);">
|
||||
<Filters />
|
||||
@foreach (var item in _paths.ToList())
|
||||
{
|
||||
<path @onclick="() => SelectedIndex = item.Index" class="chart-serie" fill="@(ChartParent.ChartOptions.ChartPalette.GetValue(item.Index % ChartOptions.ChartPalette.Count()))" d="@item.Data"></path>
|
||||
}
|
||||
|
||||
@ChartParent?.CustomGraphics
|
||||
</svg>
|
||||
<Legend Data="@_legends" />
|
@ -1,5 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
|
||||
<filter id="lighten">
|
||||
<feColorMatrix type="matrix" values="1.5 0 0 0 0 0 1.5 0 0 0 0 0 1.5 0 0 0 0 0 1 0" />
|
||||
</filter>
|
@ -1,15 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits Chart
|
||||
|
||||
@if (ChartParent?.ChartOptions.DisableLegend != true)
|
||||
{
|
||||
<div @attributes="CustomAttributes" class="chart-legend">
|
||||
@foreach (var item in Data)
|
||||
{
|
||||
<div class="chart-legend-item" @onclick=@(()=>{ if (ChartParent!=null) { ChartParent.SelectedIndex=item.Index; }}) @onclick:stopPropagation=@(ChartParent!=null)>
|
||||
<span class="chart-legend-marker" style="@($"background-color:{ChartParent.ChartOptions.ChartPalette.GetValue(item.Index % ChartOptions.ChartPalette.Count())}")"></span>
|
||||
<TextContent Typo="Typo.body2" Inline="true">@item.Labels</TextContent>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits BooleanInput<T>
|
||||
@typeparam T
|
||||
|
||||
<InputControl Class="@Classname" Error="@HasErrors" ErrorText="@GetErrorText()" Required="@Required">
|
||||
<InputContent>
|
||||
<label class="@LabelClassname" id="@_elementId" @onkeydown="HandleKeyDown" @onclick:stopPropagation="@StopClickPropagation">
|
||||
<span tabindex="0" class="@CheckBoxClassname">
|
||||
@*note: stopping the click propagation is important here. otherwise checking the checkbox results in click events on its parent (i.e. table row), which is generally not what you would want*@
|
||||
<input tabindex="-1" @attributes="CustomAttributes" type="checkbox" class="checkbox-input" checked="@BoolValue" @onchange="@OnChange" disabled="@Disabled" @onclick:preventDefault="@ReadOnly" />
|
||||
<Icon Glyph="@GetIcon()" Color="HasErrors ? ThemeColor.Error : ThemeColor.Inherit" Size="@Size" />
|
||||
</span>
|
||||
@if (!String.IsNullOrEmpty(Label))
|
||||
{
|
||||
<TextContent Color="HasErrors ? ThemeColor.Error : ThemeColor.Inherit">@Label</TextContent>
|
||||
}
|
||||
@if (ChildContent != null)
|
||||
{
|
||||
<TextContent Color="HasErrors ? ThemeColor.Error : ThemeColor.Inherit">
|
||||
@ChildContent
|
||||
</TextContent>
|
||||
}
|
||||
</label>
|
||||
</InputContent>
|
||||
</InputControl>
|
@ -1,33 +0,0 @@
|
||||
@namespace Connected.Components
|
||||
@inherits UIComponent
|
||||
|
||||
<div tabindex="0" @attributes="CustomAttributes" class="@Classname" @onclick="@OnClickHandler">
|
||||
@if (!String.IsNullOrEmpty(Avatar))
|
||||
{
|
||||
<Avatar Class="@AvatarClass" Color="@Color">
|
||||
<MudIcon Icon="@Avatar" />
|
||||
</Avatar>
|
||||
}
|
||||
else if (!String.IsNullOrEmpty(Icon) && !IsChecked)
|
||||
{
|
||||
<Icon Glyph="@Icon" Class="chip-icon" Size="Size.Small" Color="@IconColor" />
|
||||
}
|
||||
else if (IsChecked)
|
||||
{
|
||||
<Icon Glyph="@CheckedIcon" Class="chip-icon" Size="Size.Small" />
|
||||
}
|
||||
<span class="chip-content">
|
||||
@if (ChildContent == null)
|
||||
{
|
||||
@Text
|
||||
}
|
||||
else
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
@if (OnClose.HasDelegate || ChipSet?.AllClosable==true)
|
||||
{
|
||||
<GlyphButton Class="chip-close-button" Glyph="@(String.IsNullOrEmpty(CloseIcon) ? $"{Icons.Material.Filled.Cancel}" : $"{CloseIcon}")" Clicked="OnCloseHandler" Size="Size.Small"/>
|
||||
}
|
||||
</span>
|
||||
</div>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue