Repository navigation
Fix missing facade types preventing seamless transition from v1.x #1069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
michelebastione
merged 3 commits into
mini-software:master
from
michelebastione:missing-facade-classes
Nov 23, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // ReSharper disable once CheckNamespace | ||
| namespace MiniExcelLibs.Csv; | ||
|
|
||
| public sealed class CsvConfiguration : MiniExcelLib.Csv.CsvConfiguration, IConfiguration | ||
| { | ||
| public bool ReadEmptyStringAsNull | ||
| { | ||
| get => ReadEmptyFieldsAsDefault; | ||
| set => ReadEmptyFieldsAsDefault = value; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| using MiniExcelLib.Core; | ||
|
|
||
| // ReSharper disable once CheckNamespace | ||
| namespace MiniExcelLibs; | ||
|
|
||
| public interface IConfiguration : IMiniExcelConfiguration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,120 @@ | ||
| // ReSharper disable once CheckNamespace | ||
| namespace MiniExcelLibs.OpenXml; | ||
|
|
||
| public sealed class OpenXmlConfiguration : MiniExcelLib.OpenXml.OpenXmlConfiguration, IConfiguration | ||
| { | ||
| public OpenXmlConfiguration() | ||
| { | ||
| // Needs assignment inside the constructor so that it also assigns the base property through the forwarding setter, | ||
| // so that the facade object and the original object are kept in sync from the start. | ||
| StyleOptions = new OpenXmlStyleOptions(); | ||
| } | ||
|
|
||
| public new OpenXmlStyleOptions StyleOptions | ||
| { | ||
| get; | ||
| set | ||
| { | ||
| field = value; | ||
| base.StyleOptions = value; | ||
| } | ||
| } | ||
|
|
||
| public new TableStyles TableStyles | ||
| { | ||
| get => base.TableStyles switch | ||
| { | ||
| MiniExcelLib.OpenXml.TableStyles.Default => TableStyles.Default, | ||
| _ => TableStyles.None | ||
| }; | ||
| set => base.TableStyles = value switch | ||
| { | ||
| TableStyles.Default => MiniExcelLib.OpenXml.TableStyles.Default, | ||
| _ => MiniExcelLib.OpenXml.TableStyles.None | ||
| }; | ||
| } | ||
| } | ||
|
|
||
| public sealed class OpenXmlStyleOptions : MiniExcelLib.OpenXml.Styles.OpenXmlStyleOptions | ||
|
michelebastione marked this conversation as resolved.
Resolved
|
||
| { | ||
| public new OpenXmlHeaderStyle? HeaderStyle | ||
| { | ||
| get; | ||
| set | ||
| { | ||
| field = value; | ||
| base.HeaderStyle = value; | ||
| } | ||
| } | ||
|
|
||
| public new HorizontalCellAlignment HorizontalAlignment | ||
| { | ||
| get => base.HorizontalAlignment switch | ||
| { | ||
| MiniExcelLib.Core.Enums.HorizontalCellAlignment.Right => HorizontalCellAlignment.Right, | ||
| MiniExcelLib.Core.Enums.HorizontalCellAlignment.Center => HorizontalCellAlignment.Center, | ||
| _ => HorizontalCellAlignment.Left | ||
| }; | ||
| set => base.HorizontalAlignment = value switch | ||
| { | ||
| HorizontalCellAlignment.Right => MiniExcelLib.Core.Enums.HorizontalCellAlignment.Right, | ||
| HorizontalCellAlignment.Center => MiniExcelLib.Core.Enums.HorizontalCellAlignment.Center, | ||
| _ => MiniExcelLib.Core.Enums.HorizontalCellAlignment.Left | ||
| }; | ||
| } | ||
|
|
||
| public new VerticalCellAlignment VerticalAlignment | ||
| { | ||
| get => base.VerticalAlignment switch | ||
| { | ||
| MiniExcelLib.Core.Enums.VerticalCellAlignment.Top => VerticalCellAlignment.Top, | ||
| MiniExcelLib.Core.Enums.VerticalCellAlignment.Center => VerticalCellAlignment.Center, | ||
| _ => VerticalCellAlignment.Bottom | ||
| }; | ||
| set => base.VerticalAlignment = value switch | ||
| { | ||
| VerticalCellAlignment.Top => MiniExcelLib.Core.Enums.VerticalCellAlignment.Top, | ||
| VerticalCellAlignment.Center => MiniExcelLib.Core.Enums.VerticalCellAlignment.Center, | ||
| _ => MiniExcelLib.Core.Enums.VerticalCellAlignment.Bottom | ||
| }; | ||
| } | ||
| } | ||
|
|
||
| public sealed class OpenXmlHeaderStyle : MiniExcelLib.OpenXml.Styles.OpenXmlHeaderStyle | ||
| { | ||
| public new HorizontalCellAlignment HorizontalAlignment | ||
| { | ||
| get => base.HorizontalAlignment switch | ||
| { | ||
| MiniExcelLib.Core.Enums.HorizontalCellAlignment.Right => HorizontalCellAlignment.Right, | ||
| MiniExcelLib.Core.Enums.HorizontalCellAlignment.Center => HorizontalCellAlignment.Center, | ||
| _ => HorizontalCellAlignment.Left | ||
| }; | ||
| set => base.HorizontalAlignment = value switch | ||
| { | ||
| HorizontalCellAlignment.Right => MiniExcelLib.Core.Enums.HorizontalCellAlignment.Right, | ||
| HorizontalCellAlignment.Center => MiniExcelLib.Core.Enums.HorizontalCellAlignment.Center, | ||
| _ => MiniExcelLib.Core.Enums.HorizontalCellAlignment.Left | ||
| }; | ||
| } | ||
|
|
||
| public new VerticalCellAlignment VerticalAlignment | ||
| { | ||
| get => base.VerticalAlignment switch | ||
| { | ||
| MiniExcelLib.Core.Enums.VerticalCellAlignment.Top => VerticalCellAlignment.Top, | ||
| MiniExcelLib.Core.Enums.VerticalCellAlignment.Center => VerticalCellAlignment.Center, | ||
| _ => VerticalCellAlignment.Bottom | ||
| }; | ||
| set => base.VerticalAlignment = value switch | ||
| { | ||
| VerticalCellAlignment.Top => MiniExcelLib.Core.Enums.VerticalCellAlignment.Top, | ||
| VerticalCellAlignment.Center => MiniExcelLib.Core.Enums.VerticalCellAlignment.Center, | ||
| _ => MiniExcelLib.Core.Enums.VerticalCellAlignment.Bottom | ||
| }; | ||
| } | ||
| } | ||
|
|
||
| public enum TableStyles { None, Default } | ||
| public enum HorizontalCellAlignment { Left, Center, Right } | ||
| public enum VerticalCellAlignment { Bottom, Center, Top } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.