mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-08-27 21:49:41 +03:00
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:
co-authored by
Claude Opus 4.6
parent
a9e59265dd
commit
d05199d048
@@ -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>" }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user