Parts
Meaning
A Part is a neutral semantic interaction building block owned by one View. A Part describes one focused interaction meaning without prescribing visual controls, layout, framework components, or styling.
Canonical Dryv does not use UI-widget vocabulary such as button, form, input, card, table, modal, or framework component as Part kinds. Those are template-pack concerns.
Canonical kinds
Part is a closed tagged union:
presentcollectinvoke
The previous broad Part object with presents, collects, invocation, contains, emits, reacts, and when no longer exists.
Present Part
A Present Part reads from one Operation output port.
kind: present
collection: table
source:
port:
$ref: "#/operations/orders.GetOrder"
direction: output
index: 0
select:
- [id]
- [status]
- [customer, address, city]
select is optional. When omitted, the whole output value is presented.
collection is optional portable collection intent: list or table. It does not select a widget, component library or target-specific behavior.
Paths are semantic segment arrays, not dotted strings. Runtime validation resolves them through effective Schema or Composite Property meaning and rejects unknown or non-traversable paths.
Collect Part
A Collect Part supplies one Operation input port from user-collected meaning, View context, or both.
kind: collect
flow: overlay
target:
port:
$ref: "#/operations/orders.UpdateOrder"
direction: input
index: 0
collect:
- [notes]
context:
- path: [id]
source:
$ref: "#/views/orders.OrderDetails"
context: orderId
collect uses semantic segment paths. Context bindings use typed ViewContextRef references.
Runtime validation requires:
- the target to be an Operation input port;
- every selected path to resolve against the input value;
- context references to belong to the same owning View;
- context value types to match their target input paths;
- user-collected and context-supplied paths not to overlap;
- overlapping context target paths to be rejected;
- all required input meaning to be satisfied whenever the input is partially supplied.
If collect and context are both omitted, the whole input value is collected.
flow is optional interaction intent: inline, overlay, or destination. It does not prescribe a modal, sheet, route or framework navigation primitive.
Invoke Part
An Invoke Part invokes an Operation without collecting user input itself.
kind: invoke
emphasis: danger
operation:
$ref: "#/operations/orders.CancelOrder"
context:
- target:
$ref: "#/operations/orders.CancelOrder"
direction: input
index: 0
source:
$ref: "#/views/orders.OrderDetails"
context: orderId
Every required Operation input port must be supplied explicitly from View context. Duplicate or foreign input-port bindings are invalid.
emphasis is optional action priority: normal, primary, or danger. Packs choose the concrete control and styling.
Boundaries
Parts may reference Operations and View context and carry the closed interaction hints above. They do not own routes, addresses, surfaces, styling, concrete layout, navigation, Events, Policies, or other Parts.
Operations own behavior contracts. Views own interaction context and Part composition. Template packs decide how those meanings become concrete controls and components.