Skip to content

Conversation

@PTKu
Copy link
Contributor

@PTKu PTKu commented Oct 29, 2025

This pull request introduces several improvements and refactorings across the Blazor presentation controls and supporting abstractions. The main focus is on enhancing the handling of formatting and units for input controls, simplifying attribute usage, and improving the layout structure and styling. Additionally, there are updates to package versions and build/release logic.

Presentation Attributes and Input Controls

  • Introduced new attribute classes: FormatAttribute and UnitAttribute in AXSharp.Abstractions.Presentation to allow specifying format and unit metadata for properties. These replace the previous, more complex TimeFormatAttribute implementation. (src/AXSharp.abstractions/src/AXSharp.Abstractions/Presentation/Attributes/FormatAttribute.cs [1] src/AXSharp.abstractions/src/AXSharp.Abstractions/Presentation/Attributes/UnitAttribute.cs [2] src/AXSharp.abstractions/src/AXSharp.Abstractions/Presentation/Attributes/TimeFormatAttribute.cs [3]
  • Updated Blazor input controls (OnlinerBaseControlView.razor, OnlinerBoolControlView.razor, OnlinerDateControlView.razor, OnlinerDateTimeControlView.razor, OnlinerLDateTimeControlView.razor) to receive and utilize Format and Unit parameters, enabling consistent formatting and unit display for various data types. ([[1]](https://github.com/Inxton/axsharp/pull/456/files#diff-a6da54ce9c287fedc10c466feebc8bd2f7f50d2678e6f3e28d9a94e75c2ba981L9-R9), [[2]](https://github.com/Inxton/axsharp/pull/456/files#diff-63059e891f4f0f69b148235fcdc0912902bf9e7af69c356df13168e527499394L5-R5), [[3]](https://github.com/Inxton/axsharp/pull/456/files#diff-e1da1a5175fdec59d5b2209bcbbf331e46e3cce895cb2385e00adbae7c2cd466L6-L23), [[4]](https://github.com/Inxton/axsharp/pull/456/files#diff-0446362d72e8c5a0e1def761cb8ef8460f91e8f8d0f279226bcbd61dd0acc5c5L6-L23), [[5]](https://github.com/Inxton/axsharp/pull/456/files#diff-fe7965508f1187e324ba7c16e1b75d916b33ebd6bfb5cc4bd740754a97c11d2aL4-R4))
  • Enhanced primitive component creation in RenderableContentControl.razor.cs to extract and pass format and unit attributes from the underlying model. ([src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/RenderableContent/RenderableContentControl.razor.csR289-R290](https://github.com/Inxton/axsharp/pull/456/files#diff-24025595040e8ba2045a337ff41bd4580f354615bed9c3f6765105675ff1353dR289-R290))

Layout and Styling Improvements

  • Added custom data attributes and improved spacing, padding, and styling for all major layout components (e.g., BorderLayout, GroupBoxLayout, StackPanelLayout, UniformGridLayout, WrapPanelLayout, ArrayBorderSetter, TabControlLayout) to support better UI consistency and easier targeting for testing or further customization. ([[1]](https://github.com/Inxton/axsharp/pull/456/files#diff-0dfc54feba2e102415c616785ac977a818b011b9aa9d43fae6b5a02bb579238bL3-R3), [[2]](https://github.com/Inxton/axsharp/pull/456/files#diff-715dbf0d73526c26750e1dde08d4d43b3691a5c1c98a26d86d00c370a72f7f0eL3-R3), [[3]](https://github.com/Inxton/axsharp/pull/456/files#diff-82b57ff1d96d393c037fd95732317b7746da20696cb80bbe4c020e63121e6b01L3-R3), [[4]](https://github.com/Inxton/axsharp/pull/456/files#diff-3c75e07c160a72fa93da64b9694ceeb9241973e81f6ba48319ff5084d4d527deL3-R3), [[5]](https://github.com/Inxton/axsharp/pull/456/files#diff-f91187310b55bb07342677a1998934733f7d5f10662267c52fb20884e6e911d1L3-R3), [[6]](https://github.com/Inxton/axsharp/pull/456/files#diff-55094eaf6bae0946177c9bd65a97f80fa657ac10ea97265f681d8c1792d7da59L3-R3), [[7]](https://github.com/Inxton/axsharp/pull/456/files#diff-1150af0cff79012c0108815c94f5fc2ba6a08d41bdc086b9941b0c909540a666L4-R4))

Build and Package Updates

  • Updated the Inxton.Operon package version in Directory.Packages.props for improved dependency management. ([Directory.Packages.propsL12-R12](https://github.com/Inxton/axsharp/pull/456/files#diff-5baf5f9e448ad54ab25a091adee0da05d4d228481c9200518fcb1b53a65d4156L12-R12))
  • Changed the next version in GitVersion.yml to 0.43.1 to reflect upcoming release. ([GitVersion.ymlL2-R2](https://github.com/Inxton/axsharp/pull/456/files#diff-1b800222c322c27580a65856212fc4fd9bf1128603cb0864b2e85f6f22b567c9L2-R2))
  • Renamed build targets file in the Blazor controls project for clarity and consistency. ([src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/AXSharp.Presentation.Blazor.Controls.csprojL76-R76](https://github.com/Inxton/axsharp/pull/456/files#diff-5e09615a57027ddf08606b71f0cfbbae4afc29ca2ff7cd381e242d8c0cd6731eL76-R76))
  • Simplified NuGet package push logic in BuildContext.cs by removing the internal release condition. ([[1]](https://github.com/Inxton/axsharp/pull/456/files#diff-a8fca83971c3ceb9c5d9046663e5b28e7d5550bd7cac52810aefa8c33f5dd1d2L172-R173), [[2]](https://github.com/Inxton/axsharp/pull/456/files#diff-a8fca83971c3ceb9c5d9046663e5b28e7d5550bd7cac52810aefa8c33f5dd1d2L185-R185))

@PTKu PTKu requested a review from Brano5 October 29, 2025 07:29
@PTKu PTKu merged commit d149133 into dev Oct 29, 2025
2 checks passed
@PTKu PTKu deleted the dev-flux branch October 29, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants