@dynamicforms/vuetify-inputs 0.5.3 → 0.5.5

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,16 +5,30 @@ import { ComponentOptionsMixin } from 'vue';
5
5
  import { ComponentProvideOptions } from 'vue';
6
6
  import { ComputedRef } from 'vue';
7
7
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
8
+ import { Day } from 'date-fns';
8
9
  import { default as default_2 } from '@dynamicforms/vue-forms';
9
10
  import { DefaultInputSlot } from 'vuetify/lib/components/VField/VField';
10
11
  import { DefineComponent } from 'vue';
11
12
  import { Editor } from '@ckeditor/ckeditor5-core';
13
+ import { Era } from 'date-fns';
14
+ import { FirstWeekContainsDate } from 'date-fns';
15
+ import { FormatDistanceFn } from 'date-fns';
16
+ import { FormatLongFn } from 'date-fns';
17
+ import { FormatPart } from 'date-fns';
18
+ import { FormatRelativeFn } from 'date-fns';
12
19
  import { GlobalComponents } from 'vue';
13
20
  import { GlobalDirectives } from 'vue';
14
21
  import { IField } from '@dynamicforms/vue-forms';
15
22
  import { IFieldConstructorParams } from '@dynamicforms/vue-forms';
23
+ import { Locale } from 'date-fns';
24
+ import { LocaleDayPeriod } from 'date-fns';
25
+ import { LocaleUnit } from 'date-fns';
26
+ import { LocalizeFn } from 'date-fns';
27
+ import { MatchFn } from 'date-fns';
16
28
  import { MaybeRef } from 'vue';
29
+ import { Month } from 'date-fns';
17
30
  import { PublicProps } from 'vue';
31
+ import { Quarter } from 'date-fns';
18
32
  import { Ref } from 'vue';
19
33
  import { useDisplay } from 'vuetify';
20
34
  import { ValidationError } from '@dynamicforms/vue-forms';
@@ -54,6 +68,7 @@ declare const __VLS_component: DefineComponent<DfSelectProps, {}, {}, {}, {}, Co
54
68
  "onUpdate:modelValueDisplay"?: ((value: SelectChoice[]) => any) | undefined;
