@dhis2-ui/calendar 10.15.0 → 10.15.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/package.json +8 -8
- package/types/index.d.ts +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/calendar",
|
|
3
|
-
"version": "10.15.
|
|
3
|
+
"version": "10.15.1",
|
|
4
4
|
"description": "UI Calendar",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"styled-jsx": "^4"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dhis2-ui/button": "10.15.
|
|
37
|
-
"@dhis2-ui/card": "10.15.
|
|
38
|
-
"@dhis2-ui/input": "10.15.
|
|
39
|
-
"@dhis2-ui/layer": "10.15.
|
|
40
|
-
"@dhis2-ui/popper": "10.15.
|
|
36
|
+
"@dhis2-ui/button": "10.15.1",
|
|
37
|
+
"@dhis2-ui/card": "10.15.1",
|
|
38
|
+
"@dhis2-ui/input": "10.15.1",
|
|
39
|
+
"@dhis2-ui/layer": "10.15.1",
|
|
40
|
+
"@dhis2-ui/popper": "10.15.1",
|
|
41
41
|
"@dhis2/multi-calendar-dates": "2.1.2",
|
|
42
42
|
"@dhis2/prop-types": "^3.1.2",
|
|
43
|
-
"@dhis2/ui-constants": "10.15.
|
|
44
|
-
"@dhis2/ui-icons": "10.15.
|
|
43
|
+
"@dhis2/ui-constants": "10.15.1",
|
|
44
|
+
"@dhis2/ui-icons": "10.15.1",
|
|
45
45
|
"classnames": "^2.3.1",
|
|
46
46
|
"prop-types": "^15.7.2"
|
|
47
47
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -41,6 +41,10 @@ export interface CalendarProps {
|
|
|
41
41
|
* numbering system to use - full list here https://github.com/dhis2/multi-calendar-dates/blob/main/src/constants/numberingSystems.ts
|
|
42
42
|
*/
|
|
43
43
|
numberingSystem?: CalendarPickerOptions['numberingSystem']
|
|
44
|
+
/**
|
|
45
|
+
* When true, only shows years in the past (current year and earlier)
|
|
46
|
+
*/
|
|
47
|
+
pastOnly?: boolean
|
|
44
48
|
/**
|
|
45
49
|
* the timeZone to use
|
|
46
50
|
*/
|
|
@@ -64,6 +68,18 @@ export type CalendarInputProps = Omit<InputFieldProps, 'type' | 'value'> &
|
|
|
64
68
|
* or processed. If not provided it supports both formats
|
|
65
69
|
*/
|
|
66
70
|
format?: 'YYYY-MM-DD' | 'DD-MM-YYYY'
|
|
71
|
+
/**
|
|
72
|
+
* The maximum selectable date
|
|
73
|
+
*/
|
|
74
|
+
maxDate?: string
|
|
75
|
+
/**
|
|
76
|
+
* The minimum selectable date
|
|
77
|
+
*/
|
|
78
|
+
minDate?: string
|
|
79
|
+
/**
|
|
80
|
+
* Whether to use strict validation by showing errors for out-of-range dates when enabled (default), and warnings when disabled
|
|
81
|
+
*/
|
|
82
|
+
strictValidation?: boolean
|
|
67
83
|
}
|
|
68
84
|
|
|
69
85
|
export const CalendarInput: React.FC<CalendarInputProps>
|