@zohodesk/components 1.0.0-temp-110 → 1.0.0-temp-111

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.
Files changed (101) hide show
  1. package/README.md +15 -0
  2. package/es/DateTime/CalendarView.js +23 -11
  3. package/es/DateTime/DateTime.js +6 -4
  4. package/es/DateTime/DateTime.module.css +10 -8
  5. package/es/DateTime/DateWidget.js +18 -2
  6. package/es/DateTime/props/defaultProps.js +2 -1
  7. package/es/MultiSelect/MultiSelect.js +15 -7
  8. package/es/MultiSelect/MultiSelect.module.css +4 -0
  9. package/es/MultiSelect/props/defaultProps.js +2 -1
  10. package/es/MultiSelect/props/propTypes.js +2 -1
  11. package/es/Select/Select.js +13 -5
  12. package/es/Tab/Tab.js +1 -1
  13. package/es/Tab/Tabs.js +4 -3
  14. package/es/semantic/Button/Button.js +1 -0
  15. package/lib/Accordion/Accordion.js +3 -1
  16. package/lib/Accordion/AccordionItem.js +3 -1
  17. package/lib/Animation/Animation.js +3 -1
  18. package/lib/AppContainer/AppContainer.js +3 -1
  19. package/lib/Avatar/Avatar.js +3 -1
  20. package/lib/AvatarTeam/AvatarTeam.js +3 -1
  21. package/lib/Button/Button.js +3 -1
  22. package/lib/Buttongroup/Buttongroup.js +5 -2
  23. package/lib/Card/Card.js +3 -1
  24. package/lib/CheckBox/CheckBox.js +3 -1
  25. package/lib/DateTime/CalendarView.js +28 -13
  26. package/lib/DateTime/DateTime.js +10 -6
  27. package/lib/DateTime/DateTime.module.css +10 -8
  28. package/lib/DateTime/DateTimePopupFooter.js +3 -1
  29. package/lib/DateTime/DateTimePopupHeader.js +3 -1
  30. package/lib/DateTime/DateWidget.js +108 -89
  31. package/lib/DateTime/DaysRow.js +3 -1
  32. package/lib/DateTime/Time.js +3 -1
  33. package/lib/DateTime/YearView.js +3 -1
  34. package/lib/DateTime/dateFormatUtils/timeChange.js +1 -1
  35. package/lib/DateTime/props/defaultProps.js +2 -1
  36. package/lib/DropBox/DropBox.js +3 -1
  37. package/lib/DropDown/DropDown.js +5 -2
  38. package/lib/DropDown/DropDownHeading.js +3 -1
  39. package/lib/DropDown/DropDownItem.js +3 -1
  40. package/lib/DropDown/DropDownSearch.js +5 -2
  41. package/lib/DropDown/DropDownSeparator.js +3 -1
  42. package/lib/DropDown/props/propTypes.js +4 -1
  43. package/lib/Heading/Heading.js +4 -2
  44. package/lib/Label/Label.js +3 -1
  45. package/lib/ListItem/ListItem.js +3 -1
  46. package/lib/ListItem/ListItemWithAvatar.js +3 -1
  47. package/lib/ListItem/ListItemWithCheckBox.js +3 -1
  48. package/lib/ListItem/ListItemWithIcon.js +3 -1
  49. package/lib/ListItem/ListItemWithRadio.js +3 -1
  50. package/lib/ListItem/props/propTypes.js +4 -1
  51. package/lib/Modal/Modal.js +3 -1
  52. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +5 -3
  53. package/lib/MultiSelect/AdvancedMultiSelect.js +3 -1
  54. package/lib/MultiSelect/EmptyState.js +3 -1
  55. package/lib/MultiSelect/MultiSelect.js +17 -9
  56. package/lib/MultiSelect/MultiSelect.module.css +4 -0
  57. package/lib/MultiSelect/MultiSelectHeader.js +3 -1
  58. package/lib/MultiSelect/MultiSelectWithAvatar.js +3 -1
  59. package/lib/MultiSelect/SelectedOptions.js +5 -2
  60. package/lib/MultiSelect/Suggestions.js +4 -2
  61. package/lib/MultiSelect/props/defaultProps.js +2 -1
  62. package/lib/MultiSelect/props/propTypes.js +2 -1
  63. package/lib/PopOver/PopOver.js +3 -1
  64. package/lib/Popup/Popup.js +3 -1
  65. package/lib/Popup/__tests__/Popup.spec.js +3 -1
  66. package/lib/Provider/LibraryContext.js +4 -2
  67. package/lib/Radio/Radio.js +3 -1
  68. package/lib/Responsive/CustomResponsive.js +5 -3
  69. package/lib/Responsive/RefWrapper.js +4 -2
  70. package/lib/Responsive/ResizeComponent.js +3 -1
  71. package/lib/Responsive/ResizeObserver.js +4 -1
  72. package/lib/Responsive/Responsive.js +5 -3
  73. package/lib/Responsive/sizeObservers.js +4 -2
  74. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +3 -1
  75. package/lib/Ribbon/Ribbon.js +3 -1
  76. package/lib/Select/GroupSelect.js +4 -2
  77. package/lib/Select/Select.js +14 -6
  78. package/lib/Select/SelectWithAvatar.js +3 -1
  79. package/lib/Select/SelectWithIcon.js +3 -1
  80. package/lib/Select/__tests__/Select.spec.js +1 -1
  81. package/lib/Select/props/defaultProps.js +4 -1
  82. package/lib/Stencils/Stencils.js +3 -1
  83. package/lib/Switch/Switch.js +3 -1
  84. package/lib/Tab/Tab.js +1 -1
  85. package/lib/Tab/TabWrapper.js +1 -1
  86. package/lib/Tab/Tabs.js +8 -5
  87. package/lib/Tag/Tag.js +3 -1
  88. package/lib/TextBox/TextBox.js +3 -1
  89. package/lib/TextBox/props/propTypes.js +4 -1
  90. package/lib/TextBoxIcon/TextBoxIcon.js +5 -2
  91. package/lib/Textarea/Textarea.js +3 -1
  92. package/lib/Tooltip/Tooltip.js +3 -1
  93. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -1
  94. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -1
  95. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -2
  96. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -1
  97. package/lib/semantic/Button/Button.js +4 -1
  98. package/lib/utils/constructFullName.js +1 -1
  99. package/lib/utils/dropDownUtils.js +4 -2
  100. package/package.json +9 -4
  101. package/css_error.log +0 -0
