Skip to content

Migration guide ​

Every breaking release has its own section below, newest first. If you are crossing several releases at once, work from the bottom of the page upwards.

This is the only page that names superseded APIs; everywhere else in this documentation only the current one exists.

Upgrading to v0.17.0 (from v0.16.x) ​

0.17.0 runs on Vuetify 4 only. There is a checklist at the end of this section.

Vuetify 4 is required ​

The peer dependency is vuetify ^4.3.5 (which needs vue ^3.5). Upgrade the application to Vuetify 4 following Vuetify's upgrade guide. What changes in Vuetify itself also changes the components: buttons are not uppercase (Material Design 3), the typography classes have MD3 names (text-body-1 and text-subtitle-1 are text-body-large, text-caption is text-body-small), and the display breakpoints have new default thresholds.

@mdi/font is no longer a peer dependency ​

The components draw their own icons with cached-icon, including the RTF toolbar's dropdown and upload buttons. The application installs @mdi/font only if its own code or its Vuetify icon set uses the MDI font. Vuetify's internal icons and the aliases $delete and $clear still resolve through the application's Vuetify icon set.

The styles are in a cascade layer ​

The stylesheet puts every rule into the cascade layer vuetify-overrides.dynamicforms-vuetify-inputs and declares Vuetify's layer order (Cascade layer):

  • The application's unlayered styles and Vuetify's utility classes now override the library's rules on df components. An application rule that sets, for example, margin on p or .v-btn now also applies inside df components; scope such rules if the components must keep their layout.
  • The library's rules no longer carry !important, except .df-sr-only and --v-textarea-control-height. An application rule that only needed !important to beat the library no longer needs it.
  • The single-chip offset of a select and the label rules of a file input apply only to df components. An application that relied on them for its own v-autocomplete or v-file-input sets them itself.
  • Import vuetify/styles before vuetify/components and vuetify/directives. Otherwise Vuetify's component layer is declared before its core layer, and the core reset overrides component styles, e.g. the size of small buttons.

Content spacing of the RTF editor and markdown messages ​

Vuetify 4 has no global reset of margins and paddings. The library sets the spacing of the content it renders itself:

  • DfRtfEditor: headings, paragraphs, lists, block quotes, code blocks, horizontal rules and tables have their own margins; lists are indented inside the editing area and a block quote has a left border.
  • Markdown messages (labels, hints, errors): block elements have no margins; lists are indented by 1.5em.

The application's unlayered rules for these elements (e.g. p { margin: … }) override this spacing.

Icons outside df components are not enlarged ​

The stylesheet no longer sets the size of every cached-icon of the application. It sets the custom properties of vue-cached-icon 3.3 (--cached-icon-size: 1.5em, --cached-icon-descent: .1667em) on the class df-component, which only the library's components and the menus they open carry (Icon size). The application's own cached-icons render at vue-cached-icon's 1em. To keep them at 1.5em, set the properties on :root or on the ancestor that holds them:

css
:root {
  --cached-icon-size: 1.5em;
  --cached-icon-descent: .1667em;
}

A component of the application built on useInputBase() that binds densityClass on its root element carries df-component and sizes its icons as the library's components do.

Number input corrects on blur ​

DfInput with input-type="number" no longer writes a correction when the field is entered. A bound value outside min and max, or with more decimals than precision, stays unchanged (isChanged is false) after the field is focused; v-number-input writes it set to the nearest bound and rounded to precision when the user leaves the field. An application that needs a valid value before that adds Validators.MinValue / MaxValue to the field or corrects the value itself.

DfActions breakpoints ​

The breakpoint of the responsive render options is Vuetify's display breakpoint, so it follows Vuetify 4's thresholds: sm from 600 px, md from 840 px, lg from 1145 px, xl from 1545 px; xxl renders the xl options. An application that wants other widths sets display.thresholds in createVuetify.

DfFile drag highlight ​

DfFile highlights a drag only when it carries files (dataTransfer.types includes Files). Code or tests that send a dragover without files no longer get the class v-file-input--dragging. A disabled or read-only field shows no highlight and takes no dropped file.

Date mode keeps the date part of a value ​

DfDateTime with input-type="date" no longer converts a bound value with a time and an offset to the browser's zone: it shows the date part as written. 2026-07-15T23:30:00+02:00 shows 15 July in every browser zone, also in Asia/Tokyo, where that instant falls on 16 July. timeZone (prop and setting) does not apply to date mode. A bound value whose date is not YYYY-MM-DD or names a day that does not exist is not read. The value written once the user edits the date is YYYY-MM-DD, as before.

An application that binds an instant to a date-mode field and wants its date in a zone converts it with dateInZone and binds the result:

ts
const day = new Field({ value: dateInZone(record.departure) }); // the browser's zone
const dayAtStop = new Field({ value: dateInZone(record.departure, 'Europe/Ljubljana') });

A bound value that is not read makes the field invalid ​

DfDateTime no longer shows a following day for a bound value naming a day or a time that does not exist (2026-02-30, 25:00), and datetime mode in the browser's zone no longer reads compact or partial ISO 8601 forms (20260715). Such a value, and any other value that is not a date, is not read in every mode and zone: the field shows it as written, holds the error vuetify-inputs.invalid_date or vuetify-inputs.invalid_time, and the value is reported with console.error. A form whose record holds such a value is invalid until the value is corrected.

