Components and interaction contracts

The project form combines customer and owner references, dates, amounts, sections, attachments and actions. These elements participate in a page contract rather than being separate handcrafted screens.

A filled project form

Six groups of building blocks

GroupExamplesWhat to inspect
Fields and formsText, amount, date, dictionary, reference, attachmentValues, validation, visibility, read-only and localization
Business blocksSections, tables, child records, tabs, timeline, action areasLayout, context and loading/empty/error states
Analytical displaysNumber cards, charts, kanban, Gantt, heatmap, Pareto and SPC componentsData mapping, scope, dimensions and drill targets
ActionsCommands, navigation, confirmation, front-end flowsInputs, allowed states, feedback and persistence
Authoring controlsProperty panels, model/field/query pickers, expressionsSchema-defined properties and registered editors
ExtensionsComponent, block, action and contribution registriesRegistration, owner, contract and runtime support

A component available in source is not necessarily enabled in every installed application. The supported palette is determined by the current runtime and plugins.

Fields, blocks and widgets have different jobs

A field adapter connects field metadata and form state to a control. A page block composes a larger part of a page. A dashboard widget or report block has a specialized data and output contract. They must not be treated as one interchangeable registry.

ComponentRegistry, runtime and authoring BlockRegistry, PropertyEditorRegistry, action registries and frontend contributions serve different boundaries. Extending one does not automatically register an implementation in all the others.

Properties are defined by Schema

A property declaration specifies its key, type, label, validation and dependencies. Shared controls can select a model, field, command, named query, rule or expression. A complex editor is registered by name while the property remains declared in Schema.

This is an editor-property declaration, not an importable page document:

{
  "key": "title",
  "label": "Section title",
  "type": "localizedText",
  "required": true
}

Saving the property must serialize into the supported page definition. Reopen the designer and the actual page to check it; a correct canvas alone does not prove runtime behavior.

Editing a section through its properties

Try one change

Follow the first model tutorial to generate a list, form and detail without visual settings. Change one section title. Reopen the designer and edit page, and confirm both the new title and the old data remain.

When extending a production page, also check a read-only user, required-field feedback, empty values, long labels and the saved record after refresh.

Find the building block in configuration

This excerpt is a section already used by the project form. It defines a business group, fields and spans without bespoke business React:

{
  "id": "outcome",
  "blockType": "form-section",
  "title": {"zh-CN": "基本信息", "en": "Project information"},
  "fields": [
    {"field": "tpm_pj_name", "colSpan": 12, "required": true},
    {"field": "tpm_pj_customer_id", "colSpan": 6, "required": true},
    {"field": "tpm_pj_owner_user", "colSpan": 6, "required": true}
  ]
}

This is one block, not an independently importable plugin. Its model, fields, bindings and outer page definition must exist. The complete project form source shows the composition.

AdjustmentConfiguration starting pointData and permission boundaryExtension path
Field controldataType, constraints and extension.renderComponent; see field examplesPage read-only behavior and server field authorization are separate checksReuse or register a field adapter
Business regionThe form-section, fields and colSpan aboveRelated records depend on model context and query authorizationPage Block SPI
AnalyticsSelect sources, metrics and dimensions in the Dashboard guideAggregation scope and drill-down targets need authorizationRegister a supported Widget or data provider
Page actionCheck inputs, permissions and states in the project commandsinputFields does not authorize arbitrary writesPut specialized algorithms in command handlers
Authoring propertyThe Property Schema above; save a title in Page DesignerEditing configuration does not grant business data accessRegister complex editors in PropertyEditorRegistry
WorkbenchCompose a page, query, command and entry with the extension walkthroughLimit context and action permissionsContribution and registries track ownership

Explicit control overrides are optional. Standard CRUD generation uses metadata to provide default layout and controls. Business developers need no visual configuration before obtaining usable list, form and detail pages. Keep shared contracts when customizing rather than copying renderers.

Extensions

Use an existing field or block when its contract fits. Register a new component or property editor when the platform needs a new reusable interaction. Domain algorithms belong in a command handler or an external service with an explicit contract.

An extension should define its properties, data shape, supported contexts, action behavior and failure feedback. Runtime rendering, authoring properties and import validation each need the matching registration.

Add a domain action · Field/component reference · Page Block SPI