@@ -14,8 +14,10 @@ var _common = require("../utils/datetime/common");
14
14
  var _DaysRow = _interopRequireDefault(require("./DaysRow"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
21
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -23,7 +25,8 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===
23
25
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
24
26
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
25
27
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
26
- /* eslint css-modules/no-unused-class: [0, { markAsUsed: ['container', 'header', 'thArrowConatainer', 'thArrow', 'thMonYear', 'days', 'daysStr', 'timesection', 'timeStr', 'dropDownContainer', 'dropDown', 'footer', 'space'] }] */var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
28
+ /* eslint css-modules/no-unused-class: [0, { markAsUsed: ['container', 'header', 'thArrowConatainer', 'thArrow', 'thMonYear', 'days', 'daysStr', 'timesection', 'timeStr', 'dropDownContainer', 'dropDown', 'footer', 'space'] }] */
29
+ var CalendarView = /*#__PURE__*/function (_React$PureComponent) {
27
30
  _inherits(CalendarView, _React$PureComponent);
28
31
  var _super = _createSuper(CalendarView);
29
32
  function CalendarView(props) {
@@ -87,10 +90,11 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
87
90
  tdclass += " ".concat(_DateTimeModule["default"].sunday);
88
91
  }
89
92
  if (incremleti >= userSeeDay && incremday <= monthEnd) {
90
- if (incremday === parseInt(date) && parseInt(month) === userSeeMonth && parseInt(year) === userSeeYear) {
93
+ if (parseInt(date) === incremday && parseInt(month) === userSeeMonth && parseInt(year) === userSeeYear) {
91
94
  isSelectedDay = true;
92
95
  } else if (todayDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear) {
93
96
  isToday = true;
97
+ isSelectedDay = false;
94
98
  } else {
95
99
  isSelectedDay = false;
96
100
  isToday = false;
@@ -116,17 +120,22 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
116
120
  }
117
121
  var prevMonthEnd = (0, _common.getMonthEnd)(prevMonth, prevYear);
118
122
  var prevDate = prevMonthEnd - (userSeeDay - 1) + incremleti;
119
- isSelectedDay = prevDate === parseInt(date) && parseInt(month) === prevMonth && parseInt(year) === prevYear ? true : false;
123
+
124
+ // isSelectedDay =
125
+ prevDate === parseInt(date) && parseInt(month) === prevMonth && parseInt(year) === prevYear ? true : false;
126
+ // isToday = prevDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
127
+
120
128
  output = /*#__PURE__*/_react["default"].createElement(Span, {
121
- i: i,
122
- isActive: isSelectedDay,
129
+ i: i
130
+ //isActive={isSelectedDay}
131
+ ,
123
132
  tdclass: "".concat(tdclass, " ").concat(_DateTimeModule["default"].invalidDate),
124
133
  handleSelect: _this2.handleSelect,
125
134
  incremday: prevDate,
126
135
  userSeeMonth: prevMonth,
127
136
  userSeeYear: prevYear,
128
- dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate"),
129
- isToday: isToday
137
+ dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate")
138
+ // isToday={isToday}
130
139
  });
131
140
  } else if (incremleti > monthEnd) {
132
141
  var nextMonth = userSeeMonth + 1;
@@ -136,17 +145,23 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
136
145
  nextYear = userSeeYear + 1;
137
146
  }
138
147
  var nextDate = incremleti - (userSeeDay - 1) - monthEnd;
139
- isSelectedDay = nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false;
148
+
149
+ // isSelectedDay =
150
+ nextDate === parseInt(date) && parseInt(month) === nextMonth && parseInt(year) === nextYear ? true : false;
151
+
152
+ // isToday = nextDate === incremday && todayMonth === userSeeMonth && todayYear === userSeeYear ? true : false;
153
+
140
154
  output = /*#__PURE__*/_react["default"].createElement(Span, {
141
- i: i,
142
- isActive: isSelectedDay,
155
+ i: i
156
+ // isActive={isSelectedDay}
157
+ ,
143
158
  tdclass: "".concat(tdclass, " ").concat(_DateTimeModule["default"].invalidDate),
144
159
  handleSelect: _this2.handleSelect,
145
160
  incremday: nextDate,
146
161
  userSeeMonth: nextMonth,
147
162
  userSeeYear: nextYear,
148
- dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate"),
149
- isToday: isToday
163
+ dataId: isSelectedDay ? "".concat(dataId, "_dateSelected") : "".concat(dataId, "_invalidDate")
164
+ //isToday={isToday}
150
165
  });
151
166
  } else {
152
167
  output = /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
@@ -23,15 +23,18 @@ var _CustomResponsive = require("../Responsive/CustomResponsive");
23
23
  var _Layout = require("../Layout");
24
24
  var _dateFormatUtils = require("./dateFormatUtils");
25
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
26
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
26
27
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
28
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
28
29
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
29
30
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
30
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
31
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
31
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
33
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
34
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
34
35
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
36
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
37
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
35
38
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
39
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
40
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -167,7 +170,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
167
170
  defaultHour = parseInt(defaultHour);
168
171
  defaultMin = parseInt(defaultMin);
169
172
  }
170
- var dateObj = isDateTimeField ? _datetimejs["default"].toDate(_datetimejs["default"].tz.utcToTz(value, timeZone)) : value ? _datetimejs["default"].toDate(value) : new Date();
173
+ var dateObj = isDateTimeField ? _datetimejs["default"].toDate(_datetimejs["default"].tz.utcToTz(value, timeZone)) : value ? _datetimejs["default"].toDate(value) : todayObj;
171
174
  date = dateObj.getDate();
172
175
  month = dateObj.getMonth();
173
176
  year = dateObj.getFullYear();
@@ -658,7 +661,8 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
658
661
  positionsOffset = _this$props7.positionsOffset,
659
662
  targetOffset = _this$props7.targetOffset,
660
663
  isRestrictScroll = _this$props7.isRestrictScroll,
661
- dropBoxPortalId = _this$props7.dropBoxPortalId;
664
+ dropBoxPortalId = _this$props7.dropBoxPortalId,
665
+ dropBoxProps = _this$props7.dropBoxProps;
662
666
  var _i18nKeys$timeText = i18nKeys.timeText,
663
667
  timeText = _i18nKeys$timeText === void 0 ? 'Time' : _i18nKeys$timeText,
664
668
  _i18nKeys$submitText = i18nKeys.submitText,
@@ -748,7 +752,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
748
752
  responsiveId: "Helmet"
749
753
  }, function (_ref4) {
750
754
  var tabletMode = _ref4.tabletMode;
751
- return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
755
+ return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], _extends({
752
756
  size: boxSize,
753
757
  boxPosition: position,
754
758
  isActive: isActive,
@@ -768,7 +772,7 @@ var DateTime = /*#__PURE__*/function (_React$PureComponent) {
768
772
  targetOffset: targetOffset,
769
773
  isRestrictScroll: isRestrictScroll,
770
774
  portalId: dropBoxPortalId
771
- }, /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, childEle));
775
+ }, dropBoxProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, null, childEle));
772
776
  }) : null;
