Replace hidden/disabled with visible/enabled in form DSL

Rename DSL keys to match 1C property names (Visible, Enabled):
- form-compile/form-add: accept "visible": false and "enabled": false
  as primary keys, keep hidden/disabled as synonyms
- form-info: output [visible:false] and [enabled:false] flags
- Update SKILL.md docs and form-guide.md

Improves round-trip consistency: form-info output now directly maps
to form-compile/form-add input keys.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nick Shirokov
2026-02-09 15:05:14 +03:00
co-authored by Claude Opus 4.6
parent a9e59265dd
commit d05199d048
6 changed files with 13 additions and 13 deletions
@@ -295,8 +295,8 @@ function Emit-Element {
function Emit-CommonFlags {
param($el, [string]$indent)
if ($el.hidden -eq $true) { X "$indent<Visible>false</Visible>" }
if ($el.disabled -eq $true) { X "$indent<Enabled>false</Enabled>" }
if ($el.visible -eq $false -or $el.hidden -eq $true) { X "$indent<Visible>false</Visible>" }
if ($el.enabled -eq $false -or $el.disabled -eq $true) { X "$indent<Enabled>false</Enabled>" }
if ($el.readOnly -eq $true) { X "$indent<ReadOnly>true</ReadOnly>" }
}