Checklist for 0.17.0 ​

  1. Upgrade the application to Vuetify 4 (vuetify ^4.3.5, vue ^3.5).
  2. Install @mdi/font only where the application itself uses the MDI font.
  3. Import vuetify/styles before Vuetify's components and directives.
  4. Check screens whose own CSS styles elements inside df components, and remove !important that only fought the library's rules.
  5. Add Validators.MinValue / MaxValue where a number field must hold a valid value before the user leaves it.
  6. Update tests that send a dragover without files to a DfFile.
  7. Install vue-cached-icon ^3.3.1, and set --cached-icon-size / --cached-icon-descent where the application's own icons must stay at 1.5em.
  8. Bind dateInZone(value, timeZone) to date-mode DfDateTime fields that hold an instant and must show its date in a zone.
  9. Check that values bound to DfDateTime are YYYY-MM-DD dates, ISO 8601 date-times or HH:mm:ss times that exist; the console names each field whose value is not read.

Upgrading to v0.16.0 (from v0.15.x) ​

helpText is removed ​

The helpText prop and the helpText property of vue-forms' Extras no longer exist. No component rendered them. Text that describes the field goes into hint, which renders below the field and is linked to the control with aria-describedby. Code that sets helpText on a component or through setExtendedValues stops compiling; move the text to hint or remove it.

Upgrading to v0.15.0 (from v0.14.x) ​

0.15.0 prefixes every error code the library raises with its namespace. It requires @dynamicforms/vue-forms 3.0.0-alpha.3, whose codes are prefixed in the same way. There is a checklist at the end of this section.

Error codes carry a namespace ​

An error code is <namespace>.<code>. The codes this library raises are in the namespace vuetify-inputs, exported as ERROR_NAMESPACE:

0.140.15
invalid_hex_colorvuetify-inputs.invalid_hex_color
invalid_datevuetify-inputs.invalid_date
invalid_timevuetify-inputs.invalid_time
file_gonevuetify-inputs.file_gone

vue-forms 3.0.0-alpha.3 renames its codes the same way, from required to vue-forms.required and so on; its migration guide lists them. Code comparing error.code with an old code keeps compiling and stops matching. An errorText setting that looks the code up as a translation key maps each namespace to a key prefix (Translating errors). An empty code is unchanged: an error without a code renders as its detail.

Checklist for 0.15.0 ​

  1. Install @dynamicforms/vue-forms 3.0.0-alpha.3.
  2. Replace every comparison with an old error code by the new one.
  3. Map the namespaces vue-forms and vuetify-inputs to translation key prefixes in errorText, through the ERROR_NAMESPACE constants of the two packages.
  4. Prefix the application's own error codes with a namespace of its own.

Upgrading to v0.14.0 (from v0.13.x) ​

0.14.0 removes the ready-made actions. There is a checklist at the end of this section.

Action.closeAction(), yesAction() and noAction() are removed ​

The library defines no ready-made actions, and its translations no longer have the keys Yes, No and Close. An application builds the three actions with new Action(), with the label, icon and translation key of its own:

typescript
// before
const close = Action.closeAction({ value: { defaultConfirm: true, defaultReject: true } });

// after
const close = new Action({
  value: {
    name: 'close',
    label: () => t('Close'),
    icon: 'mdi-close',
    renderAs: 'button',
    showLabel: true,
    showIcon: true,
    defaultConfirm: true,
    defaultReject: true,
  },
});

The three actions were named close, yes and no, with the icons ion-close-outline, ion-thumbs-up-outline and ion-thumbs-down-outline, rendered as a button with both the label and the icon. An application that translated Yes, No and Close through translateStrings or the translate setting moves the three keys into its own translations.

Checklist for 0.14.0 ​

  1. Replace Action.closeAction(), Action.yesAction() and Action.noAction() with new Action().
  2. Remove Yes, No and Close from the translations given to the library, and add them to the application's.

Upgrading to v0.13.0 (from v0.12.x) ​

0.13.0 requires @dynamicforms/vue-forms 3.0.0. Upgrade the two together, and read the vue-forms migration guide first. vue-forms 3.0 no longer renders: an error is a code, params and an English detail, and the rendering vue-forms exported is exported by this library. There is a checklist at the end of this section.

bash
npm install @dynamicforms/vue-forms@^3.0.0-alpha.1 @dynamicforms/vuetify-inputs@^0.13.0

Render content is imported from this library ​

MessagesWidget, MdString, RenderableValue, SimpleComponentDef, ClassType, ClassTypes, the RenderContent types, isSimpleComponentDef and isCallableFunction are exported by @dynamicforms/vuetify-inputs:

typescript
// before
import { MdString, MessagesWidget, RenderableValue } from '@dynamicforms/vue-forms';

// after
import { MdString, MessagesWidget, RenderableValue } from '@dynamicforms/vuetify-inputs';

RenderableValue takes (content, classes?) and is not an error: it has no code, origin or sameAs(). getTextType is kind.

SimpleComponentDef has no componentVHtml, and an innerHTML in its componentProps is dropped. HTML content is an HtmlString, rendered as the inner HTML of a div and not sanitized:

typescript
// before
new RenderableValue({ componentName: 'div', componentVHtml: html, componentProps: { class: 'note' } });

// after
new RenderableValue(new HtmlString(html), 'note');

The content of an element or a component is its children, rendered as an element's children or a component's default slot (see Render content).

MessagesWidget renders markdown with vue-markdown-render itself; a globally registered vue-markdown component is not needed.

Errors render through the errorText setting ​

A component renders an error as the content the errorText setting returns for it, and as its detail where the setting is not given or returns undefined. The setting is given at install and converts every error: those of vue-forms' validators, of the application's own validators, of its server and of this library. It returns plain text, an MdString, an HtmlString or a SimpleComponentDef:

typescript
app.use(DynamicFormsInputs, {
  errorText: (error) => {
    const key = `errors.${error.code}`;
    if (te(`${key}Md`)) return new MdString(t(`${key}Md`, error.params));
    return te(key) ? t(key, error.params) : undefined;
  },
});