773
777
  }
774
778
  }]);
@@ -124,6 +124,16 @@
124
124
  color: var(--zdt_datetime_invaliddate_text);
125
125
  }
126
126
 
127
+ .today {
128
+ border: 1px solid var(--zdt_datetime_today_border);
129
+ border-radius: 50%;
130
+ }
131
+
132
+ .today:hover {
133
+ border: 1px solid var(--zdt_datetime_today_border);
134
+ background-color: var(--zdt_datetime_datestr_hover_bg);
135
+ }
136
+
127
137
  .active,
128
138
  .active:hover,
129
139
  .active.today,
@@ -136,15 +146,7 @@
136
146
  border-radius: 50%;
137
147
  }
138
148
 
139
- .today {
140
- border: 1px solid var(--zdt_datetime_today_border);
141
- border-radius: 50%;
142
- }
143
149
 
144
- .today:hover {
145
- border: 1px solid var(--zdt_datetime_today_border);
146
- background-color: var(--zdt_datetime_datestr_hover_bg);
147
- }
148
150
 
149
151
  .timesection {
150
152
  padding-top: var(--zd_size5);
@@ -13,8 +13,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
20
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
19
21
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -14,8 +14,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
14
14
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
15
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
16
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
17
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
18
18
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
20
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
19
21
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
20
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
23
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -27,8 +27,10 @@ var _Common = require("../utils/Common");
27
27
  var _constants = require("./constants");
28
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
29
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
30
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
30
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
31
31
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
32
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
33
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
32
34
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
33
35
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
34
36
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -64,6 +66,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
64
66
  _this.handleDateIconClick = _this.handleDateIconClick.bind(_assertThisInitialized(_this));
65
67
  _this.handleSelectionRangeDetails = _this.handleSelectionRangeDetails.bind(_assertThisInitialized(_this));
66
68
  _this.handleBlurSelectionRange = _this.handleBlurSelectionRange.bind(_assertThisInitialized(_this));
69
+ _this.handleExposePopupHandlers = _this.handleExposePopupHandlers.bind(_assertThisInitialized(_this));
67
70
  _this.state = {
68
71
  selected: '',
69
72
  displayText: '',
@@ -103,6 +106,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
103
106
  selected: newSelected
104
107
  });
