Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions components/ILIAS/UI/src/Component/Symbol/Glyph/Glyph.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ interface Glyph extends Symbol, Clickable
public const DRAG_HANDLE = "dragHandle";
public const CHECKED = "checked";
public const UNCHECKED = "unchecked";
public const SELECT = 'select';
public const UNSELECT = 'unselect';
public const CLEAR = 'clear';

/**
* Get the type of the glyph.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,4 +323,19 @@ public function unchecked(): G\Glyph
{
return new Glyph(G\Glyph::UNCHECKED, "unchecked");
}

public function select(): G\Glyph
{
return new Glyph(G\Glyph::SELECT, 'select');
}

public function unselect(): G\Glyph
{
return new Glyph(G\Glyph::UNSELECT, 'unselect');
}

public function clear(): G\Glyph
{
return new Glyph(G\Glyph::CLEAR, 'clear');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ class Glyph implements C\Symbol\Glyph\Glyph
self::DRAG_HANDLE,
self::CHECKED,
self::UNCHECKED,
self::SELECT,
self::UNSELECT,
self::CLEAR,
];

private string $type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
<!-- BEGIN dragHandle --> glyphicon-dragHandle<!-- END dragHandle -->
<!-- BEGIN checked --> glyphicon-checked<!-- END checked -->
<!-- BEGIN unchecked --> glyphicon-unchecked<!-- END unchecked -->
<!-- BEGIN select --> glyphicon-select<!-- END select -->
<!-- BEGIN unselect --> glyphicon-unselect<!-- END unselect -->
<!-- BEGIN clear --> glyphicon-clear<!-- END clear -->
" aria-hidden="true"></span>

<!-- BEGIN counter_status -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ public function getCounterFactory(): C\Factory
G\Glyph::DRAG_HANDLE => "glyphicon glyphicon-dragHandle",
G\Glyph::CHECKED => "glyphicon glyphicon-checked",
G\Glyph::UNCHECKED => "glyphicon glyphicon-unchecked",
G\Glyph::SELECT => 'glyphicon glyphicon-select',
G\Glyph::UNSELECT => 'glyphicon glyphicon-unselect',
G\Glyph::CLEAR => 'glyphicon glyphicon-clear',
);

public static array $aria_labels = array(
Expand Down Expand Up @@ -169,6 +172,9 @@ public function getCounterFactory(): C\Factory
G\Glyph::DRAG_HANDLE => "drag_handle",
G\Glyph::CHECKED => "checked",
G\Glyph::UNCHECKED => "unchecked",
G\Glyph::SELECT => 'select',
G\Glyph::UNSELECT => 'unselect',
G\Glyph::CLEAR => 'clear',
);

#[\PHPUnit\Framework\Attributes\DataProvider('getGlyphTypeProvider')]
Expand Down