An error without a code, and content (a string, an MdString, an HtmlString or a SimpleComponentDef), render as written; errorText is not called for them.

A validator message given as an MdString or a component in vue-forms 2.0 is an errorText answer for the validator's code. See Translating errors for the whole recipe and the codes vue-forms raises.

translatableStrings is replaced by translate, and translateStrings takes t ​

The library's own strings are read through @dynamicforms/translatable 0.3, which this release requires. translateStrings takes the application's translation function and an optional namespace in place of a callback, and translate(key, params?) replaces reads of translatableStrings:

typescript
// before
translateStrings((key, defaultValue) => (te(`df_inputs.${key}`) ? t(`df_inputs.${key}`) : defaultValue));
const close = translatableStrings.Close;

// after
translateStrings(i18n.global.t, 'df_inputs');
const close = translate('Close');

With vue-i18n's t, the strings follow a locale switch without another translateStrings call.

bash
npm install @dynamicforms/translatable@^0.3.0

<df-color> reports an error of code invalid_hex_color ​

Without a control, <df-color> reports a value that is not a hex color as a ValidationError of code invalid_hex_color, shown once the field is touched and rendered through errorText. The InvalidHexColor string is removed; translate the code with the rest of the errors.

<df-color> writes a picked color when it is confirmed ​

A color chosen in the picker is written to the field with OK or a double-click on the color area, as a date in <df-date-time> is. Cancel and closing the menu leave the field as it was. A value typed into the field is written as it is typed.

The pickers' buttons are the library's strings ​

The Cancel and OK of <df-date-time>'s and <df-color>'s pickers are the library's strings Cancel and Ok, in place of Vuetify's $vuetify.confirmEdit.cancel and $vuetify.confirmEdit.ok. An application that translated them through Vuetify's locale adds the two keys to the translations it gives the library (see Localisation); until then they render in English.

Action labels follow the locale ​

Action.closeAction(), yesAction() and noAction() label the action with () => translate(key). An action built again on a locale switch to pick up its label can be built once. An application action takes the same form: label: () => t('Save'). Action.label returns the string the label gives now.

Labels take any content ​

A label is a string, an MdString, an HtmlString, a SimpleComponentDef or a Label, whose text takes the same four forms. Label.text is RenderContentNonCallable; code that reads it as a string reads renderContentText(label.text). <df-label> renders label.text, and the slot data's label - the text Vuetify is given - only where label.text is empty.

An action label is a string, a ref or a function ​

ActionRenderOptions.label is MaybeRefOrGetter<string>. getRenderOptionsForBreakpoint() returns ResolvedActionRenderOptions, whose label is the string read. Code that reads action.value.label as a string reads action.label, which returns the string.

<df-input-hint>'s message takes no errors ​

message takes RenderContentRef | RenderableValue[]: content in any of its forms, or an array of RenderableValues. An error goes in errors.

Errors the components create ​

  • An error of the errors prop is selected as the ValidationError of its toErrorDescription() - content as new ValidationError('', {}, text, 'application'), a description with its own code, params and origin - and rendered as it was given. useInputBase()'s shownErrors holds it as given, so its type is ErrorInput[].
  • setFileGoneError() sets new ValidationError('file_gone', {}, text, 'server').

defaultConfirm and defaultReject answer a boolean ​

Action.defaultConfirm and Action.defaultReject are vue-forms' getters and answer false where the value states nothing. They answered undefined.

Checklist for 0.13.0 ​

  1. Import MessagesWidget, MdString, RenderableValue, SimpleComponentDef, ClassTypes and the render content types from @dynamicforms/vuetify-inputs.
  2. Replace getTextType with kind.
  3. Install @dynamicforms/translatable 0.3; pass the translation function to translateStrings(t, namespace) and replace reads of translatableStrings with translate(key).
  4. Give the plugin an errorText setting that translates error codes, and return an MdString or a component from it where a vue-forms 2.0 validator message was one.
  5. Move a translation of InvalidHexColor to the error code invalid_hex_color.
  6. Replace === undefined checks of defaultConfirm and defaultReject with a boolean test.
  7. Replace componentVHtml with an HtmlString, with the classes as the RenderableValue's second argument.
  8. Move errors passed in <df-input-hint>'s message to errors.
  9. Read Label.text through renderContentText() where a string is needed, and an action's label through action.label.
  10. Add Cancel and Ok to the library's translations where the pickers' buttons were translated through Vuetify.
  11. Install vue-cached-icon 3.2.

Upgrading to v0.12.1 (from v0.11.x) ​

0.12.1 requires @dynamicforms/vue-forms 2.0.2; 0.12.0 was withdrawn, and a project on it follows this section as well, from 0.11. Upgrade the two together, and read the vue-forms migration guide first: most of what changes in a form's behaviour comes from vue-forms, and this section covers what changes in the components on top of it. The silent changes come first. There is a checklist at the end of this section.

bash
npm install @dynamicforms/vue-forms@^2.0.2 @dynamicforms/vuetify-inputs@^0.12.1

What vue-forms 2.0.2 changes under the components ​

  • access decides what an input sends, and whether it is validated. enabled is read from it: an input accepts typing where its field's effectiveAccess is 'editable'. A field that is 'disabled' — or sits in a container that is 'disabled' or 'disabled-null' — is not sent and not validated, so its errors neither block a submit nor appear under the input. Code that toggled field.enabled writes field.access instead.
  • visibility is presentation alone. The input reads it to draw itself and nothing else: a hidden input is still sent and validated. A form that hid an input to keep it out of the payload sets its access as well.
  • A field takes a write whatever its access. Code that disabled a field to protect it from an assignment needs the assignment itself to be conditional. The components adjust to this below.

