@semapps/date-components 1.1.3 → 1.2.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/dist/index.cjs.js +224 -224
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.ts +276 -0
- package/dist/index.d.ts +21 -47
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +218 -229
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.ts +275 -0
- package/package.json +12 -13
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
var $3RhHq$reactjsxruntime = require("react/jsx-runtime");
|
|
2
|
+
require("@fullcalendar/react/dist/vdom");
|
|
3
|
+
var $3RhHq$muixdatepickersDatePicker = require("@mui/x-date-pickers/DatePicker");
|
|
4
|
+
var $3RhHq$muixdatepickersTimePicker = require("@mui/x-date-pickers/TimePicker");
|
|
5
|
+
var $3RhHq$muixdatepickersDateTimePicker = require("@mui/x-date-pickers/DateTimePicker");
|
|
6
|
+
var $3RhHq$react = require("react");
|
|
7
|
+
var $3RhHq$reactadmin = require("react-admin");
|
|
8
|
+
var $3RhHq$muixdatepickersLocalizationProvider = require("@mui/x-date-pickers/LocalizationProvider");
|
|
9
|
+
var $3RhHq$muixdatepickersAdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
|
|
10
|
+
var $3RhHq$fullcalendarreact = require("@fullcalendar/react");
|
|
11
|
+
var $3RhHq$fullcalendardaygrid = require("@fullcalendar/daygrid");
|
|
12
|
+
var $3RhHq$muimaterial = require("@mui/material");
|
|
13
|
+
var $3RhHq$muistylesmakeStyles = require("@mui/styles/makeStyles");
|
|
14
|
+
var $3RhHq$reactrouterdom = require("react-router-dom");
|
|
15
|
+
var $3RhHq$fullcalendarlist = require("@fullcalendar/list");
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function $parcel$export(e: any, n: any, v: any, s: any) {
|
|
19
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function $parcel$interopDefault(a: any) {
|
|
23
|
+
return a && a.__esModule ? a.default : a;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// @ts-expect-error TS(2554): Expected 4 arguments, but got 3.
|
|
27
|
+
$parcel$export(module.exports, "DateInput", () => $0ec82123656742c1$export$7edc06cf1783b30f);
|
|
28
|
+
// @ts-expect-error TS(2554): Expected 4 arguments, but got 3.
|
|
29
|
+
$parcel$export(module.exports, "TimeInput", () => $0ec82123656742c1$export$a1af6f79df847fac);
|
|
30
|
+
// @ts-expect-error TS(2554): Expected 4 arguments, but got 3.
|
|
31
|
+
$parcel$export(module.exports, "DateTimeInput", () => $0ec82123656742c1$export$183478aa40b5df1);
|
|
32
|
+
// @ts-expect-error TS(2554): Expected 4 arguments, but got 3.
|
|
33
|
+
$parcel$export(module.exports, "CalendarList", () => $563c84827e91e322$export$2e2bcd8739ae039);
|
|
34
|
+
// @ts-expect-error TS(2554): Expected 4 arguments, but got 3.
|
|
35
|
+
$parcel$export(module.exports, "DaysList", () => $5379d12b87e743a4$export$2e2bcd8739ae039);
|
|
36
|
+
// @ts-expect-error TS(2554): Expected 4 arguments, but got 3.
|
|
37
|
+
$parcel$export(module.exports, "useFullCalendarProps", () => $c8dbd8ec3b8f34cc$export$2e2bcd8739ae039);
|
|
38
|
+
/* eslint-disable react/react-in-jsx-scope */ /* eslint-disable react/jsx-props-no-spreading */ // Solves bug with Vite in dev mode. Can be removed when we upgrade to FullCalendar v6
|
|
39
|
+
// See https://github.com/fullcalendar/fullcalendar-vue/issues/152
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/* eslint-disable react/react-in-jsx-scope */ /* eslint-disable react/require-default-props */
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
// @ts-expect-error TS(7031): Binding element 'PickerComponent' implicitly has a... Remove this comment to see the full error message
|
|
51
|
+
const $c332daa71b957685$var$Picker = ({ PickerComponent: PickerComponent, label: label, source: source, helperText: helperText, fullWidth: fullWidth, onBlur: onBlur, onChange: onChange, format: format, parse: parse, validate: validate, defaultValue: defaultValue, locale: locale, translations: translations, stringFormat: stringFormat = 'ISO', ...rest })=>{
|
|
52
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
53
|
+
const { field: field, isRequired: isRequired, fieldState: { error: error, isTouched: isTouched, invalid: invalid }, formState: { isSubmitted: isSubmitted } } = (0, $3RhHq$reactadmin.useInput)({
|
|
54
|
+
format: format,
|
|
55
|
+
onBlur: onBlur,
|
|
56
|
+
onChange: onChange,
|
|
57
|
+
parse: parse,
|
|
58
|
+
source: source,
|
|
59
|
+
validate: validate,
|
|
60
|
+
defaultValue: defaultValue
|
|
61
|
+
});
|
|
62
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
63
|
+
const handleChange = (0, $3RhHq$react.useCallback)((value: any) => {
|
|
64
|
+
if (value instanceof Date) field.onChange(stringFormat === 'ISO' ? value.toISOString() : value.toString());
|
|
65
|
+
else field.onChange(null);
|
|
66
|
+
}, [
|
|
67
|
+
field,
|
|
68
|
+
stringFormat
|
|
69
|
+
]);
|
|
70
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
71
|
+
const translateLabel = (0, $3RhHq$reactadmin.useTranslateLabel)();
|
|
72
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
73
|
+
const translatedLabel = /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsxs)("span", {
|
|
74
|
+
children: [
|
|
75
|
+
translateLabel({
|
|
76
|
+
label: label,
|
|
77
|
+
source: source
|
|
78
|
+
}),
|
|
79
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
80
|
+
isRequired && /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)("span", {
|
|
81
|
+
"aria-hidden": "true",
|
|
82
|
+
children: "\u2009*"
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
87
|
+
return /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)((0, $3RhHq$muixdatepickersLocalizationProvider.LocalizationProvider), {
|
|
88
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
89
|
+
dateAdapter: (0, $3RhHq$muixdatepickersAdapterDateFns.AdapterDateFns),
|
|
90
|
+
adapterLocale: locale,
|
|
91
|
+
localeText: translations?.components.MuiLocalizationProvider.defaultProps.localeText,
|
|
92
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
93
|
+
children: /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)(PickerComponent, {
|
|
94
|
+
label: translatedLabel,
|
|
95
|
+
slotProps: {
|
|
96
|
+
textField: {
|
|
97
|
+
error: (isTouched || isSubmitted) && invalid,
|
|
98
|
+
size: 'small',
|
|
99
|
+
fullWidth: fullWidth,
|
|
100
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
101
|
+
helperText: /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)((0, $3RhHq$reactadmin.InputHelperText), {
|
|
102
|
+
touched: isTouched || isSubmitted,
|
|
103
|
+
error: error?.message,
|
|
104
|
+
helperText: helperText
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
value: field.value ? new Date(field.value) : null,
|
|
109
|
+
onChange: handleChange,
|
|
110
|
+
...rest
|
|
111
|
+
})
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
var $c332daa71b957685$export$2e2bcd8739ae039 = $c332daa71b957685$var$Picker;
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
// @ts-expect-error TS(7031): Binding element 'label' implicitly has an 'any' ty... Remove this comment to see the full error message
|
|
127
|
+
const $c8dbd8ec3b8f34cc$var$useFullCalendarProps = ({ label: label, startDate: startDate, endDate: endDate, linkType: linkType = 'edit' })=>{
|
|
128
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
129
|
+
const { data: data, isLoading: isLoading, resource: resource } = (0, $3RhHq$reactadmin.useListContext)();
|
|
130
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
131
|
+
const [searchParams, setSearchParams] = (0, $3RhHq$reactrouterdom.useSearchParams)();
|
|
132
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
133
|
+
const navigate = (0, $3RhHq$reactrouterdom.useNavigate)();
|
|
134
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
135
|
+
const createPath = (0, $3RhHq$reactadmin.useCreatePath)();
|
|
136
|
+
const query = new URLSearchParams(location.search);
|
|
137
|
+
// Bypass the link in order to use React-Router
|
|
138
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
139
|
+
const eventClick = (0, $3RhHq$react.useCallback)(({ event: event, jsEvent: jsEvent })=>{
|
|
140
|
+
jsEvent.preventDefault();
|
|
141
|
+
navigate(event.url);
|
|
142
|
+
}, []);
|
|
143
|
+
// Change the query string when month change
|
|
144
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
145
|
+
const datesSet = (0, $3RhHq$react.useCallback)(({ view: view })=>{
|
|
146
|
+
setSearchParams((params: any) => ({
|
|
147
|
+
...params,
|
|
148
|
+
month: view.currentStart.getMonth() + 1,
|
|
149
|
+
year: view.currentStart.getFullYear()
|
|
150
|
+
}));
|
|
151
|
+
}, [
|
|
152
|
+
setSearchParams
|
|
153
|
+
]);
|
|
154
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
155
|
+
const events = (0, $3RhHq$react.useMemo)(()=>!isLoading && data.filter((record: any) => record).map((record: any) => ({
|
|
156
|
+
id: record.id,
|
|
157
|
+
title: typeof label === 'string' ? record[label] : label(record),
|
|
158
|
+
start: typeof startDate === 'string' ? record[startDate] : startDate(record),
|
|
159
|
+
end: typeof endDate === 'string' ? record[endDate] : endDate(record),
|
|
160
|
+
|
|
161
|
+
url: createPath({
|
|
162
|
+
resource: resource,
|
|
163
|
+
id: record.id,
|
|
164
|
+
type: linkType
|
|
165
|
+
})
|
|
166
|
+
})), [
|
|
167
|
+
isLoading,
|
|
168
|
+
data,
|
|
169
|
+
resource,
|
|
170
|
+
createPath
|
|
171
|
+
]);
|
|
172
|
+
return {
|
|
173
|
+
// @ts-expect-error TS(2345): Argument of type 'string | null' is not assignable... Remove this comment to see the full error message
|
|
174
|
+
initialDate: query.has('month') ? new Date(query.get('year'), query.get('month') - 1) : new Date(),
|
|
175
|
+
events: events,
|
|
176
|
+
datesSet: datesSet,
|
|
177
|
+
eventClick: eventClick
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
var $c8dbd8ec3b8f34cc$export$2e2bcd8739ae039 = $c8dbd8ec3b8f34cc$var$useFullCalendarProps;
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
184
|
+
const $563c84827e91e322$var$useGlobalStyles = (0, ($parcel$interopDefault($3RhHq$muistylesmakeStyles)))((theme: any) => ({
|
|
185
|
+
'@global': {
|
|
186
|
+
'.fc-button': {
|
|
187
|
+
backgroundColor: `${theme.palette.primary.main} !important`,
|
|
188
|
+
border: 'none !important',
|
|
189
|
+
opacity: '1 !important'
|
|
190
|
+
},
|
|
191
|
+
'.fc-day-today': {
|
|
192
|
+
backgroundColor: `${theme.palette.secondary.light} !important`
|
|
193
|
+
},
|
|
194
|
+
// Overwrite violet color of links
|
|
195
|
+
'a.fc-daygrid-dot-event': {
|
|
196
|
+
color: 'black !important'
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}));
|
|
200
|
+
const $563c84827e91e322$var$CalendarList = (props: any) => {
|
|
201
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
202
|
+
const theme = (0, $3RhHq$muimaterial.useTheme)();
|
|
203
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
204
|
+
const fullCalendarProps = (0, $c8dbd8ec3b8f34cc$export$2e2bcd8739ae039)(props);
|
|
205
|
+
$563c84827e91e322$var$useGlobalStyles();
|
|
206
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
207
|
+
return /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)((0, ($parcel$interopDefault($3RhHq$fullcalendarreact))), {
|
|
208
|
+
plugins: [
|
|
209
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
210
|
+
(0, ($parcel$interopDefault($3RhHq$fullcalendardaygrid)))
|
|
211
|
+
],
|
|
212
|
+
locale: props.locale,
|
|
213
|
+
initialView: "dayGridMonth",
|
|
214
|
+
eventBackgroundColor: theme.palette.primary.main,
|
|
215
|
+
...fullCalendarProps
|
|
216
|
+
});
|
|
217
|
+
};
|
|
218
|
+
var $563c84827e91e322$export$2e2bcd8739ae039 = $563c84827e91e322$var$CalendarList;
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
228
|
+
const $5379d12b87e743a4$var$useGlobalStyles = (0, ($parcel$interopDefault($3RhHq$muistylesmakeStyles)))((theme: any) => ({
|
|
229
|
+
'@global': {
|
|
230
|
+
'.fc-button': {
|
|
231
|
+
backgroundColor: `${theme.palette.primary.main} !important`,
|
|
232
|
+
border: 'none !important',
|
|
233
|
+
opacity: '1 !important'
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}));
|
|
237
|
+
const $5379d12b87e743a4$var$DaysList = (props: any) => {
|
|
238
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
239
|
+
const fullCalendarProps = (0, $c8dbd8ec3b8f34cc$export$2e2bcd8739ae039)(props);
|
|
240
|
+
$5379d12b87e743a4$var$useGlobalStyles();
|
|
241
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
242
|
+
return /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)((0, ($parcel$interopDefault($3RhHq$fullcalendarreact))), {
|
|
243
|
+
plugins: [
|
|
244
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
245
|
+
(0, ($parcel$interopDefault($3RhHq$fullcalendarlist)))
|
|
246
|
+
],
|
|
247
|
+
locale: props.locale,
|
|
248
|
+
initialView: "listMonth",
|
|
249
|
+
...fullCalendarProps
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
var $5379d12b87e743a4$export$2e2bcd8739ae039 = $5379d12b87e743a4$var$DaysList;
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
257
|
+
const $0ec82123656742c1$export$7edc06cf1783b30f = (props: any) => /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)((0, $c332daa71b957685$export$2e2bcd8739ae039), {
|
|
258
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
259
|
+
PickerComponent: (0, $3RhHq$muixdatepickersDatePicker.DatePicker),
|
|
260
|
+
...props
|
|
261
|
+
});
|
|
262
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
263
|
+
const $0ec82123656742c1$export$a1af6f79df847fac = (props: any) => /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)((0, $c332daa71b957685$export$2e2bcd8739ae039), {
|
|
264
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
265
|
+
PickerComponent: (0, $3RhHq$muixdatepickersTimePicker.TimePicker),
|
|
266
|
+
...props
|
|
267
|
+
});
|
|
268
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
269
|
+
const $0ec82123656742c1$export$183478aa40b5df1 = (props: any) => /*#__PURE__*/ (0, $3RhHq$reactjsxruntime.jsx)((0, $c332daa71b957685$export$2e2bcd8739ae039), {
|
|
270
|
+
// @ts-expect-error TS(2695): Left side of comma operator is unused and has no s... Remove this comment to see the full error message
|
|
271
|
+
PickerComponent: (0, $3RhHq$muixdatepickersDateTimePicker.DateTimePicker),
|
|
272
|
+
...props
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,59 +1,33 @@
|
|
|
1
|
-
import { ComponentType } from
|
|
2
|
-
import { TextInputProps } from
|
|
3
|
-
import { getPickersLocalization } from
|
|
4
|
-
import { Locale } from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { ComponentType } from "react";
|
|
2
|
+
import { TextInputProps } from "react-admin";
|
|
3
|
+
import { getPickersLocalization } from "@mui/x-date-pickers/locales/utils/getPickersLocalization";
|
|
4
|
+
import { Locale } from "date-fns";
|
|
5
|
+
import { JSX } from "react/jsx-runtime";
|
|
6
|
+
import { DatePickerProps } from "@mui/x-date-pickers/DatePicker";
|
|
7
|
+
import { TimePickerProps } from "@mui/x-date-pickers/TimePicker";
|
|
8
|
+
import { DateTimePickerProps } from "@mui/x-date-pickers/DateTimePicker";
|
|
9
|
+
type Props<PickerProps> = TextInputProps & Omit<PickerProps, 'format'> & {
|
|
10
10
|
PickerComponent: ComponentType;
|
|
11
11
|
locale?: Locale;
|
|
12
12
|
translations?: ReturnType<typeof getPickersLocalization>;
|
|
13
13
|
stringFormat?: string;
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
endDate,
|
|
19
|
-
linkType
|
|
20
|
-
}: {
|
|
21
|
-
label: any;
|
|
22
|
-
startDate: any;
|
|
23
|
-
endDate: any;
|
|
24
|
-
linkType: any;
|
|
25
|
-
}): {
|
|
26
|
-
initialDate: Date;
|
|
27
|
-
events:
|
|
28
|
-
| false
|
|
29
|
-
| {
|
|
14
|
+
};
|
|
15
|
+
export const useFullCalendarProps: ({ label, startDate, endDate, linkType }: any) => {
|
|
16
|
+
initialDate: Date;
|
|
17
|
+
events: false | {
|
|
30
18
|
id: any;
|
|
31
19
|
title: any;
|
|
32
20
|
start: any;
|
|
33
21
|
end: any;
|
|
34
22
|
url: string;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
23
|
+
}[];
|
|
24
|
+
datesSet: ({ view }: any) => void;
|
|
25
|
+
eventClick: ({ event, jsEvent }: any) => void;
|
|
38
26
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
declare namespace DaysList {
|
|
45
|
-
namespace defaultProps {
|
|
46
|
-
let linkType: string;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export const DateInput: <TDate>(
|
|
50
|
-
props: Omit<Props<DatePickerProps<TDate>>, 'PickerComponent'>
|
|
51
|
-
) => import('react/jsx-runtime').JSX.Element;
|
|
52
|
-
export const TimeInput: <TDate>(
|
|
53
|
-
props: Omit<Props<TimePickerProps<TDate>>, 'PickerComponent'>
|
|
54
|
-
) => import('react/jsx-runtime').JSX.Element;
|
|
55
|
-
export const DateTimeInput: <TDate>(
|
|
56
|
-
props: Omit<Props<DateTimePickerProps<TDate>>, 'PickerComponent'>
|
|
57
|
-
) => import('react/jsx-runtime').JSX.Element;
|
|
27
|
+
export const CalendarList: (props: any) => JSX.Element;
|
|
28
|
+
export const DaysList: (props: any) => JSX.Element;
|
|
29
|
+
export const DateInput: <TDate>(props: Omit<Props<DatePickerProps<TDate>>, "PickerComponent">) => JSX.Element;
|
|
30
|
+
export const TimeInput: <TDate>(props: Omit<Props<TimePickerProps<TDate>>, "PickerComponent">) => JSX.Element;
|
|
31
|
+
export const DateTimeInput: <TDate>(props: Omit<Props<DateTimePickerProps<TDate>>, "PickerComponent">) => JSX.Element;
|
|
58
32
|
|
|
59
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;;;;AASA,WAAkB,WAAW,IAAI,cAAc,GAC7C,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG;IAC5B,eAAe,EAAE,aAAa,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,UAAU,CAAC,6BAA6B,CAAC,CAAC;IACzD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;ACXJ,OAAA,MAAM,uBAAwB,yCAK3B,GAAG;;;;;;;;;yBAqBC,GAAG;qCATL,GAAG;CA2CP,CAAC;ACzDF,OAAA,MAAM,eAAgB,OAAO,GAAG,gBAgC/B,CAAC;AChCF,OAAA,MAAM,WAAY,OAAO,GAAG,gBAiB3B,CAAC;ACZF,OAAA,MAAM,YAAa,KAAK,EAAG,OAAO,IAAI,CAAC,MAAY,gBAAgB,KAAK,CAAC,CAAC,EAAE,iBAAiB,CAAC,gBAE7F,CAAC;AACF,OAAA,MAAM,YAAa,KAAK,EAAG,OAAO,IAAI,CAAC,MAAY,gBAAgB,KAAK,CAAC,CAAC,EAAE,iBAAiB,CAAC,gBAE7F,CAAC;AACF,OAAA,MAAM,gBAAiB,KAAK,EAAG,OAAO,IAAI,CAAC,MAAY,oBAAoB,KAAK,CAAC,CAAC,EAAE,iBAAiB,CAAC,gBAErG,CAAC","sources":["packages/date-components/src/src/Picker.tsx","packages/date-components/src/src/useFullCalendarProps.ts","packages/date-components/src/src/CalendarList.tsx","packages/date-components/src/src/DaysList.tsx","packages/date-components/src/src/index.tsx","packages/date-components/src/index.tsx"],"sourcesContent":[null,null,null,null,null,"/* eslint-disable react/react-in-jsx-scope */\n/* eslint-disable react/jsx-props-no-spreading */\n\n// Solves bug with Vite in dev mode. Can be removed when we upgrade to FullCalendar v6\n// See https://github.com/fullcalendar/fullcalendar-vue/issues/152\nimport '@fullcalendar/react/dist/vdom';\n\nimport { DatePicker, DatePickerProps } from '@mui/x-date-pickers/DatePicker';\nimport { TimePicker, TimePickerProps } from '@mui/x-date-pickers/TimePicker';\nimport { DateTimePicker, DateTimePickerProps } from '@mui/x-date-pickers/DateTimePicker';\nimport Picker, { Props as PickerProps } from './Picker';\n\nconst DateInput = <TDate,>(props: Omit<PickerProps<DatePickerProps<TDate>>, 'PickerComponent'>) => (\n <Picker PickerComponent={DatePicker} {...props} />\n);\nconst TimeInput = <TDate,>(props: Omit<PickerProps<TimePickerProps<TDate>>, 'PickerComponent'>) => (\n <Picker PickerComponent={TimePicker} {...props} />\n);\nconst DateTimeInput = <TDate,>(props: Omit<PickerProps<DateTimePickerProps<TDate>>, 'PickerComponent'>) => (\n <Picker PickerComponent={DateTimePicker} {...props} />\n);\n\nexport { DateInput, TimeInput, DateTimeInput };\n\nexport { default as CalendarList } from './CalendarList';\nexport { default as DaysList } from './DaysList';\nexport { default as useFullCalendarProps } from './useFullCalendarProps';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|