55
69
  }>, {
56
70
  enabled: boolean;
71
+ clearable: boolean;
57
72
  allowNull: boolean;
58
73
  choices: SelectChoice[];
59
74
  multiple: boolean;
@@ -211,8 +226,78 @@ export declare type BreakpointNames = typeof responsiveBreakpoints[number];
211
226
 
212
227
  export declare type BreakpointsJSON<T extends Record<string, any>> = T & Partial<Record<BreakpointNames, T>>;
213
228
 
229
+ export declare const DateTimeLocaleConfig: {
230
+ dateTimeLocale: Ref<{
231
+ code: string;
232
+ formatDistance: FormatDistanceFn;
233
+ formatRelative: FormatRelativeFn;
234
+ localize: {
235
+ ordinalNumber: LocalizeFn<number>;
236
+ era: LocalizeFn<Era>;
237
+ quarter: LocalizeFn<Quarter>;
238
+ month: LocalizeFn<Month>;
239
+ day: LocalizeFn<Day>;
240
+ dayPeriod: LocalizeFn<LocaleDayPeriod>;
241
+ preprocessor?: (<DateType extends Date>(date: DateType, parts: FormatPart[]) => FormatPart[]) | undefined;
242
+ };
243
+ formatLong: {
244
+ date: FormatLongFn;
245
+ time: FormatLongFn;
246
+ dateTime: FormatLongFn;
247
+ };
248
+ match: {
249
+ ordinalNumber: MatchFn<number, {
250
+ unit: LocaleUnit;
251
+ }>;
252
+ era: MatchFn<Era>;
253
+ quarter: MatchFn<Quarter>;
254
+ month: MatchFn<Month>;
255
+ day: MatchFn<Day>;
256
+ dayPeriod: MatchFn<LocaleDayPeriod>;
257
+ };
258
+ options?: {
259
+ weekStartsOn?: Day | undefined;
260
+ firstWeekContainsDate?: FirstWeekContainsDate | undefined;
261
+ } | undefined;
262
+ }, Locale | {
263
+ code: string;
264
+ formatDistance: FormatDistanceFn;
265
+ formatRelative: FormatRelativeFn;
266
+ localize: {
267
+ ordinalNumber: LocalizeFn<number>;
268
+ era: LocalizeFn<Era>;
269
+ quarter: LocalizeFn<Quarter>;
270
+ month: LocalizeFn<Month>;
271
+ day: LocalizeFn<Day>;
272
+ dayPeriod: LocalizeFn<LocaleDayPeriod>;
273
+ preprocessor?: (<DateType extends Date>(date: DateType, parts: FormatPart[]) => FormatPart[]) | undefined;
274
+ };
275
+ formatLong: {
276
+ date: FormatLongFn;
277
+ time: FormatLongFn;
278
+ dateTime: FormatLongFn;
279
+ };
280
+ match: {
281
+ ordinalNumber: MatchFn<number, {
282
+ unit: LocaleUnit;
283
+ }>;
284
+ era: MatchFn<Era>;
285
+ quarter: MatchFn<Quarter>;
286
+ month: MatchFn<Month>;
287
+ day: MatchFn<Day>;
288
+ dayPeriod: MatchFn<LocaleDayPeriod>;
289
+ };
290
+ options?: {
291
+ weekStartsOn?: Day | undefined;
292
+ firstWeekContainsDate?: FirstWeekContainsDate | undefined;
293
+ } | undefined;
294
+ }>;
295
+ setDateTimeLocale(locale: Locale | Ref<Locale>): void;
296
+ };
297
+
214
298
  export declare const defaultBaseProps: {
215
299
  enabled: undefined;
300
+ clearable: boolean;
216
301
  };
217
302
 
218
303
  export declare const defaultDisplayStyle = ActionDisplayStyle.BUTTON;
@@ -236,6 +321,7 @@ export declare const DfCheckbox: DefineComponent<DfCheckboxProps, {}, {}, {}, {}
236
321
  "onClick:clear"?: (() => any) | undefined;
237
322
  }>, {
238
323
  enabled: boolean;
324
+ clearable: boolean;
239
325
  allowNull: boolean;
240
326
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
241
327
 
@@ -251,6 +337,7 @@ export declare const DfColor: DefineComponent<DfColorProps, {}, {}, {}, {}, Comp
251
337
  "onClick:clear"?: (() => any) | undefined;
252
338
  }>, {
253
339
  enabled: boolean;
340
+ clearable: boolean;
254
341
  allowNull: boolean;
255
342
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
256
343
 
@@ -266,6 +353,7 @@ export declare const DfDateTime: DefineComponent<DfDateTimeProps, {}, {}, {}, {}
266
353
  "onClick:clear"?: (() => any) | undefined;
267
354
  }>, {
268
355
  enabled: boolean;
356
+ clearable: boolean;
269
357
  inputType: "datetime" | "date" | "time";
270
358
  displayFormatDate: string;
271
359
  displayFormatTime: string;
@@ -275,6 +363,7 @@ declare interface DfDateTimeProps extends BaseProps {
275
363
  inputType?: 'datetime' | 'date' | 'time';
276
364
  displayFormatDate?: string;
277
365
  displayFormatTime?: string;
366
+ locale?: Locale;
278
367
  }
279
368
 
280
369
  export declare const DfFile: DefineComponent<DfFileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
@@ -285,6 +374,7 @@ export declare const DfFile: DefineComponent<DfFileProps, {}, {}, {}, {}, Compon
285
374
  "onClick:clear"?: (() => any) | undefined;
286
375
  }>, {
287
376
  enabled: boolean;
377
+ clearable: boolean;
288
378
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
289
379
 
290
380
  declare interface DfFileProps extends BaseProps {
@@ -299,6 +389,7 @@ export declare const DfInput: DefineComponent<DfInputProps, {}, {}, {}, {}, Comp
299
389
  "onClick:clear"?: (() => any) | undefined;
300
390
  }>, {
301
391
  enabled: boolean;
392
+ clearable: boolean;
302
393
  inputType: "text" | "password" | "email" | "url" | "number";
303
394
  precision: number | null;
304
395
  step: number;
@@ -353,6 +444,7 @@ export declare const DfRtfEditor: DefineComponent<DfRtfEditorProps, {}, {}, {},
353
444
  }>, {
354
445
  minHeight: string;
355
446
  enabled: boolean;
447
+ clearable: boolean;
356
448
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
357
449
  $editor: CreateComponentPublicInstanceWithMixins<Readonly<{
358
450
  modelValue: string;
@@ -414,6 +506,7 @@ export declare const DfTextArea: DefineComponent<DfTextAreaProps, {}, {}, {}, {}
414
506
  "onClick:clear"?: (() => any) | undefined;
415
507
  }>, {
416
508
  enabled: boolean;
509
+ clearable: boolean;
417
510
  rows: number;
418
511
  maxRows: number;
419
512
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dynamicforms/vuetify-inputs",
3
3
  "private": false,
4
- "version": "0.5.3",
4
+ "version": "0.5.5",
5
5
  "type": "module",
6
6
  "description": "Visual components for data entry using @dynamicforms/vue-forms",
7
7
  "author": "Jure Erznožnik",