An error is shown by one rule, and an error from the server is shown at once ​

The inputs show shownErrors rather than every error once the field is touched. A validator's error, and one the application wrote, still appear once the field is touched. An error whose origin is 'server' appears at once, so code that marked fields touched after the server answered, to make its errors appear, can drop that. An input whose field is sent nowhere shows no error at all.

typescript
// before: a server error was shown only once its field was touched
field.errors.push(new ValidationErrorText(message));
field.touched = true;

// after: the origin says where the error comes from, and the input shows it
field.errors.push(new ValidationErrorText(message, '', 'server-error', 'server'));

useInputBase() returns the list as shownErrors, in place of showErrors, and it is an empty array rather than undefined while nothing is to be shown. A custom component binding showErrors to DfInputHint binds shownErrors. The rule is replaced application-wide through the shownErrors setting, and a template rendering errors of its own — a group's — shows them by the same rule with useShownErrors(element); see Shown errors.

<df-datetime> writes only what the user edits ​

A value the field is bound with is shown in the user's local time and stays in the field exactly as it was given. Before, the component rewrote it on mount into the local offset, which changed the string and marked the field - and every group above it - as changed before the user touched anything:

typescript
const when = new Field({ value: '2026-01-15T09:00:00Z' });
// rendered with <df-datetime :control="when" /> in Europe/Ljubljana
when.value;      // before: '2026-01-15T10:00:00+01:00'   after: '2026-01-15T09:00:00Z'
when.isChanged;  // before: true                           after: false

The field now holds the backend's own string until the user edits the date or the time; from then on it holds the edited value in the user's local offset, as before. A form that tested isChanged to decide whether to save, or to warn about unsaved changes, no longer sees a change on every record with a date-time field in it. Code that read the field's value expecting the local offset - comparing it as a string, or cutting the offset off - receives whatever the backend sent until the user edits it, and should parse the value instead of relying on its form. A disabled date-time field is never written by the component at all.

<df-datetime> writes the offset of the date, not today's ​

The offset the component appends to an edited value is the one in force on that date. Before, it was today's, which in a time zone with daylight saving time is an hour off for every date on the other side of the change:

typescript
// in Europe/Ljubljana, on a day in July, the user sets 11:30 on 15 January
when.value;      // before: '2026-01-15T11:30:00+02:00' (10:30 local)   after: '2026-01-15T11:30:00+01:00'

Before, the same mismatch also made a field bound to a date on the other side of the change from today rewrite its value in a loop and fail on mount with "Maximum recursive updates exceeded". Records saved from such a form by an earlier version, in a time zone with daylight saving time, may hold a time shifted by an hour or more; nothing in the upgrade corrects them.

In date mode a date without a time is read as that day in local time. Before, it was read as UTC midnight, so west of Greenwich '2026-01-15' was shown as 14 January and the component stopped with the same error.

<df-select> states no default while it accepts no input ​

With allowNull: false, an editable select whose value is empty selects the first choice, as before. A select drawn without input leaves the value empty, and selects the first choice when it becomes editable. Two cases behave differently:

typescript
const country = new Field<string | null>({ value: null });
const form = new Group({ country }, { access: 'readonly' });   // before: { enabled: false }
// rendered with <df-select :control="country" :choices="countries" :allow-null="false" />
country.value;           // before: the first choice   after: null
form.isChanged;          // before: true               after: false

form.access = 'editable';
country.value;           // the first choice either way

const region = new Field<string | null>({ value: null, access: 'disabled' });   // before: { enabled: false }
// rendered the same way
region.access = 'editable';
region.value;            // before: null               after: the first choice
  • A select inside a section that accepts no input is drawn without input, but its own field is editable, so the first choice used to be written into it on mount. It no longer is: the form's data carries no choice the user did not make, and the form does not start out changed.
  • A select whose own field accepted no input at mount stayed empty once it did. It now selects the first choice at that moment, like a select that was editable from the start.

Where a select that accepts no input has to carry a value, give the field that value when it is created.

<df-file> and <df-image> write into a disabled field ​

<df-file> and <df-image> write the identifier comms.upload resolves to into the field even where the field was disabled while the upload ran, and touch it from then on. Before, vue-forms refused that write: the component showed the uploaded file while the field stayed empty, the form was submitted without it, and the file on the backend was never touched again. No code change is needed; a backend that cleaned up such orphaned uploads sees fewer of them.

A touch that rejects with FileGoneError clears a disabled field too. Before, the write was refused: the component showed no file while the field went on holding the identifier the backend had discarded, and the form was submitted with it. No code change is needed.

The visibility prop takes the visibility strings ​

The prop takes 'full', 'invisible', 'hidden' or 'suppress', exactly as vue-forms spells them. The DisplayMode constants are gone from vue-forms, and a number or an upper-case name throws while the component renders. 'invisible' draws as it did, with the invisible class.

vue
<!-- before -->
<df-input v-model="secret" :visibility="DisplayMode.HIDDEN" />
<df-input v-model="secret" visibility="HIDDEN" />
<!-- after -->
<df-input v-model="secret" visibility="hidden" />

ActionDisplayStyle is a string ​

ActionDisplayStyle is the type 'button' | 'text' rather than an enum, and an action's renderAs states one of the two strings. ActionDisplayStyle.BUTTON and .TEXT are compile errors, and a number, an upper-case name or any other value throws when the action is rendered, where it used to be drawn as a button.

