@elliemae/ds-date-time-picker 2.2.1 → 2.3.0-alpha.4
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/DSDateTimePicker.js +160 -181
- package/cjs/DSDateTimePicker.js.map +7 -0
- package/cjs/components/DateTimePickerImpl.js +187 -218
- package/cjs/components/DateTimePickerImpl.js.map +7 -0
- package/cjs/index.js +37 -10
- package/cjs/index.js.map +7 -0
- package/cjs/lang/english.js +39 -9
- package/cjs/lang/english.js.map +7 -0
- package/cjs/tests/utils.js +42 -0
- package/cjs/tests/utils.js.map +7 -0
- package/cjs/utils.js +42 -19
- package/cjs/utils.js.map +7 -0
- package/esm/DSDateTimePicker.js +77 -116
- package/esm/DSDateTimePicker.js.map +7 -0
- package/esm/components/DateTimePickerImpl.js +143 -194
- package/esm/components/DateTimePickerImpl.js.map +7 -0
- package/esm/index.js +8 -1
- package/esm/index.js.map +7 -0
- package/esm/lang/english.js +9 -6
- package/esm/lang/english.js.map +7 -0
- package/esm/tests/utils.js +13 -0
- package/esm/tests/utils.js.map +7 -0
- package/esm/utils.js +12 -10
- package/esm/utils.js.map +7 -0
- package/package.json +7 -7
- package/types/DSDateTimePicker.d.ts +1 -1
- package/types/components/DateTimePickerImpl.d.ts +1 -0
- package/types/index.d.ts +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var utils_exports = {};
|
|
29
|
+
__export(utils_exports, {
|
|
30
|
+
themeProviderHOC: () => themeProviderHOC
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_react = __toESM(require("react"));
|
|
34
|
+
var import_styled_components = require("styled-components");
|
|
35
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
36
|
+
const themeProviderHOC = (Component) => (props) => /* @__PURE__ */ import_react.default.createElement(import_styled_components.ThemeProvider, {
|
|
37
|
+
theme: import_ds_system.DSTheme
|
|
38
|
+
}, /* @__PURE__ */ import_react.default.createElement(Component, {
|
|
39
|
+
...props
|
|
40
|
+
}));
|
|
41
|
+
module.exports = __toCommonJS(utils_exports);
|
|
42
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/tests/utils.js", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { ThemeProvider } from 'styled-components';\nimport { DSTheme } from '@elliemae/ds-system';\n\nexport const themeProviderHOC = (Component) => (props) => (\n <ThemeProvider theme={DSTheme}>\n <Component {...props} />\n </ThemeProvider>\n);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAClB,+BAA8B;AAC9B,uBAAwB;AAEjB,MAAM,mBAAmB,CAAC,cAAc,CAAC,UAC9C,mDAAC,wCAAD;AAAA,EAAe,OAAO;AAAA,GACpB,mDAAC,WAAD;AAAA,KAAe;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/cjs/utils.js
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __reExport = (target, module2, copyDefault, desc) => {
|
|
13
|
+
if (module2 && typeof module2 === "object" || typeof module2 === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(module2))
|
|
15
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
16
|
+
__defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (module2, isNodeMode) => {
|
|
21
|
+
return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", !isNodeMode && module2 && module2.__esModule ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = /* @__PURE__ */ ((cache) => {
|
|
24
|
+
return (module2, temp) => {
|
|
25
|
+
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
26
|
+
};
|
|
27
|
+
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
28
|
+
var utils_exports = {};
|
|
29
|
+
__export(utils_exports, {
|
|
30
|
+
updateDateAndTime: () => updateDateAndTime
|
|
31
|
+
});
|
|
32
|
+
var React = __toESM(require("react"));
|
|
33
|
+
var import_moment = __toESM(require("moment"));
|
|
11
34
|
const updateDateAndTime = (date, time) => {
|
|
12
|
-
const splittedDate =
|
|
13
|
-
splittedDate.month(date
|
|
14
|
-
splittedDate.year(date
|
|
15
|
-
splittedDate.date(date
|
|
16
|
-
splittedDate.hour(time
|
|
17
|
-
splittedDate.minute(time
|
|
18
|
-
splittedDate.second(time
|
|
35
|
+
const splittedDate = (0, import_moment.default)();
|
|
36
|
+
splittedDate.month(date?.get("month"));
|
|
37
|
+
splittedDate.year(date?.get("year"));
|
|
38
|
+
splittedDate.date(date?.get("date"));
|
|
39
|
+
splittedDate.hour(time?.get("hour"));
|
|
40
|
+
splittedDate.minute(time?.get("minute"));
|
|
41
|
+
splittedDate.second(time?.get("second"));
|
|
19
42
|
return splittedDate;
|
|
20
43
|
};
|
|
21
|
-
|
|
22
|
-
|
|
44
|
+
module.exports = __toCommonJS(utils_exports);
|
|
45
|
+
//# sourceMappingURL=utils.js.map
|
package/cjs/utils.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/utils.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["import moment from 'moment';\n\nexport const updateDateAndTime = (date, time) => {\n const splittedDate = moment();\n splittedDate.month(date?.get('month'));\n splittedDate.year(date?.get('year'));\n splittedDate.date(date?.get('date'));\n splittedDate.hour(time?.get('hour'));\n splittedDate.minute(time?.get('minute'));\n splittedDate.second(time?.get('second'));\n\n return splittedDate;\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,oBAAmB;AAEZ,MAAM,oBAAoB,CAAC,MAAM,SAAS;AAC/C,QAAM,eAAe;AACrB,eAAa,MAAM,MAAM,IAAI;AAC7B,eAAa,KAAK,MAAM,IAAI;AAC5B,eAAa,KAAK,MAAM,IAAI;AAC5B,eAAa,KAAK,MAAM,IAAI;AAC5B,eAAa,OAAO,MAAM,IAAI;AAC9B,eAAa,OAAO,MAAM,IAAI;AAE9B,SAAO;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/esm/DSDateTimePicker.js
CHANGED
|
@@ -1,111 +1,78 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { PropTypes, describe } from 'react-desc';
|
|
10
|
-
import moment from 'moment';
|
|
11
|
-
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
|
12
|
-
import { SingleDatePickerPhrases } from '@elliemae/ds-date-picker';
|
|
13
|
-
import DSDateTimePickerImpl from './components/DateTimePickerImpl.js';
|
|
14
|
-
import english from './lang/english.js';
|
|
15
|
-
import { jsx } from 'react/jsx-runtime';
|
|
16
|
-
|
|
17
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
18
|
-
|
|
19
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import React2 from "react";
|
|
3
|
+
import { PropTypes, describe } from "react-desc";
|
|
4
|
+
import moment from "moment";
|
|
5
|
+
import { convertPropToCssClassName } from "@elliemae/ds-classnames";
|
|
6
|
+
import { SingleDatePickerPhrases } from "@elliemae/ds-date-picker";
|
|
7
|
+
import { DSDateTimePickerImpl } from "./components/DateTimePickerImpl";
|
|
8
|
+
import english from "./lang/english";
|
|
20
9
|
const {
|
|
21
10
|
placeholder: placeholderDefault,
|
|
22
11
|
className: classNameDefault,
|
|
23
12
|
id: idDefault
|
|
24
13
|
} = english;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
} = _ref;
|
|
66
|
-
const {
|
|
67
|
-
cssClassName
|
|
68
|
-
} = convertPropToCssClassName('datetimepicker', className, {
|
|
14
|
+
const DSDateTimePicker = ({
|
|
15
|
+
containerProps = {},
|
|
16
|
+
className = classNameDefault,
|
|
17
|
+
id = idDefault,
|
|
18
|
+
placeholder = placeholderDefault,
|
|
19
|
+
date,
|
|
20
|
+
clearable = false,
|
|
21
|
+
onBlur = () => null,
|
|
22
|
+
datePickerProps = {
|
|
23
|
+
disabled: false,
|
|
24
|
+
numberOfMonths: 1,
|
|
25
|
+
readOnly: false,
|
|
26
|
+
enableOutsideDays: false,
|
|
27
|
+
transitionDuration: 0,
|
|
28
|
+
firstDayOfWeek: 0,
|
|
29
|
+
keepOpenOnDateSelect: true,
|
|
30
|
+
hideKeyboardShortcutsPanel: true,
|
|
31
|
+
onPrevMonthClick: () => null,
|
|
32
|
+
onNextMonthClick: () => null,
|
|
33
|
+
onClose: () => null,
|
|
34
|
+
onchange: () => null,
|
|
35
|
+
onDateChange: () => null,
|
|
36
|
+
phrases: SingleDatePickerPhrases,
|
|
37
|
+
displayFormatDay: "D",
|
|
38
|
+
isDayBlocked: () => false,
|
|
39
|
+
isOutsideRange: () => false,
|
|
40
|
+
isDayHighlighted: () => false,
|
|
41
|
+
zIndex: 11
|
|
42
|
+
},
|
|
43
|
+
timePickerProps = {
|
|
44
|
+
format: "hh:mm A",
|
|
45
|
+
onChange: () => null,
|
|
46
|
+
disabledTimes: void 0,
|
|
47
|
+
minutesInterval: 1
|
|
48
|
+
},
|
|
49
|
+
dateInputProps = {
|
|
50
|
+
onDateInputDateChange: () => null
|
|
51
|
+
}
|
|
52
|
+
}) => {
|
|
53
|
+
const { cssClassName } = convertPropToCssClassName("datetimepicker", className, {
|
|
69
54
|
id
|
|
70
55
|
});
|
|
71
|
-
return
|
|
72
|
-
className: cssClassName
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
})
|
|
56
|
+
return /* @__PURE__ */ React2.createElement("div", {
|
|
57
|
+
className: cssClassName,
|
|
58
|
+
...containerProps
|
|
59
|
+
}, /* @__PURE__ */ React2.createElement(DSDateTimePickerImpl, {
|
|
60
|
+
clearable,
|
|
61
|
+
date,
|
|
62
|
+
datePickerProps,
|
|
63
|
+
onBlur,
|
|
64
|
+
placeholder,
|
|
65
|
+
timePickerProps,
|
|
66
|
+
dateInputProps
|
|
83
67
|
}));
|
|
84
68
|
};
|
|
85
|
-
|
|
86
69
|
const dateTimePickerProps = {
|
|
87
|
-
containerProps: PropTypes.object.description(
|
|
88
|
-
className: PropTypes.string.description(
|
|
89
|
-
id: PropTypes.string.description(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
*/
|
|
94
|
-
onBlur: PropTypes.func.description('on blur callback'),
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Initial date, by default current date
|
|
98
|
-
*/
|
|
99
|
-
date: PropTypes.instanceOf(Date, moment).description('Initial date, by default current date'),
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Flag to trigger onDateChange on error
|
|
103
|
-
*/
|
|
104
|
-
clearable: PropTypes.bool.description('Flag to trigger onDateChange on error'),
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* DatePicker properties
|
|
108
|
-
*/
|
|
70
|
+
containerProps: PropTypes.object.description("Set of Properties attached to the main container"),
|
|
71
|
+
className: PropTypes.string.description("html class attribute"),
|
|
72
|
+
id: PropTypes.string.description("components id"),
|
|
73
|
+
onBlur: PropTypes.func.description("on blur callback"),
|
|
74
|
+
date: PropTypes.instanceOf(Date, moment).description("Initial date, by default current date"),
|
|
75
|
+
clearable: PropTypes.bool.description("Flag to trigger onDateChange on error"),
|
|
109
76
|
datePickerProps: PropTypes.shape({
|
|
110
77
|
disabled: PropTypes.bool,
|
|
111
78
|
numberOfMonths: PropTypes.number,
|
|
@@ -148,35 +115,29 @@ const dateTimePickerProps = {
|
|
|
148
115
|
chooseAvailableEndDate: PropTypes.func,
|
|
149
116
|
dateIsUnavailable: PropTypes.func,
|
|
150
117
|
dateIsSelected: PropTypes.func,
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* ZIndex for the picker popup
|
|
154
|
-
*/
|
|
155
118
|
zIndex: PropTypes.number
|
|
156
119
|
}),
|
|
157
120
|
displayFormatDay: PropTypes.string,
|
|
158
121
|
isDayBlocked: PropTypes.func,
|
|
159
122
|
isOutsideRange: PropTypes.func,
|
|
160
123
|
isDayHighlighted: PropTypes.func
|
|
161
|
-
}).description(
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Input placeholder
|
|
165
|
-
*/
|
|
166
|
-
placeholder: PropTypes.string.description('Input placeholder'),
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* TimePicker properties
|
|
170
|
-
*/
|
|
124
|
+
}).description("DatePicker properties"),
|
|
125
|
+
placeholder: PropTypes.string.description("Input placeholder"),
|
|
171
126
|
timePickerProps: PropTypes.shape({
|
|
172
127
|
format: PropTypes.string,
|
|
173
128
|
onChange: PropTypes.func
|
|
174
|
-
}).description(
|
|
129
|
+
}).description("TimePicker properties"),
|
|
175
130
|
dateInputProps: PropTypes.shape({
|
|
176
131
|
onDateInputDateChange: PropTypes.func
|
|
177
|
-
}).description(
|
|
132
|
+
}).description("DateInputProperties")
|
|
178
133
|
};
|
|
134
|
+
DSDateTimePicker.propTypes = dateTimePickerProps;
|
|
179
135
|
const DateTimePickerWithSchema = describe(DSDateTimePicker);
|
|
180
136
|
DateTimePickerWithSchema.propTypes = dateTimePickerProps;
|
|
181
|
-
|
|
182
|
-
export {
|
|
137
|
+
var DSDateTimePicker_default = DSDateTimePicker;
|
|
138
|
+
export {
|
|
139
|
+
DSDateTimePicker,
|
|
140
|
+
DateTimePickerWithSchema,
|
|
141
|
+
DSDateTimePicker_default as default
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=DSDateTimePicker.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSDateTimePicker.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { PropTypes, describe } from 'react-desc';\nimport moment from 'moment';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport { SingleDatePickerPhrases } from '@elliemae/ds-date-picker';\nimport { DSDateTimePickerImpl } from './components/DateTimePickerImpl';\nimport english from './lang/english';\n\nconst {\n placeholder: placeholderDefault,\n className: classNameDefault,\n id: idDefault,\n} = english;\n\nconst DSDateTimePicker = ({\n containerProps = {},\n className = classNameDefault,\n id = idDefault,\n placeholder = placeholderDefault,\n date,\n clearable = false,\n onBlur = () => null,\n datePickerProps = {\n disabled: false,\n numberOfMonths: 1,\n readOnly: false,\n enableOutsideDays: false,\n transitionDuration: 0,\n firstDayOfWeek: 0,\n keepOpenOnDateSelect: true,\n hideKeyboardShortcutsPanel: true,\n onPrevMonthClick: () => null,\n onNextMonthClick: () => null,\n onClose: () => null,\n onchange: () => null,\n onDateChange: () => null,\n phrases: SingleDatePickerPhrases,\n displayFormatDay: 'D',\n isDayBlocked: () => false,\n isOutsideRange: () => false,\n isDayHighlighted: () => false,\n zIndex: 11,\n },\n timePickerProps = {\n format: 'hh:mm A',\n onChange: () => null,\n disabledTimes: undefined,\n minutesInterval: 1,\n },\n dateInputProps = {\n onDateInputDateChange: () => null,\n },\n}) => {\n const { cssClassName } = convertPropToCssClassName(\n 'datetimepicker',\n className,\n {\n id,\n },\n );\n return (\n <div className={cssClassName} {...containerProps}>\n <DSDateTimePickerImpl\n clearable={clearable}\n date={date}\n datePickerProps={datePickerProps}\n onBlur={onBlur}\n placeholder={placeholder}\n timePickerProps={timePickerProps}\n dateInputProps={dateInputProps}\n />\n </div>\n );\n};\n\nconst dateTimePickerProps = {\n containerProps: PropTypes.object.description(\n 'Set of Properties attached to the main container',\n ),\n className: PropTypes.string.description('html class attribute'),\n id: PropTypes.string.description('components id'),\n /**\n * on blur callback\n */\n onBlur: PropTypes.func.description('on blur callback'),\n /**\n * Initial date, by default current date\n */\n date: PropTypes.instanceOf(Date, moment).description(\n 'Initial date, by default current date',\n ),\n /**\n * Flag to trigger onDateChange on error\n */\n clearable: PropTypes.bool.description(\n 'Flag to trigger onDateChange on error',\n ),\n /**\n * DatePicker properties\n */\n datePickerProps: PropTypes.shape({\n disabled: PropTypes.bool,\n numberOfMonths: PropTypes.number,\n readOnly: PropTypes.bool,\n enableOutsideDays: PropTypes.bool,\n transitionDuration: PropTypes.number,\n firstDayOfWeek: PropTypes.number,\n keepOpenOnDateSelect: PropTypes.bool,\n hideKeyboardShortcutsPanel: PropTypes.bool,\n onPrevMonthClick: PropTypes.func,\n onNextMonthClick: PropTypes.func,\n onClose: PropTypes.func,\n onDateChange: PropTypes.func,\n phrases: PropTypes.shape({\n calendarLabel: PropTypes.string,\n closeDatePicker: PropTypes.string,\n clearDates: PropTypes.string,\n focusStartDate: PropTypes.string,\n jumpToPrevMonth: PropTypes.string,\n jumpToNextMonth: PropTypes.string,\n keyboardShortcuts: PropTypes.string,\n showKeyboardShortcutsPanel: PropTypes.string,\n hideKeyboardShortcutsPanel: PropTypes.string,\n openThisPanel: PropTypes.string,\n enterKey: PropTypes.string,\n leftArrowRightArrow: PropTypes.string,\n upArrowDownArrow: PropTypes.string,\n pageUpPageDown: PropTypes.string,\n homeEnd: PropTypes.string,\n escape: PropTypes.string,\n questionMark: PropTypes.string,\n selectFocusedDate: PropTypes.string,\n moveFocusByOneDay: PropTypes.string,\n moveFocusByOneWeek: PropTypes.string,\n moveFocusByOneMonth: PropTypes.string,\n moveFocustoStartAndEndOfWeek: PropTypes.string,\n returnFocusToInput: PropTypes.string,\n keyboardNavigationInstructions: PropTypes.string,\n chooseAvailableStartDate: PropTypes.func,\n chooseAvailableEndDate: PropTypes.func,\n dateIsUnavailable: PropTypes.func,\n dateIsSelected: PropTypes.func,\n /**\n * ZIndex for the picker popup\n */\n zIndex: PropTypes.number,\n }),\n displayFormatDay: PropTypes.string,\n isDayBlocked: PropTypes.func,\n isOutsideRange: PropTypes.func,\n isDayHighlighted: PropTypes.func,\n }).description('DatePicker properties'),\n /**\n * Input placeholder\n */\n placeholder: PropTypes.string.description('Input placeholder'),\n /**\n * TimePicker properties\n */\n timePickerProps: PropTypes.shape({\n format: PropTypes.string,\n onChange: PropTypes.func,\n }).description('TimePicker properties'),\n dateInputProps: PropTypes.shape({\n onDateInputDateChange: PropTypes.func,\n }).description('DateInputProperties'),\n};\n\nDSDateTimePicker.propTypes = dateTimePickerProps;\nconst DateTimePickerWithSchema = describe(DSDateTimePicker);\nDateTimePickerWithSchema.propTypes = dateTimePickerProps;\n\nexport { DateTimePickerWithSchema, DSDateTimePicker };\nexport default DSDateTimePicker;\n"],
|
|
5
|
+
"mappings": "AAAA;ACCA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,MAAM;AAAA,EACJ,aAAa;AAAA,EACb,WAAW;AAAA,EACX,IAAI;AAAA,IACF;AAEJ,MAAM,mBAAmB,CAAC;AAAA,EACxB,iBAAiB;AAAA,EACjB,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,cAAc;AAAA,EACd;AAAA,EACA,YAAY;AAAA,EACZ,SAAS,MAAM;AAAA,EACf,kBAAkB;AAAA,IAChB,UAAU;AAAA,IACV,gBAA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