@dynamicforms/vuetify-inputs 0.2.4 → 0.3.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
@@ -5,6 +5,7 @@ import { ComponentProvideOptions } from 'vue';
5
5
  import { ComputedRef } from 'vue';
6
6
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
7
7
  import { default as default_2 } from '@dynamicforms/vue-forms';
8
+ import { DefaultInputSlot } from 'vuetify/lib/components/VField/VField';
8
9
  import { DefineComponent } from 'vue';
9
10
  import { Editor } from '@ckeditor/ckeditor5-core';
10
11
  import { ExecuteAction } from '@dynamicforms/vue-forms';
@@ -38,15 +39,22 @@ import { VTextField } from 'vuetify/components/VTextField';
38
39
  import { VTimePicker } from 'vuetify/labs/VTimePicker';
39
40
  import { WritableComputedRef } from 'vue';
40
41
 
41
- declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
42
+ declare const __VLS_component: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
42
43
  "update:modelValue": (value: any) => any;
43
44
  "click:clear": () => any;
44
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
45
+ }, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{
45
46
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
46
47
  "onClick:clear"?: (() => any) | undefined;
47
48
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
48
49
 
49
- declare type __VLS_Props = BaseProps;
50
+ declare type __VLS_Props = {
51
+ data?: DefaultInputSlot & {
52
+ label?: string;
53
+ };
54
+ label: Label;
55
+ };
56
+
57
+ declare type __VLS_Props_2 = BaseProps;
50
58
 
51
59
  declare function __VLS_template(): {
52
60
  attrs: Partial<{}>;
@@ -121,7 +129,7 @@ export declare interface BaseEmits<T = any> {
121
129
  export declare interface BaseProps<T = any> {
122
130
  control?: default_2.IField<T>;
123
131
  modelValue?: T;
124
- label?: string;
132
+ label?: string | Label;
125
133
  errors?: string[];
126
134
  placeholder?: string;
127
135
  helpText?: string;
@@ -207,6 +215,8 @@ inputType: "text" | "password" | "email" | "url" | "number";
207
215
  precision: number | null;
208
216
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
209
217
 
218
+ export declare const DfLabel: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
219
+
210
220
  export declare const DfRtfEditor: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
211
221
  "update:modelValue": (value: any) => any;
212
222
  "click:clear": () => any;
@@ -214,8 +224,8 @@ export declare const DfRtfEditor: DefineComponent<Props_7, {}, {}, {}, {}, Compo
214
224
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
215
225
  "onClick:clear"?: (() => any) | undefined;
216
226
  }>, {
217
- enabled: boolean;
218
227
  minHeight: string;
228
+ enabled: boolean;
219
229
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
220
230
  $editor: CreateComponentPublicInstanceWithMixins<Readonly<{
221
231
  modelValue: string;
@@ -228,9 +238,9 @@ onEditorReady: (editorReady: Editor) => void;
228
238
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
229
239
  "update:modelValue": (value: string) => any;
230
240
  }, PublicProps, {
231
- modelValue: string;
232
241
  disabled: boolean;
233
242
  minHeight: string;
243
+ modelValue: string;
234
244
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
235
245
  editorElement: HTMLDivElement;
236
246
  }, HTMLDivElement, ComponentProvideOptions, {
@@ -249,9 +259,9 @@ disabled?: boolean;
249
259
  }>, {
250
260
  onEditorReady: (editorReady: Editor) => void;
251
261
  }, {}, {}, {}, {
252
- modelValue: string;
253
262
  disabled: boolean;
254
263
  minHeight: string;
264
+ modelValue: string;
255
265
  }> | null;
256
266
  }, any>;
257
267
 
@@ -325,6 +335,13 @@ export declare function getBreakpointName(dp: ReturnType<typeof useDisplay>): Br
325
335
 
326
336
  export declare const InputBase: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
327
337
 
338
+ export declare class Label {
339
+ text: string;
340
+ icon?: string | undefined;
341
+ iconComponent: string;
342
+ constructor(text: string, icon?: string | undefined, iconComponent?: string);
343
+ }
344
+
328
345
  export declare interface LabelRenderOptions {
329
346
  renderAs?: ActionDisplayStyle;
330
347
  showLabel?: boolean;
@@ -411,6 +428,7 @@ export declare function useInputBase<T = any>(props: BaseProps<T>, emit: BaseEmi
411
428
  enabled: ComputedRef<boolean>;
412
429
  errors: ComputedRef<default_2.ValidationError[]>;
413
430
  visibility: ComputedRef<default_2.DisplayMode>;
431
+ label: ComputedRef<Label>;
414
432
  vuetifyBindings: ComputedRef< {
415
433
  name: string | undefined;
416
434
  class: string;