105
108
  this.handleSelectionRangeDetails(this.props);
109
+ this.handleExposePopupHandlers();
106
110
  }
107
111
  }, {
108
112
  key: "componentDidUpdate",
@@ -221,15 +225,28 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
221
225
  }
222
226
  }
223
227
  }, {
224
- key: "handleTogglePopup",
225
- value: function handleTogglePopup(e, isOpenOnly) {
228
+ key: "handleExposePopupHandlers",
229
+ value: function handleExposePopupHandlers() {
226
230
  var _this$props3 = this.props,
231
+ removeClose = _this$props3.removeClose,
227
232
  togglePopup = _this$props3.togglePopup,
228
- _this$props3$defaultP = _this$props3.defaultPosition,
229
- defaultPosition = _this$props3$defaultP === void 0 ? 'bottom' : _this$props3$defaultP,
230
- openPopupOnly = _this$props3.openPopupOnly,
231
- isPopupOpen = _this$props3.isPopupOpen,
232
- removeClose = _this$props3.removeClose;
233
+ getPopupHandlers = _this$props3.getPopupHandlers;
234
+ var methods = {
235
+ removeClose: removeClose,
236
+ togglePopup: this.handleTogglePopup
237
+ };
238
+ getPopupHandlers && getPopupHandlers(methods);
239
+ }
240
+ }, {
241
+ key: "handleTogglePopup",
242
+ value: function handleTogglePopup(e, isOpenOnly) {
243
+ var _this$props4 = this.props,
244
+ togglePopup = _this$props4.togglePopup,
245
+ _this$props4$defaultP = _this$props4.defaultPosition,
246
+ defaultPosition = _this$props4$defaultP === void 0 ? 'bottom' : _this$props4$defaultP,
247
+ openPopupOnly = _this$props4.openPopupOnly,
248
+ isPopupOpen = _this$props4.isPopupOpen,
249
+ removeClose = _this$props4.removeClose;
233
250
  if (isOpenOnly) {
234
251
  if (!isPopupOpen) {
235
252
  togglePopup(e, "".concat(defaultPosition, "Right"));
@@ -321,12 +338,12 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
321
338
  key: "handleKeyDown",
322
339
  value: function handleKeyDown(e) {
323
340
  var keyCode = e.keyCode;
324
- var _this$props4 = this.props,
325
- isPopupOpen = _this$props4.isPopupOpen,
326
- isPopupOpenOnEnter = _this$props4.isPopupOpenOnEnter,
327
- onKeyDown = _this$props4.onKeyDown,
328
- closePopupOnly = _this$props4.closePopupOnly,
329
- cantEditOnPopupOpen = _this$props4.cantEditOnPopupOpen;
341
+ var _this$props5 = this.props,
342
+ isPopupOpen = _this$props5.isPopupOpen,
343
+ isPopupOpenOnEnter = _this$props5.isPopupOpenOnEnter,
344
+ onKeyDown = _this$props5.onKeyDown,
345
+ closePopupOnly = _this$props5.closePopupOnly,
346
+ cantEditOnPopupOpen = _this$props5.cantEditOnPopupOpen;
330
347
  var isAllowedDateType = this.handleGetAllowedType();
331
348
  if (isPopupOpen) {
332
349
  if (keyCode === 9 && !isAllowedDateType) {
@@ -423,19 +440,19 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
423
440
  if ((0, _dateFormatUtils.getIsSupportedKey)(e)) {
424
441
  e.preventDefault();
425
442
  }
426
- var _this$props5 = this.props,
427
- isDateTime = _this$props5.isDateTime,
428
- timeZone = _this$props5.timeZone,
429
- value = _this$props5.value,
430
- onSelect = _this$props5.onSelect,
431
- id = _this$props5.id,
432
- min = _this$props5.min,
433
- max = _this$props5.max,
434
- minErrorText = _this$props5.minErrorText,
435
- maxErrorText = _this$props5.maxErrorText,
436
- onError = _this$props5.onError,
437
- closePopupOnly = _this$props5.closePopupOnly,
438
- is24Hour = _this$props5.is24Hour;
443
+ var _this$props6 = this.props,
444
+ isDateTime = _this$props6.isDateTime,
445
+ timeZone = _this$props6.timeZone,
446
+ value = _this$props6.value,
447
+ onSelect = _this$props6.onSelect,
448
+ id = _this$props6.id,
449
+ min = _this$props6.min,
450
+ max = _this$props6.max,
451
+ minErrorText = _this$props6.minErrorText,
452
+ maxErrorText = _this$props6.maxErrorText,
453
+ onError = _this$props6.onError,
454
+ closePopupOnly = _this$props6.closePopupOnly,
455
+ is24Hour = _this$props6.is24Hour;
439
456
  var _this$state3 = this.state,
440
457
  dateFormatSelection = _this$state3.dateFormatSelection,
441
458
  day = _this$state3.day,
@@ -694,17 +711,17 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
694
711
  if (!isAllowedDateType) {
695
712
  this.handleTogglePopup(e);
696
713
  } else {
697
- var _this$props6 = this.props,
698
- isPopupOpenOnClick = _this$props6.isPopupOpenOnClick,
699
- isReadOnly = _this$props6.isReadOnly,
700
- isDisabled = _this$props6.isDisabled;
714
+ var _this$props7 = this.props,
715
+ isPopupOpenOnClick = _this$props7.isPopupOpenOnClick,
716
+ isReadOnly = _this$props7.isReadOnly,
717
+ isDisabled = _this$props7.isDisabled;
701
718
  if (isPopupOpenOnClick && (!isReadOnly || !isDisabled)) {
702
719
  this.handleTogglePopup(e, true);
703
720
  }
704
- var _this$props7 = this.props,
705
- isPopupCloseOnClick = _this$props7.isPopupCloseOnClick,
706
- isPopupOpen = _this$props7.isPopupOpen,
707
- closePopupOnly = _this$props7.closePopupOnly;
721
+ var _this$props8 = this.props,
722
+ isPopupCloseOnClick = _this$props8.isPopupCloseOnClick,
723
+ isPopupOpen = _this$props8.isPopupOpen,
724
+ closePopupOnly = _this$props8.closePopupOnly;
708
725
  if (isPopupCloseOnClick && !isPopupOpen) {
709
726
  closePopupOnly && closePopupOnly(e);
710
727
  }
@@ -731,12 +748,12 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
731
748
  isDateEdited = _this$state4.isDateEdited,
732
749
  isFocused = _this$state4.isFocused,
733
750
  selected = _this$state4.selected;
734
- var _this$props8 = this.props,
735
- isDateTime = _this$props8.isDateTime,
736
- is24Hour = _this$props8.is24Hour,
737
- isPopupReady = _this$props8.isPopupReady,
738
- timeZone = _this$props8.timeZone,
739
- isPopupOpen = _this$props8.isPopupOpen;
751
+ var _this$props9 = this.props,
752
+ isDateTime = _this$props9.isDateTime,
753
+ is24Hour = _this$props9.is24Hour,
754
+ isPopupReady = _this$props9.isPopupReady,
755
+ timeZone = _this$props9.timeZone,
756
+ isPopupOpen = _this$props9.isPopupOpen;
740
757
  if (isDateEdited || isFocused || isPopupReady || isPopupOpen) {
741
758
  var _getDateDetails2 = (0, _dateFormat.getDateDetails)(selected, {
742
759
  day: day,
@@ -783,10 +800,10 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
783
800
  }, {
784
801
  key: "handleGetAllowedType",
785
802
  value: function handleGetAllowedType() {
786
- var _this$props9 = this.props,
787
- isReadOnly = _this$props9.isReadOnly,
788
- isDisabled = _this$props9.isDisabled,
789
- isEditable = _this$props9.isEditable;
803
+ var _this$props10 = this.props,
804
+ isReadOnly = _this$props10.isReadOnly,
805
+ isDisabled = _this$props10.isDisabled,
806
+ isEditable = _this$props10.isEditable;
790
807
  if (isEditable) {
791
808
  if (isReadOnly || isDisabled) {
792
809
  return false;
@@ -798,10 +815,10 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
798
815
  }, {
799
816
  key: "handleDateClear",
800
817
  value: function handleDateClear() {
801
- var _this$props10 = this.props,
802
- id = _this$props10.id,
803
- onSelect = _this$props10.onSelect,
804
- value = _this$props10.value;
818
+ var _this$props11 = this.props,
819
+ id = _this$props11.id,
820
+ onSelect = _this$props11.onSelect,
821
+ value = _this$props11.value;
805
822
  this.setState({
806
823
  day: '',
807
824
  month: '',
@@ -869,44 +886,45 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
869
886
  }, {
870
887
  key: "render",
871
888
  value: function render() {
872
- var _this$props11 = this.props,
873
- removeClose = _this$props11.removeClose,
874
- minErrorText = _this$props11.minErrorText,
875
- maxErrorText = _this$props11.maxErrorText,
876
- min = _this$props11.min,
877
- max = _this$props11.max,
878
- placeholder = _this$props11.placeholder,
879
- isPopupOpen = _this$props11.isPopupOpen,
880
- isPopupReady = _this$props11.isPopupReady,
881
- isDateTime = _this$props11.isDateTime,
882
- position = _this$props11.position,
883
- textBoxVariant = _this$props11.textBoxVariant,
884
- textBoxSize = _this$props11.textBoxSize,
885
- _this$props11$childre = _this$props11.children,
886
- children = _this$props11$childre === void 0 ? null : _this$props11$childre,
887
- isDisabled = _this$props11.isDisabled,
888
- getContainerRef = _this$props11.getContainerRef,
889
- getTargetRef = _this$props11.getTargetRef,
890
- timeZone = _this$props11.timeZone,
891
- isReadOnly = _this$props11.isReadOnly,
892
- dataId = _this$props11.dataId,
893
- needResponsive = _this$props11.needResponsive,
894
- className = _this$props11.className,
895
- needBorder = _this$props11.needBorder,
896
- defaultTime = _this$props11.defaultTime,
897
- needDefaultTime = _this$props11.needDefaultTime,
898
- borderColor = _this$props11.borderColor,
899
- i18nKeys = _this$props11.i18nKeys,
900
- needErrorOnBlur = _this$props11.needErrorOnBlur,
901
- htmlId = _this$props11.htmlId,
902
- iconOnHover = _this$props11.iconOnHover,
903
- is24Hour = _this$props11.is24Hour,
904
- isAbsolutePositioningNeeded = _this$props11.isAbsolutePositioningNeeded,
905
- positionsOffset = _this$props11.positionsOffset,
906
- targetOffset = _this$props11.targetOffset,
907
- isRestrictScroll = _this$props11.isRestrictScroll,
908
- dropBoxPortalId = _this$props11.dropBoxPortalId,
909
- a11y = _this$props11.a11y;
889
+ var _this$props12 = this.props,
890
+ removeClose = _this$props12.removeClose,
891
+ minErrorText = _this$props12.minErrorText,
892
+ maxErrorText = _this$props12.maxErrorText,
893
+ min = _this$props12.min,
894
+ max = _this$props12.max,
895
+ placeholder = _this$props12.placeholder,
896
+ isPopupOpen = _this$props12.isPopupOpen,
897
+ isPopupReady = _this$props12.isPopupReady,
898
+ isDateTime = _this$props12.isDateTime,
899
+ position = _this$props12.position,
900
+ textBoxVariant = _this$props12.textBoxVariant,
901
+ textBoxSize = _this$props12.textBoxSize,
902
+ _this$props12$childre = _this$props12.children,
903
+ children = _this$props12$childre === void 0 ? null : _this$props12$childre,
904
+ isDisabled = _this$props12.isDisabled,
905
+ getContainerRef = _this$props12.getContainerRef,
906
+ getTargetRef = _this$props12.getTargetRef,
907
+ timeZone = _this$props12.timeZone,
908
+ isReadOnly = _this$props12.isReadOnly,
909
+ dataId = _this$props12.dataId,
910
+ needResponsive = _this$props12.needResponsive,
911
+ className = _this$props12.className,
912
+ needBorder = _this$props12.needBorder,
913
+ defaultTime = _this$props12.defaultTime,
914
+ needDefaultTime = _this$props12.needDefaultTime,
915
+ borderColor = _this$props12.borderColor,
916
+ i18nKeys = _this$props12.i18nKeys,
917
+ needErrorOnBlur = _this$props12.needErrorOnBlur,
918
+ htmlId = _this$props12.htmlId,
919
+ iconOnHover = _this$props12.iconOnHover,
920
+ is24Hour = _this$props12.is24Hour,
921
+ isAbsolutePositioningNeeded = _this$props12.isAbsolutePositioningNeeded,
922
+ positionsOffset = _this$props12.positionsOffset,
923
+ targetOffset = _this$props12.targetOffset,
924
+ isRestrictScroll = _this$props12.isRestrictScroll,
925
+ dropBoxPortalId = _this$props12.dropBoxPortalId,
926
+ highlightPosition = _this$props12.highlightPosition,
927
+ a11y = _this$props12.a11y;
910
928
  var _this$state5 = this.state,
911
929
  _this$state5$selected = _this$state5.selected,
912
930
  value = _this$state5$selected === void 0 ? '' : _this$state5$selected,
@@ -918,7 +936,7 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
918
936
  var showClear = !(isDisabled || isReadOnly) && (isDateEdited || value) ? true : false;
919
937
  var showError = needErrorOnBlur ? isError && !isFocused && !isPopupOpen : isError;
920
938
  return /*#__PURE__*/_react["default"].createElement("div", {
921
- className: "".concat(_DateWidgetModule["default"].container)
939
+ className: "".concat(!highlightPosition ? _DateWidgetModule["default"].container : '')
922
940
  }, children ? /*#__PURE__*/_react["default"].createElement("div", {
923
941
  "data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : "".concat(dataId, "_widget")),
924
942
  onClick: isDisabled || isReadOnly ? null : this.handleTogglePopup,
@@ -991,7 +1009,8 @@ var DateWidgetComponent = /*#__PURE__*/function (_React$Component) {
991
1009
  positionsOffset: positionsOffset,
992
1010
  targetOffset: targetOffset,
993
1011
  isRestrictScroll: isRestrictScroll,
994
- dropBoxPortalId: dropBoxPortalId
1012
+ dropBoxPortalId: dropBoxPortalId,
1013
+ isPadding: highlightPosition ? true : false
995
1014
  }));
996
1015
  }
997
1016
  }]);
@@ -12,8 +12,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
12
12
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
15
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
16
16
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
18
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
19
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18
20
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -13,8 +13,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
13
13
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
17
17
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
20
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
19
21
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -16,8 +16,10 @@ var _YearViewModule = _interopRequireDefault(require("./YearView.module.css"));
16
16
  var _dateFormatUtils = require("./dateFormatUtils");
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
18
18
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
19
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
20
20
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
21
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
22
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
21
23
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
22
24
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
25
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -12,7 +12,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
12
12
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
13
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
14
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
15
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
15
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
16
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  function getChangedHour(values, event, focusOrders, keyActions) {
18
18
  var _ref = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {},
@@ -51,7 +51,8 @@ var DateWidget_defaultProps = {
51
51
  needErrorOnBlur: false,
52
52
  isEditable: false,
53
53
  iconOnHover: false,
54
- is24Hour: false
54
+ is24Hour: false,
55
+ highlightPosition: false
55
56
  };
56
57
  exports.DateWidget_defaultProps = DateWidget_defaultProps;
57
58
  var YearView_defaultProps = {