@dynamicforms/vuetify-inputs 0.9.0 → 0.9.1

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
@@ -179,6 +179,7 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
179
179
  };
180
180
 
181
181
  export declare class Action extends Action_2<ActionBreakpointOptions> {
182
+ /** @see getRenderOptionsForBreakpoint, which answers the same for the value of any `Action` */
182
183
  getBreakpointValue(breakpoint: Ref<BreakpointNames>): ComputedRef<ActionRenderOptions>;
183
184
  /** @see ActionRenderOptions.name */
184
185
  get name(): string | undefined;
@@ -378,7 +379,9 @@ showAsGroup: "no" | "grouped" | "grouped-no-borders";
378
379
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
379
380
 
380
381
  declare interface DfActionsProps {
381
- actions: MaybeRef<Action[]>;
382
+ /** The actions to draw, this library's `Action` or a bare `@dynamicforms/vue-forms` one: what each button
383
+ * renders as is read off the action's value, and a value stating nothing renders as the defaults. */
384
+ actions: MaybeRef<Action_2[]>;
382
385
  buttonSize?: string | number;
383
386
  showAsGroup?: ShowAsGroup;
384
387
  }
@@ -637,6 +640,17 @@ export declare type FileProgressCallback = (loaded: number, total: number) => vo
637
640
 
638
641
  export declare function getBreakpointName(dp: ReturnType<typeof useDisplay>): BreakpointNames;
639
642
 
643
+ /**
644
+ * What one action renders as at `breakpoint`, read off the value of any `Action`. The members
645
+ * `ActionRenderOptions` adds over `ActionValue` are taken where the value carries them and defaulted where it does
646
+ * not, so an action holding nothing but a label - which is all a `@dynamicforms/vue-forms` `Action` declares -
647
+ * renders as a button showing that label.
648
+ *
649
+ * `label` and `icon` come back only where the matching flag says they are shown, and the flags come back false
650
+ * where there is no text or name to show, so a caller renders each member on its own flag and never on emptiness.
651
+ */
652
+ export declare function getRenderOptionsForBreakpoint(value: ActionValue, breakpoint: BreakpointNames): ActionRenderOptions;
653
+
640
654
  export declare const InputBase: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
641
655
 
642
656
  export declare class Label {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.9.0",
4
+ "version": "0.9.1",
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",
@@ -12,6 +12,7 @@
12
12
  "types": "./dist/index.d.ts",
13
13
  "exports": {
14
14
  ".": {
15
+ "types": "./dist/index.d.ts",
15
16
  "require": "./dist/dynamicforms-vuetify-inputs.umd.cjs",
16
17
  "import": "./dist/dynamicforms-vuetify-inputs.js"
17
18
  },