Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/tests/domain/StepDraft

Pure (DOMAIN-001): the draft of a step document being edited: its rows, what changed since it was opened, and the list the server is asked to validate.

Cockpit client (features), next. Source: ui/client/features/tests/domain/StepDraft.ts.

Functions#

changeOf()#

changeOf(d, original): StepChange

Defined in: ui/client/features/tests/domain/StepDraft.ts:14

Parameters#

d

DraftStep

original

StepFields[]

Returns#

StepChange


draftOf()#

draftOf(steps): DraftStep[]

Defined in: ui/client/features/tests/domain/StepDraft.ts:5

Parameters#

steps

StepFields[]

Returns#

DraftStep[]


payloadOf()#

payloadOf(draft): StepFields[]

Defined in: ui/client/features/tests/domain/StepDraft.ts:8

Only the rows that stay, in order: what is sent to the server. sentence / keyword / binding never travel.

Parameters#

draft

DraftStep[]

Returns#

StepFields[]