Skip to content

Commit 0b29c7f

Browse files
committed
Bump version to 0.2.0 and add new component properties
Updated the project version in `BlazorExpress.Core.csproj` to `0.2.0`. Introduced new properties in `BlazorExpressComponentCore` and `BlazorExpressLayoutComponentCore` classes: - `AdditionalAttributes` (Dictionary<string, object>) - Nullable string properties: `Class`, `Id`, and `Style` for both classes to enhance component customization. NOTE: This commit message is auto-generated using GitHub Copilot.
1 parent 4814bdb commit 0b29c7f

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

BlazorExpress.Core/BlazorExpress.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<PackageId>BlazorExpress.Core</PackageId>
5-
<Version>0.1.1</Version>
6-
<PackageVersion>0.1.1</PackageVersion>
5+
<Version>0.2.0</Version>
6+
<PackageVersion>0.2.0</PackageVersion>
77

88
<!--<PackageIconUrl></PackageIconUrl>-->
99
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

BlazorExpress.Core/Components/BlazorExpressComponentCore.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
143143
[DefaultValue(null)]
144144
[Description("Gets or sets additional attributes that will be applied to the component.")]
145145
[Parameter(CaptureUnmatchedValues = true)]
146+
[ParameterTypeName("Dictionary<string, object>")]
146147
public Dictionary<string, object> AdditionalAttributes { get; set; } = default!;
147148

148149
/// <summary>
@@ -155,6 +156,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
155156
[DefaultValue(null)]
156157
[Description("Gets or sets the CSS class name(s) to apply to the component.")]
157158
[Parameter]
159+
[ParameterTypeName("string?")]
158160
public string? Class { get; set; }
159161

160162
protected virtual string? ClassNames => Class;
@@ -178,6 +180,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
178180
[DefaultValue(null)]
179181
[Description("Gets or sets the ID. If not set, a unique ID will be generated.")]
180182
[Parameter]
183+
[ParameterTypeName("string?")]
181184
public string? Id { get; set; }
182185

183186
protected bool IsFirstRenderComplete { get; private set; }
@@ -194,6 +197,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
194197
[DefaultValue(null)]
195198
[Description("Gets or sets the CSS style string that defines the inline styles for the component.")]
196199
[Parameter]
200+
[ParameterTypeName("string?")]
197201
public string? Style { get; set; }
198202

199203
protected virtual string? StyleNames => Style;

BlazorExpress.Core/Components/BlazorExpressLayoutComponentCore.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
143143
[DefaultValue(null)]
144144
[Description("Gets or sets additional attributes that will be applied to the component.")]
145145
[Parameter(CaptureUnmatchedValues = true)]
146+
[ParameterTypeName("Dictionary<string, object>")]
146147
public Dictionary<string, object> AdditionalAttributes { get; set; } = default!;
147148

148149
/// <summary>
@@ -155,6 +156,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
155156
[DefaultValue(null)]
156157
[Description("Gets or sets the CSS class name(s) to apply to the component.")]
157158
[Parameter]
159+
[ParameterTypeName("string?")]
158160
public string? Class { get; set; }
159161

160162
protected virtual string? ClassNames => Class;
@@ -178,6 +180,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
178180
[DefaultValue(null)]
179181
[Description("Gets or sets the ID. If not set, a unique ID will be generated.")]
180182
[Parameter]
183+
[ParameterTypeName("string?")]
181184
public string? Id { get; set; }
182185

183186
protected bool IsFirstRenderComplete { get; private set; }
@@ -195,6 +198,7 @@ protected virtual ValueTask DisposeAsyncCore(bool disposing)
195198
[DefaultValue(null)]
196199
[Description("Gets or sets the CSS style string that defines the inline styles for the component.")]
197200
[Parameter]
201+
[ParameterTypeName("string?")]
198202
public string? Style { get; set; }
199203

200204
protected virtual string? StyleNames => Style;

0 commit comments

Comments
 (0)