Phil Scott
8f2a859087
Fallback to using GetConverter if GetIntrinsicConverter doesn't find one.
2024-11-22 22:55:01 +01:00
Phil Scott
2be8e8da4e
Adds fallback for ExceptionFormatter in AOT
2024-11-22 22:55:01 +01:00
Phil Scott
e1d21e7e61
Adding polysharp properly
2024-11-22 22:55:01 +01:00
Phil Scott
c7c3ebdf57
Fix assembly name retrieval for FSharp.Core in TypeNameHelper to work better in AOT scenarios
2024-11-22 22:55:01 +01:00
Phil Scott
b67af32423
Add RequiresDynamicCode attribute to exception formatter to indicate incompatability with AOT
2024-11-22 22:55:01 +01:00
Phil Scott
10773a5625
Refactor enum value retrieval to use EnumUtils for better compatibility with NetStandard 2.0 and AOT
2024-11-22 22:55:01 +01:00
Phil Scott
4802751357
Add AOT compatibility and PolySharp package support
2024-11-22 22:55:01 +01:00
Frank Ray
4515d89705
ProgressTask.GetPercentage() returns 100 when max value is 0 ( #1694 )
2024-11-22 12:44:00 +01:00
Phil Scott
69689d2ba1
Changes Emoji dictionary to OrdinalIgnoreCase for performance
...
This code is ran on startup, and instantiating a new InvariantCultureIgnoreCase was taking up 11ms, which was half the time in AOT.
2024-11-20 17:55:33 -05:00
Tim Pilius
aa9e5c48c6
Adding TransferSpeedColumn configuration to display bits/bytes + binary/decimal prefixes ( #904 )
...
* Adding configuration to TransferSpeedColumn to be able to display in both bytes/bits, as well as using binary/decimal prefix definitions.
---------
Co-authored-by: Frank Ray <52075808+FrankRay78@users.noreply.github.com>
2024-11-19 15:41:49 +00:00
PascalSenn
8d06daf355
Fixed typo in Segment
description ( #1687 )
2024-11-19 06:09:22 +01:00
Patrik Svensson
375a708c43
Add net9.0
support, remove legacy TFM:s ( #1682 )
...
* Update .NET SDK to 9.0.100
* Remove net6.0
* Remove net7.0
* Update dependencies
* Install correct .NET SDK:s in GitHub Actions
2024-11-13 14:54:01 +01:00
Jonathan Sheely
574ead6d46
Added hex color conversion ( #1432 )
...
* Added hex color conversion
---------
Co-authored-by: Frank Ray <52075808+FrankRay78@users.noreply.github.com>
Co-authored-by: Nils Andresen <nils@nils-andresen.de>
2024-11-13 13:35:26 +01:00
BlazeFace
a87277e859
Adding Enricher for Azure Pipelines ( #1675 )
2024-11-04 16:30:35 +01:00
BlazeFace
3eb620a44e
Fix typo
2024-10-26 07:27:31 -07:00
BlazeFace
444dbed259
Merge remote-tracking branch 'upstream/main' into blz/issues/1390
...
# Conflicts:
# src/Tests/Spectre.Console.Tests/Expectations/Widgets/Layout/Render_Layout_With_Three_And_One_Columns.Output.verified.txt
2024-10-25 17:47:02 -07:00
Cédric Luthi
c70a8b8fc5
Improve exception if a (multi)selection prompt is used incorrectly
...
Before this commit, the selection prompt would throw an `InvalidOperationException` (Sequence contains no elements) and the multi selection prompt would throw an `ArgumentOutOfRangeException` (Index was out of range. Must be non-negative and less than the size of the collection.)
Both would occur because the prompts were never meant to be empty.
2024-09-11 10:16:21 +02:00
Davide Piccinini
a55b80220d
Enhance the style of the checkboxes for multi-selection ( #1244 )
...
* Enhance the checkboxes' style for multi-selection by applying the selected style, if available, to the checkboxes currently selected.
2024-09-09 16:35:01 +02:00
Davide Piccinini
dba7ad0875
Fix SA1513 line 38 Tree.cs
2024-09-09 14:28:13 +02:00
Davide Piccinini
322ed2efbb
Fix error SA1300 in full property creation
2024-09-09 14:28:13 +02:00
Davide Piccinini
156d254208
Fix issue 1153 on expanded tree
2024-09-09 14:28:13 +02:00
d.piccinini
3437130bf0
Removed blank line
2024-09-09 10:21:00 +02:00
d.piccinini
32384f7b8d
Add custom highligh style for single calendar event
2024-09-09 10:21:00 +02:00
Daniel Cazzulino
8e44a83737
Simplify InternalsVisibleTo
...
If the $(PublicKey) property is used, the SDK targets will automatically use it for the assembly attributes.
See https://github.com/dotnet/sdk/pull/3439
Simplifies https://github.com/spectreconsole/spectre.console/pull/1623
2024-09-06 20:31:18 +02:00
Patrik Svensson
fd69ad0b01
Fix search bug in prompt related to custom item types
...
Closes #1626
2024-09-03 00:46:18 +02:00
Kirill Osenkov
6116af3844
Strong name the assemblies
2024-08-29 16:52:55 -07:00
Patrik Svensson
42fd801876
Preparations for the 1.0 release
...
* Less cluttered solution layout.
* Move examples to a repository of its own.
* Move Roslyn analyzer to a repository of its own.
* Enable central package management.
* Clean up csproj files.
* Add README file to NuGet packages.
2024-08-06 15:38:28 +02:00
tonwin618
bb72b44d60
Delete based on character width when pressing Backspace.
2024-08-01 11:07:16 +02:00
ymqn
64b9ef582d
Fixed incorrect decoration check from Bold to Italic in HtmlEncoder.BuildCss
2024-07-25 23:13:06 +02:00
BlazeFace
d52d14e848
Undo debug change and add method group
2024-04-13 17:23:26 -07:00
BlazeFace
a62e79992b
Undo debug changes
2024-04-13 17:20:12 -07:00
BlazeFace
ff7282ecb8
Adding test and update render to fix issue with rendering separator when headers are hidden fixing issue 1391.
2024-04-14 02:05:13 +02:00
BlazeFace
20a2f727f7
Updating test and Ratio calculation
2024-04-09 06:03:45 -07:00
Phil Scott
fc0b553a4a
Revert "Fixed render issue where writeline inside status caused corrupt output #415 #694 "
...
This reverts commit 71a5d830671220e601e4e6ab4d4c352ae0e0a64a.
The commit introduced major flickering when working with LiveRenderables
Fixes #1466
2024-04-01 19:47:20 +02:00
Gerardo Grignoli
e66d3aab2e
Added NoStackTrace to ExceptionFormats ( #1489 )
2024-03-08 15:26:45 +00:00
Tom Longhurst
d921ac6f02
Positioned Progress Tasks - Before or After Other Tasks ( #1250 )
2024-03-07 08:38:59 +00:00
Stuart Lang
397b742bec
Add selection orompt Search ( #1289 )
...
* Add selection prompt search as you type
* Fix small bug
* Simplify
* Simplify
* Remove spacebar as a selection prompt submit key
* Trigger CI
* Update src/Spectre.Console/Prompts/SelectionPrompt.cs
Co-authored-by: Martin Costello <martin@martincostello.com>
* Simplifty Mask method
* Handle multi-selection prompt better
* Update API naming
* Address feedback
* Add some tests
* Remove whitespace
* Improve search and highlighting
* Add test case for previous issue
* Add extra test case
* Make prompt searchable
---------
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Patrik Svensson <patrik@patriksvensson.se>
2024-02-25 12:57:27 +01:00
Martin Costello
d30b08201d
Remove [DebuggerDisplay] from Paragraph
...
The `_text` field no longer exists, so hovering over instances in the debugger just shows an error message.
2024-02-23 14:25:32 +01:00
Daniel Weber
bf3b91a535
Don't erase the prompt text when backspacing on a secret prompt with a null mask.
2024-02-13 09:01:24 +01:00
Patrik Svensson
b21e07ea94
Update dependencies
...
* Add support for C# 12
* Run all tests on all major .NET SDKs
* Only build on Ubuntu
* Do not build docs for pull requests
* Add Cédric Luthi, and Frank Ray to authors
* Drop netstandard2.0 for ImageSharp plugin
2024-01-31 20:51:49 +01:00
Jonathan Sheely
703d653ec5
Adds ValueFormatter to ProgressBar
2024-01-31 17:37:05 +01:00
Caelan Sayler
71631b248a
Fix potential deadlock when cancelling prompts ( #1439 )
2024-01-31 12:02:01 +01:00
Frank Ray
9cc888e5ad
Make HelpProvider colors configurable ( #1408 )
2024-01-18 15:31:28 +01:00
Nils Andresen
6f1f29967d
( #1363 ) fix rendering of ListPrompt for odd pageSizes
2024-01-01 10:19:09 +01:00
Nils Andresen
44300c871f
fixed line-endings
2023-11-28 00:14:54 +01:00
Patrik Svensson
b1e0896a0d
Add net8.0 support
2023-11-14 22:24:53 +01:00
Will Baldoumas
e07ccd9f66
Allow Confirmation Prompt Styling ( #1210 )
...
* Allow Confirmation Prompt Styling
* Remove style null check
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Remove style null coalesce
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Update comment
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Remove style null check
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Update comment
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
* Remove style null coalesce
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
---------
Co-authored-by: Cédric Luthi <cedric.luthi@gmail.com>
2023-11-13 18:23:09 +01:00
Cédric Luthi
4219bbbf61
Allow passing a nullable style in DefaultValueStyle() and ChoicesStyle()
...
This will allow to slightly simplify the implementation of #1210
See also related discussion on https://github.com/spectreconsole/spectre.console/pull/1349#discussion_r1388385384
2023-11-10 08:01:18 +01:00
Cédric Luthi
29a43686d4
Fix AnsiConsoleOutput safe height
...
The safe height (introduced in 3e2eea730bf0f6fe4a5e336faa312b526d351079) would be 80 (the value of the safe width) instead of 24.
Removing the explicit `defaultValue` parameter ensures that the correct constants are used, i.e. Constants.DefaultTerminalWidth and Constants.DefaultTerminalHeight.
2023-11-09 12:11:56 +01:00
Nils Andresen
bbf58ee814
( #1188 ) Rows measure greedy
2023-10-19 07:46:12 +02:00