Compare commits
No commits in common. '33311058119b06c00436f18709a2c4f77c8f29c4' and 'd6ee4bc164facd918731a498178a4bfcff8c69ee' have entirely different histories.
3331105811
...
d6ee4bc164
@ -1,29 +0,0 @@
|
||||
@page "/formwizard"
|
||||
@using Connected.Classes.FormWizard;
|
||||
@using Connected.Components;
|
||||
@using Connected.Enums;
|
||||
@using Connected.Models.Modal;
|
||||
@using Connected.Models;
|
||||
@using Connected.Services;
|
||||
@using Connected.Utilities;
|
||||
|
||||
<h1 style="text-align:center;">FORM WIZARD EXAMPLE</h1>
|
||||
|
||||
<FormWizard Options="@options">
|
||||
<FormWizardStep>
|
||||
Step 1
|
||||
</FormWizardStep>
|
||||
<FormWizardStep>
|
||||
Step2
|
||||
</FormWizardStep>
|
||||
<FormWizardStep>
|
||||
Step3
|
||||
</FormWizardStep>
|
||||
<FormWizardStep>
|
||||
Step4
|
||||
</FormWizardStep>
|
||||
</FormWizard>
|
||||
|
||||
@code {
|
||||
FormWizardOptions options = new(false, "Naslednji", "Prejšnji", "Končaj", "Prekliči");
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
@page "/toggleglyph"
|
||||
@using Connected.Components;
|
||||
@using Connected.Enums;
|
||||
@using Connected.Models.Modal;
|
||||
@using Connected.Models;
|
||||
@using Connected.Services;
|
||||
@using Connected.Utilities;
|
||||
|
||||
@inject ModalDialogService modalDialog;
|
||||
|
||||
|
||||
<h1 style="text-align:center;">DATE PICKER EXAMPLE</h1>
|
||||
|
||||
|
||||
<ToggleGlyphButton Glyph="@Icons.Material.Filled.Close" ToggledGlyph="@Icons.Material.Filled.Check" @bind-Toggled=toggle>
|
||||
TGB
|
||||
</ToggleGlyphButton>
|
||||
|
||||
|
||||
<h4>Toggled: @toggle</h4>
|
||||
|
||||
|
||||
@code {
|
||||
bool toggle = false;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
@inherits ComponentBase
|
||||
|
||||
@*Base class for all components
|
||||
It contains unique ID for the component used in
|
||||
saving state of the component*@
|
@ -1,20 +0,0 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace Connected.Components
|
||||
{
|
||||
public partial class Base : ComponentBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Unique ID for the component used in state management
|
||||
/// Every component should inherit from Base class
|
||||
/// </summary>
|
||||
[Parameter, EditorRequired]
|
||||
public string Id { get; set; } = Guid.NewGuid().ToString();
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
if (string.IsNullOrEmpty(Id))
|
||||
Id = Guid.NewGuid().ToString();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,29 +1,22 @@
|
||||
@inherits Base
|
||||
<CascadingValue Value="this">
|
||||
<section id="@Id" class="@ClassList" style="@StyleList">
|
||||
<div class="form-outer ">
|
||||
@ChildContent
|
||||
</div>
|
||||
|
||||
@if (loaded)
|
||||
{
|
||||
<CascadingValue Value="this">
|
||||
<section id="@Id" class="@ClassList" style="@StyleList">
|
||||
<div class="form-outer ">
|
||||
@ChildContent
|
||||
<div class="btn-content justify-space-between">
|
||||
<button type="button" href="#" class="btn btn-secondary" aria-pressed="true" disabled="@WizardFinished" @onclick="CancelClick">Cancel</button>
|
||||
<div class="btn-group">
|
||||
<button type="button" @onclick="PreviousSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@WizardFinished"><i class='bx bx-chevron-left'></i>@PreviousBtnText</button>
|
||||
<button type="button" @onclick="NextSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@WizardFinished">@NextBtnText<i class='bx bx-chevron-right'></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="btn-content justify-space-between">
|
||||
<button type="button" href="#" class="btn btn-secondary" aria-pressed="true" disabled="@NavigationDisabled" @onclick="CancelClick">@Options.CancelButtonText</button>
|
||||
<div class="btn-group">
|
||||
<button type="button" @onclick="PreviousSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@NavigationDisabled"><i class='bx bx-chevron-left'></i>@Options.PreviousButtonText</button>
|
||||
<button type="button" @onclick="NextSlide" class="btn btn-core mr-2" aria-pressed="true" disabled="@NavigationDisabled">@NextBtnText<i class='bx bx-chevron-right'></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dots d-flex justify-center gap-3">
|
||||
@foreach (var step in Steps)
|
||||
{
|
||||
<div class="dot @step.DotClass"></div>
|
||||
}
|
||||
</div>
|
||||
<div class="dots d-flex justify-center gap-3">
|
||||
@foreach (var step in Steps)
|
||||
{
|
||||
<div class="dot @step.DotClass"></div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
</CascadingValue>
|
||||
} else {
|
||||
<p>@LoadingText</p>
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
@inherits Base
|
||||
|
||||
<div class="@ClassList" style="@StyleList">
|
||||
<div class="@ClassList" style="@StyleList">
|
||||
@ChildContent
|
||||
</div>
|
||||
|
@ -1,5 +1,3 @@
|
||||
@inherits Base
|
||||
|
||||
<svg viewBox="0 0 24 24" class="@GlyphClassList" @onclick="@OnClick">
|
||||
<svg viewBox="0 0 24 24" class="@GlyphClassList" @onclick="@OnClick">
|
||||
@((MarkupString)SVG)
|
||||
</svg>
|
||||
|
@ -1,12 +1,21 @@
|
||||
@inherits GlyphButton
|
||||
@inherits Button
|
||||
|
||||
<button type="button"
|
||||
@onclick="@Clicked"
|
||||
disabled=@Disabled
|
||||
style="@StyleList"
|
||||
class="@ClassList">
|
||||
<div class="@ContentClassList">
|
||||
<Glyph SVG="@_ShownGlyph" Color="@GlyphColor" />
|
||||
<div class="@ContentClassList">
|
||||
<div style="align-items:center">
|
||||
@if (GlyphPosition == Position.Top)
|
||||
{
|
||||
<Glyph SVG="@_ShownGlyph" Color="@GlyphColor" />
|
||||
}
|
||||
@ChildContent
|
||||
@if (GlyphPosition == Position.Bottom)
|
||||
{
|
||||
<Glyph SVG="@_ShownGlyph" Color="@GlyphColor" />
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</button>
|
||||
|
Loading…
Reference in new issue