DashHtml.Design.psd1
|
@{ RootModule = 'DashHtml.Design.psm1' ModuleVersion = '2.5.1' GUID = 'b7e4c1a9-6d2f-4a83-9c15-2e8f7a4b1d60' Author = 'Nicola Viganò' CompanyName = 'Nicola Viganò' Copyright = '(c) 2026 Nicola Viganò. MIT License.' Description = 'Design / round-trip companion tools for DashHtml: convert a DashHtml report object to a declarative YAML layout spec, generate a runnable PowerShell build script from YAML/JSON, and derive a best-effort YAML layout from an existing DashHtml .ps1 script. Self-contained (no YAML dependency); makes no changes to the core DashHtml module.' PowerShellVersion = '7.0' # DashHtml.Design is a companion, not a standalone module: ConvertFrom-DhYaml # drives its codegen off the core module's live cmdlet metadata (Get-Command), # and every generated build script starts with 'Import-Module DashHtml'. # Declaring the dependency makes Install-PSResource / Install-Module pull the # core in automatically and shows it on the gallery page. # 2.0.0 is the floor: Update-DhScript audits the 2.0.0 upgrade, and the # codegen picks up -NavPath / -NavScope from live cmdlet metadata. # ModuleVersion here means "minimum". RequiredModules = @( @{ ModuleName = 'DashHtml'; ModuleVersion = '2.5.1' } ) FunctionsToExport = @( 'ConvertTo-DhYaml' 'ConvertFrom-DhYaml' 'ConvertFrom-DhScript' 'Update-DhScript' ) CmdletsToExport = @() VariablesToExport = @() AliasesToExport = @() PrivateData = @{ PSData = @{ Tags = @('DashHtml','YAML','Dashboard','CodeGen','Design','Layout') LicenseUri = 'https://github.com/nicola-vi/DashHtml/blob/main/LICENSE' ProjectUri = 'https://github.com/nicola-vi/DashHtml' ReleaseNotes = '2.5.1 - ConvertTo-DhYaml writes the 2.5.0 menu options (navLayout, navMaxDepth, navAllLabel, navTree, strictNav, navOverflow) that were dropped before, and generated scripts keep ordered hashtables. Requires DashHtml 2.5.1. 2.5.0 - Knows the DashHtml 2.5.0 additions: Add-DhTreeTable round-trips through YAML (ConvertFrom-DhScript and Update-DhScript recognise it); New-DhDashboard -NavAllLabel, -NavTree, -StrictNav, -NavOverflow, Add-DhTable -RememberColumns and column Hidden carry through ConvertTo-DhYaml / ConvertFrom-DhYaml. Requires DashHtml 2.5.0. 2.4.1 - Version aligned with DashHtml 2.4.1 (menu fixes); no change to the YAML round trip. 2.4.0 — Knows the DashHtml 2.4.0 blocks: Add-DhNetworkMap and Add-DhTreeFilter round-trip through YAML, ConvertFrom-DhScript recognises them, Update-DhScript audits them; New-DhDashboard -Search and -NavBadge and Add-DhTable -ColumnFit, -ColumnMaxWidth and column MinWidth carry through ConvertTo-DhYaml / ConvertFrom-DhYaml. Requires DashHtml 2.4.0. 2.3.0 — Knows the DashHtml 2.3.0 blocks: Add-DhKeyValue and Add-DhRecordList round-trip through YAML, ConvertFrom-DhScript recognises them, Update-DhScript audits them; table drawers, grid details, score / maturity tiles and split findings carry through ConvertTo-DhYaml / ConvertFrom-DhYaml. Requires DashHtml 2.3.0. 2.2.0 — Knows the DashHtml 2.2.0 findings block: ConvertTo-DhYaml / ConvertFrom-DhYaml round-trip Add-DhFindings, ConvertFrom-DhScript recognises it, and Update-DhScript audits it like every other block. Requires DashHtml 2.2.0. 2.1.1 — Update-DhScript now recognises Add-DhRangeBar as a block cmdlet (missed when it shipped in DashHtml 2.1.0), so a range bar declared with -NavSubGroup is reported like every other block. 2.0.0 — Adds Update-DhScript, an AST-based audit and rewriter for the DashHtml 2.0.0 upgrade (classifies findings ACTION/advisory/info, backs up before editing, idempotent, never rewrites non-literal content). Version and RequiredModules floor aligned to DashHtml 2.0.0, whose -NavPath/-NavScope parameters the codegen picks up automatically from live cmdlet metadata. Previously 1.0.0 — Initial release. ConvertTo-DhYaml (report -> YAML, lossless), ConvertFrom-DhYaml (YAML/JSON -> runnable .ps1 build script, driven by live cmdlet metadata), ConvertFrom-DhScript (best-effort static .ps1 -> YAML). Self-contained YAML reader/writer, no external dependency. Companion to DashHtml; no core changes.' } } } |