@dynamicforms/vuetify-inputs 0.5.4 → 0.5.6
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';
|
|
@@ -206,12 +220,82 @@ export declare interface BaseProps<T = any> {
|
|
|
206
220
|
visibility?: default_2.DisplayMode;
|
|
207
221
|
cssClass?: string;
|
|
208
222
|
clearable?: boolean;
|
|
223
|
+
passthroughAttrs?: Record<string, any>;
|
|
209
224
|
}
|
|
210
225
|
|
|
211
226
|
export declare type BreakpointNames = typeof responsiveBreakpoints[number];
|
|
212
227
|
|
|
213
228
|
export declare type BreakpointsJSON<T extends Record<string, any>> = T & Partial<Record<BreakpointNames, T>>;
|
|
214
229
|
|
|
230
|
+
export declare const DateTimeLocaleConfig: {
|
|
231
|
+
dateTimeLocale: Ref<{
|
|
232
|
+
code: string;
|
|
233
|
+
formatDistance: FormatDistanceFn;
|
|
234
|
+
formatRelative: FormatRelativeFn;
|
|
235
|
+
localize: {
|
|
236
|
+
ordinalNumber: LocalizeFn<number>;
|
|
237
|
+
era: LocalizeFn<Era>;
|
|
238
|
+
quarter: LocalizeFn<Quarter>;
|
|
239
|
+
month: LocalizeFn<Month>;
|
|
240
|
+
day: LocalizeFn<Day>;
|
|
241
|
+
dayPeriod: LocalizeFn<LocaleDayPeriod>;
|
|
242
|
+
preprocessor?: (<DateType extends Date>(date: DateType, parts: FormatPart[]) => FormatPart[]) | undefined;
|
|
243
|
+
};
|
|
244
|
+
formatLong: {
|
|
245
|
+
date: FormatLongFn;
|
|
246
|
+
time: FormatLongFn;
|
|
247
|
+
dateTime: FormatLongFn;
|
|
248
|
+
};
|
|
249
|
+
match: {
|
|
250
|
+
ordinalNumber: MatchFn<number, {
|
|
251
|
+
unit: LocaleUnit;
|
|
252
|
+
}>;
|
|
253
|
+
era: MatchFn<Era>;
|
|
254
|
+
quarter: MatchFn<Quarter>;
|
|
255
|
+
month: MatchFn<Month>;
|
|
256
|
+
day: MatchFn<Day>;
|
|
257
|
+
dayPeriod: MatchFn<LocaleDayPeriod>;
|
|
258
|
+
};
|
|
259
|
+
options?: {
|
|
260
|
+
weekStartsOn?: Day | undefined;
|
|
261
|
+
firstWeekContainsDate?: FirstWeekContainsDate | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
}, Locale | {
|
|
264
|
+
code: string;
|
|
265
|
+
formatDistance: FormatDistanceFn;
|
|
266
|
+
formatRelative: FormatRelativeFn;
|
|
267
|
+
localize: {
|
|
268
|
+
ordinalNumber: LocalizeFn<number>;
|
|
269
|
+
era: LocalizeFn<Era>;
|
|
270
|
+
quarter: LocalizeFn<Quarter>;
|
|
271
|
+
month: LocalizeFn<Month>;
|
|
272
|
+
day: LocalizeFn<Day>;
|
|
273
|
+
dayPeriod: LocalizeFn<LocaleDayPeriod>;
|
|
274
|
+
preprocessor?: (<DateType extends Date>(date: DateType, parts: FormatPart[]) => FormatPart[]) | undefined;
|
|
275
|
+
};
|
|
276
|
+
formatLong: {
|
|
277
|
+
date: FormatLongFn;
|
|
278
|
+
time: FormatLongFn;
|
|
279
|
+
dateTime: FormatLongFn;
|
|
280
|
+
};
|
|
281
|
+
match: {
|
|
282
|
+
ordinalNumber: MatchFn<number, {
|
|
283
|
+
unit: LocaleUnit;
|
|
284
|
+
}>;
|
|
285
|
+
era: MatchFn<Era>;
|
|
286
|
+
quarter: MatchFn<Quarter>;
|
|
287
|
+
month: MatchFn<Month>;
|
|
288
|
+
day: MatchFn<Day>;
|
|
289
|
+
dayPeriod: MatchFn<LocaleDayPeriod>;
|
|
290
|
+
};
|
|
291
|
+
options?: {
|
|
292
|
+
weekStartsOn?: Day | undefined;
|
|
293
|
+
firstWeekContainsDate?: FirstWeekContainsDate | undefined;
|
|
294
|
+
} | undefined;
|
|
295
|
+
}>;
|
|
296
|
+
setDateTimeLocale(locale: Locale | Ref<Locale>): void;
|
|
297
|
+
};
|
|
298
|
+
|
|
215
299
|
export declare const defaultBaseProps: {
|
|
216
300
|
enabled: undefined;
|
|
217
301
|
clearable: boolean;
|
|
@@ -280,6 +364,7 @@ declare interface DfDateTimeProps extends BaseProps {
|
|
|
280
364
|
inputType?: 'datetime' | 'date' | 'time';
|
|
281
365
|
displayFormatDate?: string;
|
|
282
366
|
displayFormatTime?: string;
|
|
367
|
+
locale?: Locale;
|
|
283
368
|
}
|
|
284
369
|
|
|
285
370
|
export declare const DfFile: DefineComponent<DfFileProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamicforms/vuetify-inputs",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Visual components for data entry using @dynamicforms/vue-forms",
|
|
7
7
|
"author": "Jure Erznožnik",
|
|
8
|
-
"files": [
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/*"
|
|
10
|
+
],
|
|
9
11
|
"main": "dist/dynamicforms-vuetify-inputs.umd.cjs",
|
|
10
12
|
"types": "./dist/index.d.ts",
|
|
11
13
|
"exports": {
|