typescript
// before
new Action({ value: { label: 'Save', renderAs: ActionDisplayStyle.BUTTON, xl: { renderAs: 'TEXT' } } });
// after
new Action({ value: { label: 'Save', renderAs: 'button', xl: { renderAs: 'text' } } });

Checklist for 0.12.1 ​

  1. Upgrade @dynamicforms/vue-forms to ^2.0.2 alongside this release, and work through its migration guide.
  2. Replace writes of field.enabled with field.access, the DisplayMode constants, numbers and upper-case names given to visibility with the visibility strings, and ActionDisplayStyle.BUTTON/.TEXT with 'button'/'text'.
  3. Where hiding an input was meant to keep it out of the payload, set its access as well.
  4. Give errors the server returned the origin 'server', and drop code that marked fields touched to make them appear; replace showErrors with shownErrors in custom components built on useInputBase().
  5. Search for code that reads a <df-datetime> field's value as a string in the local offset, and parse it instead.
  6. Where a <df-select> with allowNull: false in a section that accepts no input was expected to hold the first choice, give the field that value when it is created.
  7. If users in a time zone with daylight saving time edited date-times with an earlier version, check stored values for dates on the other side of the change from the day they were saved.

Upgrading to v0.11.0 (from v0.10.5) ​

translatableStrings is now backed by @dynamicforms/translatable and is reactive; translateStrings's callback signature and its behaviour on a declined key both change with it. There is a checklist at the end of this section.

translateStrings's callback takes a second argument, and a declined key resets to English ​

typescript
// before
translateStrings((key: string): string => {
  const translated = myCatalogue[key];
  return translated ?? (null as unknown as string);
});

// after
translateStrings((key, defaultValue) => myCatalogue[key] ?? defaultValue);

The callback receives the English default as its second argument, so a fallback by hand and a cast of a declined return are not needed. A key the callback declines resets to its English default on that call. In 0.10 it kept the value a previous translateStrings call set, so a locale switcher had to supply a complete catalogue, English included, or an entry kept the translation of the previous locale.

A callback that called translateStrings with a partial catalogue and later added keys without repeating the earlier ones must now return every key it translates on every call.

<df-rtf-editor>'s toolbar no longer needs remounting ​

Before 0.11.0, a component read translatableStrings only when it rendered, so an application remounted <df-rtf-editor> on a locale change, typically by binding :key to the locale code. The toolbar, heading dropdown included, now reads translatableStrings reactively and follows a locale change; a :key bound to the locale to remount it can be removed. Action.closeAction(), .yesAction() and .noAction() still copy the label when the factory runs; rebuild them on a locale change as Localisation describes.

Checklist for 0.11.0 ​

  1. Search your project for translateStrings and add the defaultValue parameter to every callback; drop any null as unknown as string cast, since the return type now properly includes null/undefined.
  2. If any callback relied on a declined key keeping a previous translation rather than the English default, make it supply every key it wants translated on every call instead.
  3. Remove a :key="locale" remount of <df-rtf-editor>.

Upgrading to v0.10.0 (from v0.9.2) ​

<df-rtf-editor> is built on TipTap instead of CKEditor 5. CKEditor 5's core is dual-licensed GPL/commercial, which put every application built on this library under the same terms unless it paid for a commercial CKEditor licence; TipTap's core and the extensions this component uses are MIT. The release changes the peer dependencies, removes setCkEditorLanguage(), and changes the saved HTML of list items and table cells, which affects every renderer of that HTML, also in applications that do not configure this component. There is a checklist at the end of this section.

The peer dependencies change ​

@ckeditor/ckeditor5-vue and ckeditor5 are gone from peerDependencies, replaced by TipTap's packages:

json
{
  "dependencies": {
    "@tiptap/core": "^3.30.2",
    "@tiptap/vue-3": "^3.30.2",
    "@tiptap/pm": "^3.30.2",
    "@tiptap/starter-kit": "^3.30.2",
    "@tiptap/extension-image": "^3.30.2",
    "@tiptap/extension-link": "^3.30.2",
    "@tiptap/extension-placeholder": "^3.30.2",
    "@tiptap/extension-table": "^3.30.2",
    "@tiptap/extension-table-cell": "^3.30.2",
    "@tiptap/extension-table-header": "^3.30.2",
    "@tiptap/extension-table-row": "^3.30.2",
    "@tiptap/extension-text-align": "^3.30.2"
  }
}

Remove the two CKEditor packages from your package.json and install the TipTap packages above.

setCkEditorLanguage() and ckEditorLanguage are removed ​

CKEditor 5 shipped its own translated UI (button tooltips, dialog captions), which these two configured via a separate per-language bundle:

typescript
// before
import { setCkEditorLanguage } from '@dynamicforms/vuetify-inputs';
import deTranslations from 'ckeditor5/translations/de.js';

setCkEditorLanguage('de', deTranslations);

TipTap is headless: <df-rtf-editor>'s toolbar consists of this library's Vuetify components, and its labels are translatableStrings keys, translated through translateStrings() like the rest of this library's text (see Localisation). Remove the setCkEditorLanguage call and the translation-bundle import.

List items and table cells wrap their text in a <p> now ​

TipTap's list and table schemas wrap block content in a paragraph, so a list item saves as <li><p>Text</p></li> and a table cell as <td><p>Text</p></td>; CKEditor 5 saved <li>Text</li> and <td>Text</td>.

<df-rtf-editor> sets the margin of these paragraphs to 0 in its own editing surface only. Any other renderer of the saved HTML (a public page built from the stored value, a PDF export, a templated email) applies its default <p> margin to every list item and table cell, which adds vertical space to list items and makes table rows taller, unless its stylesheet overrides it. Add the rule the editor uses to those renderers:

