@dynamicforms/vuetify-inputs 0.5.4 → 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';
|
|
@@ -212,6 +226,75 @@ export declare type BreakpointNames = typeof responsiveBreakpoints[number];
|
|
|
212
226
|
|
|
213
227
|
export declare type BreakpointsJSON<T extends Record<string, any>> = T & Partial<Record<BreakpointNames, T>>;
|
|
214
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
|
+
|
|
215
298
|
export declare const defaultBaseProps: {
|
|
216
299
|
enabled: undefined;
|
|
217
300
|
clearable: boolean;
|
|
@@ -280,6 +363,7 @@ declare interface DfDateTimeProps extends BaseProps {
|
|
|
280
363
|
inputType?: 'datetime' | 'date' | 'time';
|
|
281
364
|
displayFormatDate?: string;
|
|
282
365
|
displayFormatTime?: string;
|
|
366
|
+
locale?: Locale;
|
|
283
367
|
}
|
|
284
368
|
|
|
285
369
|
export declare const DfFile: DefineComponent<DfFileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
package/package.json
CHANGED