@dynamicforms/vuetify-inputs 0.7.12 → 0.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -182,12 +182,24 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
182
182
  export declare class Action extends Action_2<ActionBreakpointOptions> {
183
183
  static create<T extends ActionBreakpointOptions = ActionBreakpointOptions>(params?: Partial<IFieldConstructorParams<T>>): Action;
184
184
  getBreakpointValue(breakpoint: Ref<BreakpointNames>): ComputedRef<ActionRenderOptions>;
185
+ /** @see ActionRenderOptions.name */
185
186
  get name(): string | undefined;
187
+ /** @see ActionRenderOptions.label */
186
188
  get label(): string | undefined;
189
+ /** @see ActionRenderOptions.showLabel */
187
190
  get showLabel(): boolean | undefined;
191
+ /** @see ActionRenderOptions.icon */
188
192
  get icon(): string | undefined;
193
+ /** @see ActionRenderOptions.showIcon */
189
194
  get showIcon(): boolean | undefined;
195
+ /** @see ActionRenderOptions.renderAs */
190
196
  get renderAs(): ActionDisplayStyle | undefined;
197
+ /** @see ActionRenderOptions.defaultConfirm */
198
+ get defaultConfirm(): boolean | undefined;
199
+ /** @see ActionRenderOptions.defaultReject */
200
+ get defaultReject(): boolean | undefined;
201
+ /** @see ActionRenderOptions.passthroughAttrs */
202
+ get passthroughAttrs(): Record<string, any> | undefined;
191
203
  static closeAction(data?: Partial<IField<ActionBreakpointOptions>>): Action;
192
204
  static yesAction(data?: Partial<IField<ActionBreakpointOptions>>): Action;
193
205
  static noAction(data?: Partial<IField<ActionBreakpointOptions>>): Action;
@@ -210,10 +222,37 @@ export declare namespace ActionDisplayStyle {
210
222
  }
211
223
 
212
224
  export declare interface ActionRenderOptions extends ActionValue {
225
+ /** Unique identifier for the action. Purely informational to `<df-actions>` itself - it is not used for
226
+ * rendering - but by convention should match the key under which the action is registered in a
227
+ * `FormActions` (`Record<string, Action>`) map passed to `@dynamicforms/vuetify-modal-form-kit`'s
228
+ * `modal.message()`/`modal.yesNo()`/etc. That map key (or the action's `fieldName`, when it's part of a
229
+ * `Form.Group`) - not this `name` field - is what the modal's promise actually resolves with; keeping them
230
+ * in sync is what lets callers do e.g. `if (await modal.yesNo(...) === 'yes')`. */
213
231
  name?: string;
232
+ /** How the action is rendered: {@link ActionDisplayStyle.BUTTON} for a tonal `<v-btn>`, or
233
+ * {@link ActionDisplayStyle.TEXT} for a text-variant `<v-btn>`. */
214
234
  renderAs?: ActionDisplayStyle;
235
+ /** Whether the label is shown. If `label` is empty, the label is never shown regardless of this flag. */
215
236
  showLabel?: boolean;
237
+ /** Whether the icon is shown. If `icon` is empty, the icon is never shown regardless of this flag. */
216
238
  showIcon?: boolean;
239
+ /** Marks this as the action to trigger on Enter when rendered inside `<df-modal>` (see that component's
240
+ * `onKeydown` in `@dynamicforms/vuetify-modal-form-kit`) - e.g. a "Save" or "Yes" action. In `<df-actions>` it
241
+ * also colors the button `primary`, unless overridden via `passthroughAttrs.color`. At most one action in a
242
+ * given set should set this. */
243
+ defaultConfirm?: boolean;
244
+ /** Marks this as the action to trigger on Escape when rendered inside `<df-modal>` (see that component's
245
+ * `onKeydown` in `@dynamicforms/vuetify-modal-form-kit`) - e.g. a "Cancel" or "No" action. In `<df-actions>` it
246
+ * also colors the button `secondary`, unless overridden via `passthroughAttrs.color`. At most one action in a
247
+ * given set should set this (an action such as `Action.closeAction()` may set both `defaultConfirm` and
248
+ * `defaultReject` so it fires on either key). */
249
+ defaultReject?: boolean;
250
+ /** Additional props/attrs forwarded verbatim to the rendered `<v-btn>` (e.g. `color`, `loading`, `density`,
251
+ * `rounded`, `block`, `prependIcon`, ...), taking precedence over `<df-actions>`'s own computed bindings
252
+ * (`variant`, `color`, `disabled`). Mirrors the `passthroughAttrs` convention used by `df-input`/`df-file`/etc
253
+ * (see `helpers/input-base.ts`); it has to live on the action's value here because `<df-actions>` renders a
254
+ * whole array of buttons, not just one. */
255
+ passthroughAttrs?: Record<string, any>;
217
256
  }
218
257
 
219
258
  export declare interface BaseEmits<T = any> {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.7.12",
4
+ "version": "0.7.13",
5
5
  "type": "module",
6
6
  "description": "Vuetify input components with guaranteed visual consistency across all form fields — unified density/variant system, globally configurable, with inline mode for table cells. Built for @dynamicforms/vue-forms.",
7
7
  "author": "Jure Erznožnik",