css
li p, td p, th p {
  margin: 0;
}

The rule matches only a <p> inside a list item or a table cell; content saved by earlier versions has none, so the rule can be applied to all saved content.

Checklist for 0.10.0 ​

  1. Swap @ckeditor/ckeditor5-vue and ckeditor5 for the @tiptap/* set above in your own package.json.
  2. Remove setCkEditorLanguage calls and their translation-bundle imports.
  3. Find every place outside <df-rtf-editor> that renders HTML this component saved - marketing pages, PDF generation, templated emails - and add li p, td p, th p { margin: 0; } (or that renderer's equivalent) to its stylesheet. Check a rendered list and a rendered table in each renderer.
  4. If your own styling targeted CKEditor-specific classes or DOM structure (rather than the semantic HTML this library always documented as its saved format), re-check it against the new output.

Upgrading to v0.9.1 (from v0.9.0) ​

Nothing this library exports is renamed or removed. The package's type declarations resolve, and <df-actions> renders two more states. There is a checklist at the end of this section.

The declarations reach your compiler ​

exports["."] states a types condition. TypeScript resolves a package carrying an exports map through that map alone - the top-level types field is not consulted - so on moduleResolution: "bundler" or "node16" every import from this package was any.

The first build after the upgrade reports type errors in code that uses this package, e.g. a misspelled member of an Action value, a prop the component does not declare, or a label read as something other than a string.

An action inside a disabled container is drawn disabled ​

A button <df-actions> draws binds effectiveEnabled, which is false where the action or any Group or List holding it is disabled. It bound the action's own enabled, so the buttons of a disabled section stayed clickable, while <df-modal>'s Enter and Escape shortcuts - which read effectiveEnabled - refused the same actions.

enabled on the action is unchanged and still answers what was written to it. Drop the per-action enabled = false writes that were there to follow a disabled container.

A run in flight disables its own button ​

<df-actions> binds Action.busy: while a run of the action has yet to settle the button is disabled and drawn loading, so a second click cannot start a second run of a handler that is still working.

An action that reached this by writing its own enabled no longer needs to:

typescript
// before
watchEffect(() => { saveAction.enabled = !saveAction.busy; });

// after: <df-actions> binds busy itself

Remove the write: with it in place, code that reads the action's enabled gets false during a run instead of the value the form set.

Checklist for 0.9.1 ​

  1. Build once and fix the reported type errors.
  2. Load the forms that disable a whole section: the action buttons inside one now render disabled. Drop the per-action enabled = false writes that were there to achieve it.
  3. Drop the watchEffect (or equivalent) that mirrored busy into enabled on an action.
  4. Check the tests that click a button of an action whose handler is asynchronous: a click that lands while the previous run is in flight no longer reaches the handler.

Upgrading to v0.9.0 (from v0.8.x) ​

This release follows @dynamicforms/vue-forms 0.17.0. No export of this library is renamed or removed. The changes are in the peer library's API and in the eight points on this library's own surface below. There is a checklist at the end of this section.

The peer ranges and the node floor ​

  • @dynamicforms/vue-forms is ^0.17.0. Install it with this release; 0.16.x and below are not compatible.
  • vue is ^3.5.2, raised from ^3.4.
  • engines.node is >=22.

The last two are the peer library's own floors, which this package now states as well: vue-forms declares vue: ^3.5.2 and engines.node: >=22 from its 0.12.0 release.

json
{
  "dependencies": {
    "@dynamicforms/vue-forms": "^0.17.0",
    "@dynamicforms/vuetify-inputs": "^0.9.0",
    "vue": "^3.5.2"
  }
}

Your own use of vue-forms migrates at the same time ​

This release moves vue-forms from 0.6.0 to 0.17.0, eleven releases. This library re-exports none of the API those releases changed: the Field, Group, List, Action and validators your application builds come from vue-forms. Work through the vue-forms migration guide for that API; the sections below cover this package.

Search for these four changes before upgrading. Code affected by the first three compiles and fails without a log or an exception:

  • watch(element, cb) no longer fires. An element is no longer a Vue proxy of itself, so the deep traversal a reactive watch source starts stops immediately. Watch a getter over what you read: watch(() => field.value, cb).
  • readonly(element) returns the element itself, so a write through the result reaches the element. Pass element.value, or a computed over it.
  • isEqual over two elements no longer compares their data. It answered true for any two elements of the same class, and answers false now unless they are the same instance. Compare a.value with b.value.
  • clone() is bind(data, overrides). The data comes first: f.clone({ value: x, label: 'Name' }) is f.bind(x, { label: 'Name' }). The type checker finds every call site.

The visibility prop is resolved through DisplayMode.fromAny ​

The prop is typed Form.DisplayMode | string and is resolved the way a control resolves its own mode, which means a name is read case-insensitively and a value naming no DisplayMode constant is refused.

vue
<!-- resolves to DisplayMode.HIDDEN, as it reads -->
<df-input visibility="hidden" />

<!-- throws: 'hiden' is not a DisplayMode constant -->
<df-input visibility="hiden" />

Both lines used to render the field fully: the prop was passed through untouched, and only an exact DisplayMode constant matched the comparisons the render decision and the d-none / invisible classes are made of. A misspelled name, or a mode a backend defines that this version does not, therefore rendered the field in full without a warning; it now throws when the field renders.

A prop that names nothing still resolves to DisplayMode.FULL, and a control prop still decides on its own visibility, which the peer library resolves the same way. Where a mode comes from a payload and an unknown mode must not throw, resolve it before passing it to the prop:

typescript
const mode = Form.DisplayMode.isDefined(payload.visibility)
  ? Form.DisplayMode.fromAny(payload.visibility)
  : Form.DisplayMode.FULL;

useInputBase() answers density as a ComputedRef ​

density was a plain string, resolved once while the component set up. It is the computed itself now, so a consumer reading it needs .value, and the value follows a change of the density prop. An injected field-density and the plugin's defaultDensity are read once, while the component sets up, so a later change of either does not reach a field that already exists.

typescript
// before
const { density } = useInputBase(props, emits);
const isInline = density === 'inline';

// after
const { density } = useInputBase(props, emits);
const isInline = computed(() => density.value === 'inline');

In a template inside <script setup> the read is unchanged — density unwraps on its own — and densityClass is what it always was, a ComputedRef<string> holding df-density-${density}. Everything else useInputBase() returns keeps its type.

update:modelValue carries what the control took ​

An input bound to a control emits the value the control ended up holding, where it emitted the value that was written to it. The two differ whenever the field does not take a write verbatim: a ValueChangedAction that normalises the value, a disabled field that drops it, a handler that throws and so unwinds the whole operation.

typescript
const control = new Form.Field<string>({ value: '' });
control.registerAction(
  new Form.ValueChangedAction<string>((field, supr, newValue, oldValue) => {
    if (newValue !== newValue?.toUpperCase()) field.value = newValue!.toUpperCase();
    return supr(field, newValue, oldValue);
  }),
);
// typing "abc" emits 'ABC'; it emitted 'abc'

The rendered control follows the same rule. Where the write does not stand, the input reads back the written value for one tick and the field's own value after it, so the repaint that restores what the field holds happens; the Vuetify component no longer shows a value the model refused. An input with no control — plain v-model, or no binding at all — emits what was written, as before.

If a handler of yours re-read the control after the event to find out what was actually stored, that read now answers what the event already carried.

A field inside a disabled section is drawn disabled ​

An input bound to a control reads effectiveEnabled, which is false where the element or any container above it is disabled. It read the element's own enabled, so section.enabled = false left every input inside the section editable and an application had to disable each field of a section itself.

typescript
const section = new Group({ amount: new Field({ value: 0 }) });
section.enabled = false;

section.fields.amount.enabled;            // true - what was written to the field, unchanged
section.fields.amount.effectiveEnabled;   // false - and what <df-input> draws from

enabled is unchanged: it returns the value written to each element, a write to a member of a disabled container is accepted, and what a container serialises follows each member's own enabled. Writes that disabled each field of a disabled section can be removed.

An element carries its own presentation ​

label, placeholder, helpText, hint, cssClass, density and variant are declared on vue-forms' Extras augmentation point, so every element in an application that installs this library carries them, typed, and the components read them where the corresponding prop states nothing.

vue
<script setup>
const form = new Group({
  name: new Field({ value: '', label: 'Full name', hint: 'As it appears on the document' }),
});
</script>

<template>
  <df-input :control="form.fields.name" />
</template>

Existing forms need no change: a prop takes precedence over the element's value. The element's value takes precedence over an injected field-density / field-variant and over the plugin defaults.

One thing to check: an application that already attached extended properties of these names to its elements — a label written with setExtendedValues() and rendered by the application's own template — now feeds the components as well, and the component draws it where its tag states no label.

ActionRenderOptions states label and icon as strings ​

vue-forms 0.17.0 types label and icon as unknown on ActionValue; ActionRenderOptions types them as string. An action of this library's own class is unaffected. Where your code declares a value type of its own over ActionRenderOptions it inherits the two as strings, and where it extends vue-forms' ActionValue directly it states them itself.

label and icon are the base class's; the filtered reads are renderedLabel and renderedIcon ​

This library's Action declared label and icon as getters that filter the read by showLabel / showIcon. Both are gone: label and icon are @dynamicforms/vue-forms' own, so they answer the text and the icon name whatever the two flags say, and they take writes.

typescript
const save = new Action({ value: { label: 'Save', icon: 'save-icon', renderAs: ActionDisplayStyle.BUTTON } });

save.label;               // 'Save'
save.label = 'Saving…';   // fires ValueChangedAction, moves isChanged, refused by a disabled action

The filtered read has its own name:

typescript
const iconOnly = new Action({ value: { label: 'Save', icon: 'save-icon', showLabel: false, showIcon: true } });

iconOnly.label;           // 'Save' — what the action carries
iconOnly.renderedLabel;   // undefined — what it draws

Rename every read that wanted the filtered value: action.label → action.renderedLabel, action.icon → action.renderedIcon. A read that wanted the text needs no change and is now correct for an action that states neither flag, which answered undefined before. <df-actions> is unaffected — it renders from the breakpoint-resolved options, which filter on their own.

Action.execute() is a promise ​

execute(params?) comes from the peer library and is async there. It answers what the ExecuteAction chain returned, and params is optional.

typescript
// before: the throw arrived here
try { save.execute(); } catch (e) { report(e); }

// after: await it, or attach a catch
try { await save.execute(); } catch (e) { report(e); }
save.execute().catch(report);

The chain is entered synchronously, so a handler has already run by the time the call returns and code that ignores the answer keeps working. What moves is where a failure surfaces: a handler that throws rejects the promise, and a call that neither awaits nor catches leaves an unhandled rejection. A @click="save.execute()" in a template needs no change — Vue attaches its own catch and routes the error to app.config.errorHandler.

Action.busy comes with it: true from the call to execute() until the run settles, however it settles. Bind it to a button's disabled or loading to block a second run while the handler runs.

vue
<v-btn :disabled="!save.enabled || save.busy" @click="save.execute()">{{ save.renderedLabel }}</v-btn>

Checklist for 0.9.0 ​

  1. Update @dynamicforms/vue-forms to ^0.17.0 and vue to ^3.5.2, and run on node 22 or newer.
  2. Search for watch( with an element as the source, for readonly( over an element, and for isEqual over two elements; rewrite each to read the element's value.
  3. Rename clone( to bind(, moving the data out of the overrides object and into the first argument.
  4. Work through the vue-forms migration guide for the rest of your own use of that library.
  5. Add .value to every read of density from useInputBase() outside a template.
  6. Check each visibility prop that is given a string or a value from a payload: a name that matches no DisplayMode constant now throws where the field renders.
  7. Re-read handlers of update:modelValue on inputs bound to a control: the payload is what the control holds, and a re-read of the control after the event is redundant.
  8. await or .catch() every Action.execute() outside a template, and drop the try/catch that wrapped the synchronous call.
  9. Rename every read of action.label / action.icon that wanted the value filtered by showLabel / showIcon to action.renderedLabel / action.renderedIcon. A read that wanted the text stays as it is, takes writes, and now answers for an action that states neither flag.
  10. Load the forms that disable a whole section: the fields inside one now render disabled. Drop the per-field enabled = false writes that were there to achieve it.
  11. Search for setExtendedValues and for extended properties named label, placeholder, helpText, hint, cssClass, density or variant: the components read those now, where the tag states no prop of that name.

Upgrading to v0.8.0 (from v0.7.x) ​

This release follows @dynamicforms/vue-forms 0.6.0. Two mechanical edits cover most projects — Action.create( → new Action( and IField → FieldBase in type positions — plus whatever your own code does with the peer library. There is a checklist at the end of this section.

Actions are constructed with new ​

Action.create() is gone. The class is constructed the same way as every other form element.

typescript
// before
const save = Action.create({ value: { label: 'Save' } });

// after
const save = new Action({ value: { label: 'Save' } });

The factory took a type argument constrained to ActionBreakpointOptions; the class takes none, because it extends vue-forms' Action with that type already applied. Drop the argument — new Action({ ... }) checks its parameter against Partial<IFieldConstructorParams<ActionBreakpointOptions>>, which is what the constrained factory checked against as well.

Action.closeAction(), Action.yesAction() and Action.noAction() remain, with the same names and the same behaviour. Their optional parameter is typed Partial<IFieldConstructorParams<ActionBreakpointOptions>> instead of Partial<IField<ActionBreakpointOptions>>; call sites that pass an object literal need no edit, and only a variable you declared with the old type has to be retyped.

The control prop is typed FieldBase ​

Every input component's control prop was typed with vue-forms' IField<T>, which that library removed. The prop is now typed FieldBase<T>.

typescript
// before
import { IField } from '@dynamicforms/vue-forms';

const props = defineProps<{ control: IField<string> }>();

// after
import { FieldBase } from '@dynamicforms/vue-forms';

const props = defineProps<{ control: FieldBase<string> }>();

If you only pass a Field, a Group or an Action into control, nothing changes. The edit is needed where you wrote the type out yourself — a wrapper component that declares its own control prop, a helper that takes a field as a parameter, or a variable annotated before it is handed to a component.

At runtime the components check control instanceof FieldBase, as before.

DFInputHint is spelled DfInputHint ​

The component was exported under two names. Only DfInputHint remains, which is also the name it registers under when the plugin is installed with registerComponents: true, so the tag <df-input-hint> resolves. Rename the import if you used the other spelling.

typescript
// before
import { DFInputHint } from '@dynamicforms/vuetify-inputs';

// after
import { DfInputHint } from '@dynamicforms/vuetify-inputs';

@dynamicforms/vue-forms 0.6.0 is required ​

The peer dependency range is now ^0.6.0. Install it together with this release; 0.5.x is not compatible.

Your own use of the peer library migrates at the same time — Field.create(), reactiveValue and IField are all removed there. That migration is described in the vue-forms migration guide; follow it for everything that is not on this page.

What newly works ​

vue-forms 0.6.0 makes Group and List Vue-reactive from construction, the same as fields. Three things therefore repaint in an application built on this library that never repainted before:

  • Group-level validation errors. A validator registered on a Group writes to group.errors; a template that renders group.errors or group.valid updates when it fires. DfInputHint takes group.errors directly.
  • Conditional visibility and enablement on a Group. A ConditionalVisibilityAction or ConditionalEnabledAction registered on a group sets group.visibility or group.enabled, which your template reads to show and hide the whole section.
  • Structural changes to a List. push(), insert(), remove(), pop() and clear() are tracked, so a v-for over list.value re-renders on its own.

See Groups for worked examples of the first two.

In 0.8, enabled and visibility do not cascade from a group to the fields inside it. Each field carries its own; hiding or disabling a group affects only what the template renders from the group itself. This library adds no cascade of its own.

Checklist for 0.8.0 ​

  1. Update the @dynamicforms/vue-forms dependency to ^0.6.0.
  2. Replace Action.create( with new Action(, dropping the type argument where you passed one.
  3. Rename IField → FieldBase in every type position where you typed a control prop, a parameter or a variable, and drop IField from your imports.
  4. Retype any variable declared as Partial<IField<ActionBreakpointOptions>> before it is passed to Action.closeAction(), Action.yesAction() or Action.noAction().
  5. Rename DFInputHint → DfInputHint in imports.
  6. Work through the vue-forms migration guide for your own use of that library — Field.create() and reactiveValue in particular.
  7. Remove reactivity workarounds around groups and lists: a manual ref bumped after every mutation, a forced key, an explicit triggerRef, a computed re-reading JSON.stringify(group.value).

See also: Getting Started, input base, Groups

Released under the MIT License.