1 | "use strict";
|
2 | var __assign = (this && this.__assign) || function () {
|
3 | __assign = Object.assign || function(t) {
|
4 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5 | s = arguments[i];
|
6 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7 | t[p] = s[p];
|
8 | }
|
9 | return t;
|
10 | };
|
11 | return __assign.apply(this, arguments);
|
12 | };
|
13 | var __importStar = (this && this.__importStar) || function (mod) {
|
14 | if (mod && mod.__esModule) return mod;
|
15 | var result = {};
|
16 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
17 | result["default"] = mod;
|
18 | return result;
|
19 | };
|
20 | Object.defineProperty(exports, "__esModule", { value: true });
|
21 | var PropTypes = __importStar(require("prop-types"));
|
22 | var date = PropTypes.oneOfType([
|
23 | PropTypes.object,
|
24 | PropTypes.string,
|
25 | PropTypes.number,
|
26 | PropTypes.instanceOf(Date),
|
27 | ]);
|
28 | var datePickerView = PropTypes.oneOf(['year', 'month', 'day']);
|
29 | exports.DomainPropTypes = { date: date, datePickerView: datePickerView };
|
30 |
|
31 | exports.timePickerDefaultProps = {
|
32 | ampm: true,
|
33 | invalidDateMessage: 'Invalid Time Format',
|
34 | };
|
35 | exports.datePickerDefaultProps = {
|
36 | minDate: new Date('1900-01-01'),
|
37 | maxDate: new Date('2100-01-01'),
|
38 | invalidDateMessage: 'Invalid Date Format',
|
39 | minDateMessage: 'Date should not be before minimal date',
|
40 | maxDateMessage: 'Date should not be after maximal date',
|
41 | allowKeyboardControl: true,
|
42 | };
|
43 | exports.dateTimePickerDefaultProps = __assign(__assign(__assign({}, exports.timePickerDefaultProps), exports.datePickerDefaultProps), { showTabs: true });
|