@zohodesk/components 1.2.49 → 1.2.50
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/.cli/propValidation_report.html +1 -1
- package/README.md +16 -1
- package/es/DateTime/CalendarView.js +8 -5
- package/es/DateTime/DateTime.js +18 -4
- package/es/DateTime/DateTime.module.css +5 -5
- package/es/DateTime/DateWidget.js +5 -1
- package/es/DateTime/DaysRow.js +3 -2
- package/es/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +7 -7
- package/es/DateTime/props/defaultProps.js +9 -3
- package/es/DateTime/props/propTypes.js +11 -4
- package/es/v1/DateTime/CalendarView.js +9 -6
- package/es/v1/DateTime/DateTime.js +18 -4
- package/es/v1/DateTime/DateWidget.js +5 -1
- package/es/v1/DateTime/DaysRow.js +3 -2
- package/es/v1/DateTime/props/defaultProps.js +9 -3
- package/es/v1/DateTime/props/propTypes.js +11 -4
- package/lib/DateTime/CalendarView.js +8 -5
- package/lib/DateTime/DateTime.js +27 -4
- package/lib/DateTime/DateTime.module.css +5 -5
- package/lib/DateTime/DateWidget.js +5 -1
- package/lib/DateTime/DaysRow.js +3 -2
- package/lib/DateTime/__tests__/__snapshots__/DateTime.spec.js.snap +7 -7
- package/lib/DateTime/props/defaultProps.js +9 -3
- package/lib/DateTime/props/propTypes.js +11 -4
- package/lib/v1/DateTime/CalendarView.js +9 -6
- package/lib/v1/DateTime/DateTime.js +27 -4
- package/lib/v1/DateTime/DateWidget.js +5 -1
- package/lib/v1/DateTime/DaysRow.js +3 -2
- package/lib/v1/DateTime/props/defaultProps.js +9 -3
- package/lib/v1/DateTime/props/propTypes.js +11 -4
- package/package.json +1 -1
- package/result.json +1 -1
package/lib/DateTime/DaysRow.js
CHANGED
|
@@ -57,7 +57,8 @@ var DaysRow = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
value: function render() {
|
|
58
58
|
var _this$props = this.props,
|
|
59
59
|
dayNames = _this$props.dayNames,
|
|
60
|
-
dayNamesShort = _this$props.dayNamesShort
|
|
60
|
+
dayNamesShort = _this$props.dayNamesShort,
|
|
61
|
+
holidays = _this$props.holidays;
|
|
61
62
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
62
63
|
alignBox: "row",
|
|
63
64
|
align: "center",
|
|
@@ -65,7 +66,7 @@ var DaysRow = /*#__PURE__*/function (_PureComponent) {
|
|
|
65
66
|
}, dayNames.map(function (dayName, index) {
|
|
66
67
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
67
68
|
key: dayName,
|
|
68
|
-
className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(index
|
|
69
|
+
className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(holidays.includes(index) ? _DateTimeModule["default"].holiday : ''),
|
|
69
70
|
"data-title": dayName,
|
|
70
71
|
"aria-label": dayName
|
|
71
72
|
}, dayNamesShort[index]);
|
|
@@ -96,7 +96,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
96
96
|
>
|
|
97
97
|
<div
|
|
98
98
|
aria-label="Sunday"
|
|
99
|
-
class="daysStr grid
|
|
99
|
+
class="daysStr grid holiday shrinkOff"
|
|
100
100
|
data-id="boxComponent"
|
|
101
101
|
data-selector-id="box"
|
|
102
102
|
data-test-id="boxComponent"
|
|
@@ -178,7 +178,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
178
178
|
>
|
|
179
179
|
<div
|
|
180
180
|
aria-label="25"
|
|
181
|
-
class="datesStr grid
|
|
181
|
+
class="datesStr grid holiday invalidDate shrinkOff"
|
|
182
182
|
data-id="dateTime_invalidDate"
|
|
183
183
|
data-selector-id="box"
|
|
184
184
|
data-test-id="dateTime_invalidDate"
|
|
@@ -248,7 +248,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
248
248
|
>
|
|
249
249
|
<div
|
|
250
250
|
aria-label="2"
|
|
251
|
-
class="datesStr grid
|
|
251
|
+
class="datesStr grid holiday shrinkOff"
|
|
252
252
|
data-id="dateTime_date"
|
|
253
253
|
data-selector-id="box"
|
|
254
254
|
data-test-id="dateTime_date"
|
|
@@ -318,7 +318,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
318
318
|
>
|
|
319
319
|
<div
|
|
320
320
|
aria-label="9"
|
|
321
|
-
class="datesStr grid
|
|
321
|
+
class="datesStr grid holiday shrinkOff"
|
|
322
322
|
data-id="dateTime_date"
|
|
323
323
|
data-selector-id="box"
|
|
324
324
|
data-test-id="dateTime_date"
|
|
@@ -388,7 +388,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
388
388
|
>
|
|
389
389
|
<div
|
|
390
390
|
aria-label="16"
|
|
391
|
-
class="datesStr grid
|
|
391
|
+
class="datesStr grid holiday shrinkOff"
|
|
392
392
|
data-id="dateTime_date"
|
|
393
393
|
data-selector-id="box"
|
|
394
394
|
data-test-id="dateTime_date"
|
|
@@ -458,7 +458,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
458
458
|
>
|
|
459
459
|
<div
|
|
460
460
|
aria-label="23"
|
|
461
|
-
class="datesStr grid
|
|
461
|
+
class="datesStr grid holiday shrinkOff"
|
|
462
462
|
data-id="dateTime_date"
|
|
463
463
|
data-selector-id="box"
|
|
464
464
|
data-test-id="dateTime_date"
|
|
@@ -528,7 +528,7 @@ exports[`DateTime rendering the isActive is true and isDefaultPosition is true 1
|
|
|
528
528
|
>
|
|
529
529
|
<div
|
|
530
530
|
aria-label="30"
|
|
531
|
-
class="datesStr grid
|
|
531
|
+
class="datesStr grid holiday shrinkOff"
|
|
532
532
|
data-id="dateTime_date"
|
|
533
533
|
data-selector-id="box"
|
|
534
534
|
data-test-id="dateTime_date"
|
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.YearView_defaultProps = exports.Time_defaultProps = exports.Span_defaultProps = exports.DateWidget_defaultProps = exports.DateTime_defaultProps = exports.DateTimePopupFooter_defaultProps = exports.CalendarView_defaultProps = void 0;
|
|
7
7
|
var CalendarView_defaultProps = {
|
|
8
8
|
dataId: 'dateContainer',
|
|
9
|
-
needBorder: true
|
|
9
|
+
needBorder: true,
|
|
10
|
+
weekStartDay: 0,
|
|
11
|
+
holidays: [0]
|
|
10
12
|
};
|
|
11
13
|
exports.CalendarView_defaultProps = CalendarView_defaultProps;
|
|
12
14
|
var Span_defaultProps = {
|
|
@@ -29,7 +31,9 @@ var DateTime_defaultProps = {
|
|
|
29
31
|
is24Hour: false,
|
|
30
32
|
isDefaultPosition: false,
|
|
31
33
|
customDateFormat: null,
|
|
32
|
-
customProps: {}
|
|
34
|
+
customProps: {},
|
|
35
|
+
weekStartDay: 0,
|
|
36
|
+
holidays: [0]
|
|
33
37
|
};
|
|
34
38
|
exports.DateTime_defaultProps = DateTime_defaultProps;
|
|
35
39
|
var DateWidget_defaultProps = {
|
|
@@ -53,7 +57,9 @@ var DateWidget_defaultProps = {
|
|
|
53
57
|
needErrorOnBlur: false,
|
|
54
58
|
isEditable: false,
|
|
55
59
|
iconOnHover: false,
|
|
56
|
-
is24Hour: false
|
|
60
|
+
is24Hour: false,
|
|
61
|
+
weekStartDay: 0,
|
|
62
|
+
holidays: [0]
|
|
57
63
|
};
|
|
58
64
|
exports.DateWidget_defaultProps = DateWidget_defaultProps;
|
|
59
65
|
var YearView_defaultProps = {
|
|
@@ -34,7 +34,9 @@ var CalendarView_propTypes = {
|
|
|
34
34
|
dayNamesShort: _propTypes["default"].array,
|
|
35
35
|
todayMonth: _propTypes["default"].string,
|
|
36
36
|
todayDate: _propTypes["default"].string,
|
|
37
|
-
todayYear: _propTypes["default"].string
|
|
37
|
+
todayYear: _propTypes["default"].string,
|
|
38
|
+
weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
39
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
38
40
|
};
|
|
39
41
|
exports.CalendarView_propTypes = CalendarView_propTypes;
|
|
40
42
|
var Span_propTypes = {
|
|
@@ -98,7 +100,9 @@ var DateTime_propTypes = {
|
|
|
98
100
|
targetOffset: _propTypes["default"].string,
|
|
99
101
|
isRestrictScroll: _propTypes["default"].bool,
|
|
100
102
|
dropBoxPortalId: _propTypes["default"].string,
|
|
101
|
-
customProps: _propTypes["default"].object
|
|
103
|
+
customProps: _propTypes["default"].object,
|
|
104
|
+
weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
105
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
102
106
|
};
|
|
103
107
|
exports.DateTime_propTypes = DateTime_propTypes;
|
|
104
108
|
var DateWidget_propTypes = {
|
|
@@ -168,7 +172,9 @@ var DateWidget_propTypes = {
|
|
|
168
172
|
dropBoxPortalId: _propTypes["default"].string,
|
|
169
173
|
a11y: _propTypes["default"].object,
|
|
170
174
|
getPopupProps: _propTypes["default"].func,
|
|
171
|
-
customProps: _propTypes["default"].object
|
|
175
|
+
customProps: _propTypes["default"].object,
|
|
176
|
+
weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
177
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
172
178
|
};
|
|
173
179
|
exports.DateWidget_propTypes = DateWidget_propTypes;
|
|
174
180
|
var YearView_propTypes = {
|
|
@@ -199,7 +205,8 @@ var DateTimePopupHeader_propTypes = {
|
|
|
199
205
|
exports.DateTimePopupHeader_propTypes = DateTimePopupHeader_propTypes;
|
|
200
206
|
var DaysRow_propTypes = {
|
|
201
207
|
dayNames: _propTypes["default"].array,
|
|
202
|
-
dayNamesShort: _propTypes["default"].object
|
|
208
|
+
dayNamesShort: _propTypes["default"].object,
|
|
209
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
203
210
|
};
|
|
204
211
|
exports.DaysRow_propTypes = DaysRow_propTypes;
|
|
205
212
|
var Time_propTypes = {
|
|
@@ -84,9 +84,11 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
84
84
|
todayDate = _this$props.todayDate,
|
|
85
85
|
todayYear = _this$props.todayYear,
|
|
86
86
|
startDate = _this$props.startDate,
|
|
87
|
-
endDate = _this$props.endDate
|
|
87
|
+
endDate = _this$props.endDate,
|
|
88
|
+
weekStartDay = _this$props.weekStartDay,
|
|
89
|
+
holidays = _this$props.holidays;
|
|
88
90
|
var userSeeDate = new Date(year, month, 1);
|
|
89
|
-
var userSeeDay = userSeeDate.getDay() + 1;
|
|
91
|
+
var userSeeDay = (userSeeDate.getDay() - weekStartDay + dayNames.length) % dayNames.length + 1;
|
|
90
92
|
var userSeeYear = userSeeDate.getFullYear();
|
|
91
93
|
var userSeeMonth = userSeeDate.getMonth();
|
|
92
94
|
var monthEnd = (0, _common.getMonthEnd)(month, year);
|
|
@@ -114,10 +116,10 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
114
116
|
var output = null;
|
|
115
117
|
|
|
116
118
|
for (var i = 1; i <= 7; i++) {
|
|
117
|
-
var tdclass = "".concat(_DateTimeModule["default"].datesStr, " ").concat(_DateTimeModule["default"].grid);
|
|
119
|
+
var tdclass = "".concat(_DateTimeModule["default"].datesStr, " ").concat(_DateTimeModule["default"].grid); // if (i === 1) {
|
|
118
120
|
|
|
119
|
-
if (i
|
|
120
|
-
tdclass += " ".concat(_DateTimeModule["default"].
|
|
121
|
+
if (holidays.includes(i - 1)) {
|
|
122
|
+
tdclass += " ".concat(_DateTimeModule["default"].holiday);
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
if (incremleti >= userSeeDay && incremday <= monthEnd) {
|
|
@@ -226,7 +228,8 @@ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
226
228
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_DaysRow["default"], {
|
|
227
229
|
dayNames: dayNames,
|
|
228
230
|
dayNamesShort: dayNamesShort,
|
|
229
|
-
ariaLabel: dayNamesShort
|
|
231
|
+
ariaLabel: dayNamesShort,
|
|
232
|
+
holidays: holidays
|
|
230
233
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
231
234
|
"data-id": "".concat(dataId, "_dateContainer"),
|
|
232
235
|
"data-test-id": "".concat(dataId, "_dateContainer"),
|
|
@@ -43,6 +43,14 @@ var _dateFormat = require("./../../DateTime/dateFormatUtils/dateFormat");
|
|
|
43
43
|
|
|
44
44
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
45
45
|
|
|
46
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
47
|
+
|
|
48
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
49
|
+
|
|
50
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
51
|
+
|
|
52
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
53
|
+
|
|
46
54
|
function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
|
|
47
55
|
|
|
48
56
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -728,7 +736,9 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
728
736
|
startDate = _this$props7.startDate,
|
|
729
737
|
endDate = _this$props7.endDate,
|
|
730
738
|
_this$props7$customPr = _this$props7.customProps,
|
|
731
|
-
customProps = _this$props7$customPr === void 0 ? {} : _this$props7$customPr
|
|
739
|
+
customProps = _this$props7$customPr === void 0 ? {} : _this$props7$customPr,
|
|
740
|
+
holidays = _this$props7.holidays,
|
|
741
|
+
weekStartDay = _this$props7.weekStartDay;
|
|
732
742
|
var _customProps$TimeProp = customProps.TimeProps,
|
|
733
743
|
TimeProps = _customProps$TimeProp === void 0 ? {} : _customProps$TimeProp;
|
|
734
744
|
var _i18nKeys$timeText = i18nKeys.timeText,
|
|
@@ -754,6 +764,17 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
754
764
|
_i18nKeys$dayNamesSho = i18nKeys.dayNamesShort,
|
|
755
765
|
dayNamesShort = _i18nKeys$dayNamesSho === void 0 ? _constants.dayNamesShortDefault : _i18nKeys$dayNamesSho;
|
|
756
766
|
var showmonthtxt = title(date, year, month, monthNames);
|
|
767
|
+
var customDayNames = dayNames,
|
|
768
|
+
customDayNamesShort = dayNamesShort,
|
|
769
|
+
customizedHolidays = holidays;
|
|
770
|
+
|
|
771
|
+
if (weekStartDay !== 0) {
|
|
772
|
+
customDayNames = [].concat(_toConsumableArray(dayNames.slice(weekStartDay)), _toConsumableArray(dayNames.slice(0, weekStartDay)));
|
|
773
|
+
customDayNamesShort = [].concat(_toConsumableArray(dayNamesShort.slice(weekStartDay)), _toConsumableArray(dayNamesShort.slice(0, weekStartDay)));
|
|
774
|
+
customizedHolidays = holidays.map(function (dayIndex) {
|
|
775
|
+
return customDayNames.indexOf(dayNames[dayIndex]);
|
|
776
|
+
});
|
|
777
|
+
}
|
|
757
778
|
|
|
758
779
|
var childEle = /*#__PURE__*/_react["default"].createElement("div", {
|
|
759
780
|
className: "".concat(_DateTimeModule["default"].container, " ").concat(innerClass),
|
|
@@ -776,13 +797,15 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
776
797
|
year: year,
|
|
777
798
|
month: month,
|
|
778
799
|
onSelect: this.dateSelect,
|
|
779
|
-
dayNames:
|
|
780
|
-
dayNamesShort:
|
|
800
|
+
dayNames: customDayNames,
|
|
801
|
+
dayNamesShort: customDayNamesShort,
|
|
781
802
|
todayDate: todayDate,
|
|
782
803
|
todayMonth: todayMonth,
|
|
783
804
|
todayYear: todayYear,
|
|
784
805
|
startDate: startDate,
|
|
785
|
-
endDate: endDate
|
|
806
|
+
endDate: endDate,
|
|
807
|
+
weekStartDay: weekStartDay,
|
|
808
|
+
holidays: customizedHolidays
|
|
786
809
|
}), isDateTimeField ? /*#__PURE__*/_react["default"].createElement(_Time["default"], {
|
|
787
810
|
timeText: timeText,
|
|
788
811
|
dataId: dataId,
|
|
@@ -1032,6 +1032,8 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1032
1032
|
onError = _this$props12.onError,
|
|
1033
1033
|
startDate = _this$props12.startDate,
|
|
1034
1034
|
endDate = _this$props12.endDate,
|
|
1035
|
+
weekStartDay = _this$props12.weekStartDay,
|
|
1036
|
+
holidays = _this$props12.holidays,
|
|
1035
1037
|
_this$props12$customP = _this$props12.customProps,
|
|
1036
1038
|
customProps = _this$props12$customP === void 0 ? {} : _this$props12$customP;
|
|
1037
1039
|
var _customProps$DateTime = customProps.DateTimeProps,
|
|
@@ -1131,7 +1133,9 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1131
1133
|
onError: onError,
|
|
1132
1134
|
startDate: startDate,
|
|
1133
1135
|
endDate: endDate,
|
|
1134
|
-
customProps: DateTimeProps
|
|
1136
|
+
customProps: DateTimeProps,
|
|
1137
|
+
weekStartDay: weekStartDay,
|
|
1138
|
+
holidays: holidays
|
|
1135
1139
|
}));
|
|
1136
1140
|
}
|
|
1137
1141
|
}]);
|
|
@@ -57,7 +57,8 @@ var DaysRow = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
57
|
value: function render() {
|
|
58
58
|
var _this$props = this.props,
|
|
59
59
|
dayNames = _this$props.dayNames,
|
|
60
|
-
dayNamesShort = _this$props.dayNamesShort
|
|
60
|
+
dayNamesShort = _this$props.dayNamesShort,
|
|
61
|
+
holidays = _this$props.holidays;
|
|
61
62
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
62
63
|
alignBox: "row",
|
|
63
64
|
align: "center",
|
|
@@ -65,7 +66,7 @@ var DaysRow = /*#__PURE__*/function (_PureComponent) {
|
|
|
65
66
|
}, dayNames.map(function (dayName, index) {
|
|
66
67
|
return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
67
68
|
key: dayName,
|
|
68
|
-
className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(index
|
|
69
|
+
className: "".concat(_DateTimeModule["default"].daysStr, " ").concat(_DateTimeModule["default"].grid, " ").concat(holidays.includes(index) ? _DateTimeModule["default"].holiday : ''),
|
|
69
70
|
"data-title": dayName,
|
|
70
71
|
"aria-label": dayName
|
|
71
72
|
}, dayNamesShort[index]);
|
|
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.YearView_defaultProps = exports.Time_defaultProps = exports.Span_defaultProps = exports.DateWidget_defaultProps = exports.DateTime_defaultProps = exports.DateTimePopupFooter_defaultProps = exports.CalendarView_defaultProps = void 0;
|
|
7
7
|
var CalendarView_defaultProps = {
|
|
8
8
|
dataId: 'dateContainer',
|
|
9
|
-
needBorder: true
|
|
9
|
+
needBorder: true,
|
|
10
|
+
weekStartDay: 0,
|
|
11
|
+
holidays: [0]
|
|
10
12
|
};
|
|
11
13
|
exports.CalendarView_defaultProps = CalendarView_defaultProps;
|
|
12
14
|
var Span_defaultProps = {
|
|
@@ -28,7 +30,9 @@ var DateTime_defaultProps = {
|
|
|
28
30
|
i18nKeys: {},
|
|
29
31
|
is24Hour: false,
|
|
30
32
|
isDefaultPosition: false,
|
|
31
|
-
customDateFormat: null
|
|
33
|
+
customDateFormat: null,
|
|
34
|
+
weekStartDay: 0,
|
|
35
|
+
holidays: [0]
|
|
32
36
|
};
|
|
33
37
|
exports.DateTime_defaultProps = DateTime_defaultProps;
|
|
34
38
|
var DateWidget_defaultProps = {
|
|
@@ -52,7 +56,9 @@ var DateWidget_defaultProps = {
|
|
|
52
56
|
needErrorOnBlur: false,
|
|
53
57
|
isEditable: false,
|
|
54
58
|
iconOnHover: false,
|
|
55
|
-
is24Hour: false
|
|
59
|
+
is24Hour: false,
|
|
60
|
+
weekStartDay: 0,
|
|
61
|
+
holidays: [0]
|
|
56
62
|
};
|
|
57
63
|
exports.DateWidget_defaultProps = DateWidget_defaultProps;
|
|
58
64
|
var YearView_defaultProps = {
|
|
@@ -36,7 +36,9 @@ var CalendarView_propTypes = {
|
|
|
36
36
|
todayDate: _propTypes["default"].string,
|
|
37
37
|
todayYear: _propTypes["default"].string,
|
|
38
38
|
startDate: _propTypes["default"].string,
|
|
39
|
-
endDate: _propTypes["default"].string
|
|
39
|
+
endDate: _propTypes["default"].string,
|
|
40
|
+
weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
41
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
40
42
|
};
|
|
41
43
|
exports.CalendarView_propTypes = CalendarView_propTypes;
|
|
42
44
|
var Span_propTypes = {
|
|
@@ -104,7 +106,9 @@ var DateTime_propTypes = {
|
|
|
104
106
|
dropBoxPortalId: _propTypes["default"].string,
|
|
105
107
|
startDate: _propTypes["default"].string,
|
|
106
108
|
endDate: _propTypes["default"].string,
|
|
107
|
-
customProps: _propTypes["default"].object
|
|
109
|
+
customProps: _propTypes["default"].object,
|
|
110
|
+
weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
111
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
108
112
|
};
|
|
109
113
|
exports.DateTime_propTypes = DateTime_propTypes;
|
|
110
114
|
var DateWidget_propTypes = {
|
|
@@ -176,7 +180,9 @@ var DateWidget_propTypes = {
|
|
|
176
180
|
startDate: _propTypes["default"].string,
|
|
177
181
|
endDate: _propTypes["default"].string,
|
|
178
182
|
getPopupProps: _propTypes["default"].func,
|
|
179
|
-
customProps: _propTypes["default"].object
|
|
183
|
+
customProps: _propTypes["default"].object,
|
|
184
|
+
weekStartDay: _propTypes["default"].oneOf([0, 1, 2, 3, 4, 5, 6]),
|
|
185
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
180
186
|
};
|
|
181
187
|
exports.DateWidget_propTypes = DateWidget_propTypes;
|
|
182
188
|
var YearView_propTypes = {
|
|
@@ -207,7 +213,8 @@ var DateTimePopupHeader_propTypes = {
|
|
|
207
213
|
exports.DateTimePopupHeader_propTypes = DateTimePopupHeader_propTypes;
|
|
208
214
|
var DaysRow_propTypes = {
|
|
209
215
|
dayNames: _propTypes["default"].array,
|
|
210
|
-
dayNamesShort: _propTypes["default"].object
|
|
216
|
+
dayNamesShort: _propTypes["default"].object,
|
|
217
|
+
holidays: _propTypes["default"].arrayOf(_propTypes["default"].number)
|
|
211
218
|
};
|
|
212
219
|
exports.DaysRow_propTypes = DaysRow_propTypes;
|
|
213
220
|
var Time_propTypes = {
|