@mantine-vue/dates 3.1.0 → 3.3.0
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/cjs/index.cjs +35 -6
- package/cjs/index.cjs.map +1 -1
- package/esm/index.mjs +35 -6
- package/esm/index.mjs.map +1 -1
- package/lib/types.d.ts +6 -4
- package/package.json +3 -3
package/lib/types.d.ts
CHANGED
|
@@ -399,8 +399,10 @@ export interface DateInputProps extends PickerInputBaseProps {
|
|
|
399
399
|
modelValue?: string | Date | null;
|
|
400
400
|
/** Initial uncontrolled date value. */
|
|
401
401
|
defaultValue?: string | Date | null;
|
|
402
|
-
/** `dayjs` format
|
|
403
|
-
valueFormat?: string;
|
|
402
|
+
/** `dayjs` format or a function that formats the canonical value. @default 'MMMM D, YYYY' */
|
|
403
|
+
valueFormat?: string | ((date: DateStringValue) => string);
|
|
404
|
+
/** If set, parsing preserves the time part of the value. @default false */
|
|
405
|
+
withTime?: boolean;
|
|
404
406
|
/** Custom text-to-date parser. */
|
|
405
407
|
dateParser?: (value: string) => DateStringValue | null;
|
|
406
408
|
/** Locale used to parse and format dates. */
|
|
@@ -606,8 +608,8 @@ export interface MiniCalendarProps extends DatesStyleProps {
|
|
|
606
608
|
minDate?: string | Date;
|
|
607
609
|
/** Number of days to display in the calendar @default 7 */
|
|
608
610
|
numberOfDays?: number;
|
|
609
|
-
/**
|
|
610
|
-
monthLabelFormat?: string;
|
|
611
|
+
/** `dayjs` format or a function that returns the month label. @default 'MMM' */
|
|
612
|
+
monthLabelFormat?: string | ((date: DateStringValue) => string);
|
|
611
613
|
/** Returns additional props for a day control. */
|
|
612
614
|
getDayProps?: (date: DateStringValue) => ControlProps;
|
|
613
615
|
/** Component size @default 'sm' */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/dates",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Vue date and time picker components equivalent to @mantine/dates",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"vue": "^3.5.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@mantine-vue/core": "3.
|
|
44
|
-
"@mantine-vue/hooks": "3.
|
|
43
|
+
"@mantine-vue/core": "3.3.0",
|
|
44
|
+
"@mantine-vue/hooks": "3.3.0",
|
|
45
45
|
"dayjs": ">=1.0.0",
|
|
46
46
|
"vue": "^3.5.0"
|
|
47
47
|
}
|