feat(form): x-section schema metadata + dynamic section bucketing
This commit is contained in:
@@ -131,6 +131,17 @@ export type JsonSchema = {
|
||||
['x-references']?: string
|
||||
['x-id-source']?: string
|
||||
['x-unique']?: boolean
|
||||
/**
|
||||
* Section bucket for form rendering. Если задан — поле попадает в эту
|
||||
* секцию (можно использовать predefined ID: identity / references /
|
||||
* description / dates / geometry / physical / extra; или любой custom
|
||||
* string — он отобразится с humanized fallback меткой).
|
||||
*
|
||||
* Без `x-section` SchemaDrivenForm.deriveSection auto-derive'ит секцию
|
||||
* по эвристикам (FK→references, localized→description, format=date→dates,
|
||||
* geometry-like keys→geometry, required→identity, else→extra).
|
||||
*/
|
||||
['x-section']?: string
|
||||
default?: unknown
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user