@zohodesk/components 1.0.0-alpha-257 → 1.0.0-alpha-258

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 (208) hide show
  1. package/README.md +5 -0
  2. package/css_error.log +0 -0
  3. package/es/Accordion/Accordion.js +6 -2
  4. package/es/Accordion/AccordionItem.js +3 -1
  5. package/es/Accordion/props/defaultProps.js +6 -2
  6. package/es/Accordion/props/propTypes.js +3 -0
  7. package/es/AppContainer/AppContainer.js +4 -1
  8. package/es/AppContainer/props/defaultProps.js +2 -1
  9. package/es/AppContainer/props/propTypes.js +1 -0
  10. package/es/Avatar/Avatar.js +6 -2
  11. package/es/Avatar/props/defaultProps.js +2 -1
  12. package/es/Avatar/props/propTypes.js +1 -0
  13. package/es/AvatarTeam/AvatarTeam.js +3 -1
  14. package/es/AvatarTeam/props/defaultProps.js +1 -0
  15. package/es/AvatarTeam/props/propTypes.js +1 -0
  16. package/es/Button/Button.js +3 -1
  17. package/es/Button/props/defaultProps.js +1 -0
  18. package/es/Button/props/propTypes.js +1 -0
  19. package/es/Buttongroup/Buttongroup.js +6 -2
  20. package/es/Buttongroup/props/defaultProps.js +3 -1
  21. package/es/Buttongroup/props/propTypes.js +3 -1
  22. package/es/Card/Card.js +19 -10
  23. package/es/Card/props/defaultProps.js +12 -1
  24. package/es/CheckBox/CheckBox.js +3 -2
  25. package/es/CheckBox/props/propTypes.js +1 -0
  26. package/es/DropBox/DropBox.js +5 -1
  27. package/es/DropBox/props/defaultProps.js +1 -0
  28. package/es/DropBox/props/propTypes.js +1 -0
  29. package/es/DropDown/DropDownHeading.js +6 -2
  30. package/es/DropDown/props/defaultProps.js +3 -1
  31. package/es/Label/Label.js +2 -0
  32. package/es/Label/props/defaultProps.js +2 -1
  33. package/es/Label/props/propTypes.js +1 -0
  34. package/es/Layout/Box.js +2 -1
  35. package/es/Layout/Container.js +2 -1
  36. package/es/Layout/props/defaultProps.js +4 -2
  37. package/es/Layout/props/propTypes.js +2 -0
  38. package/es/ListItem/ListContainer.js +2 -0
  39. package/es/ListItem/ListItem.js +4 -1
  40. package/es/ListItem/ListItemWithAvatar.js +4 -1
  41. package/es/ListItem/ListItemWithCheckBox.js +2 -0
  42. package/es/ListItem/ListItemWithIcon.js +4 -1
  43. package/es/ListItem/ListItemWithRadio.js +2 -0
  44. package/es/ListItem/props/defaultProps.js +12 -6
  45. package/es/ListItem/props/propTypes.js +6 -0
  46. package/es/MultiSelect/AdvancedGroupMultiSelect.js +3 -1
  47. package/es/MultiSelect/AdvancedMultiSelect.js +4 -2
  48. package/es/MultiSelect/MultiSelect.js +3 -1
  49. package/es/MultiSelect/MultiSelectWithAvatar.js +3 -1
  50. package/es/MultiSelect/props/defaultProps.js +8 -4
  51. package/es/MultiSelect/props/propTypes.js +8 -4
  52. package/es/Ribbon/Ribbon.js +4 -2
  53. package/es/Ribbon/props/defaultProps.js +2 -1
  54. package/es/Ribbon/props/propTypes.js +2 -1
  55. package/es/Select/GroupSelect.js +4 -2
  56. package/es/Select/Select.js +4 -2
  57. package/es/Select/SelectWithAvatar.js +4 -2
  58. package/es/Select/SelectWithIcon.js +4 -2
  59. package/es/Select/props/defaultProps.js +4 -0
  60. package/es/Select/props/propTypes.js +8 -4
  61. package/es/Switch/Switch.js +3 -1
  62. package/es/Switch/props/defaultProps.js +2 -1
  63. package/es/Switch/props/propTypes.js +1 -0
  64. package/es/Tab/Tab.js +3 -1
  65. package/es/Tab/TabContent.js +4 -2
  66. package/es/Tab/TabContentWrapper.js +4 -2
  67. package/es/Tab/TabWrapper.js +4 -2
  68. package/es/Tab/Tabs.js +8 -4
  69. package/es/Tab/props/defaultProps.js +10 -5
  70. package/es/Tab/props/propTypes.js +10 -5
  71. package/es/Tag/Tag.js +3 -1
  72. package/es/Tag/props/defaultProps.js +2 -1
  73. package/es/Tag/props/propTypes.js +2 -1
  74. package/es/TextBox/TextBox.js +3 -1
  75. package/es/TextBox/props/defaultProps.js +2 -1
  76. package/es/TextBox/props/propTypes.js +2 -1
  77. package/es/TextBoxIcon/TextBoxIcon.js +2 -0
  78. package/es/TextBoxIcon/props/defaultProps.js +2 -1
  79. package/es/TextBoxIcon/props/propTypes.js +1 -0
  80. package/es/Textarea/Textarea.js +3 -1
  81. package/es/Textarea/props/defaultProps.js +2 -1
  82. package/es/Textarea/props/propTypes.js +1 -0
  83. package/lib/Accordion/Accordion.js +9 -3
  84. package/lib/Accordion/AccordionItem.js +6 -2
  85. package/lib/Accordion/props/defaultProps.js +6 -2
  86. package/lib/Accordion/props/propTypes.js +3 -0
  87. package/lib/Animation/Animation.js +3 -1
  88. package/lib/AppContainer/AppContainer.js +7 -2
  89. package/lib/AppContainer/props/defaultProps.js +2 -1
  90. package/lib/AppContainer/props/propTypes.js +1 -0
  91. package/lib/Avatar/Avatar.js +10 -4
  92. package/lib/Avatar/props/defaultProps.js +2 -1
  93. package/lib/Avatar/props/propTypes.js +1 -0
  94. package/lib/AvatarTeam/AvatarTeam.js +6 -2
  95. package/lib/AvatarTeam/props/defaultProps.js +1 -0
  96. package/lib/AvatarTeam/props/propTypes.js +1 -0
  97. package/lib/Button/Button.js +6 -2
  98. package/lib/Button/props/defaultProps.js +1 -0
  99. package/lib/Button/props/propTypes.js +1 -0
  100. package/lib/Buttongroup/Buttongroup.js +11 -4
  101. package/lib/Buttongroup/props/defaultProps.js +3 -1
  102. package/lib/Buttongroup/props/propTypes.js +3 -1
  103. package/lib/Card/Card.js +21 -14
  104. package/lib/Card/props/defaultProps.js +16 -3
  105. package/lib/CheckBox/CheckBox.js +6 -3
  106. package/lib/CheckBox/props/propTypes.js +1 -0
  107. package/lib/DateTime/CalendarView.js +5 -2
  108. package/lib/DateTime/DateTime.js +5 -3
  109. package/lib/DateTime/DateTimePopupFooter.js +3 -1
  110. package/lib/DateTime/DateTimePopupHeader.js +3 -1
  111. package/lib/DateTime/DateWidget.js +3 -1
  112. package/lib/DateTime/DaysRow.js +3 -1
  113. package/lib/DateTime/Time.js +3 -1
  114. package/lib/DateTime/YearView.js +3 -1
  115. package/lib/DateTime/dateFormatUtils/timeChange.js +2 -2
  116. package/lib/DateTime/validator.js +3 -3
  117. package/lib/DropBox/DropBox.js +8 -2
  118. package/lib/DropBox/props/defaultProps.js +1 -0
  119. package/lib/DropBox/props/propTypes.js +1 -0
  120. package/lib/DropDown/DropDown.js +5 -2
  121. package/lib/DropDown/DropDownHeading.js +9 -3
  122. package/lib/DropDown/DropDownItem.js +3 -1
  123. package/lib/DropDown/DropDownSearch.js +5 -2
  124. package/lib/DropDown/DropDownSeparator.js +3 -1
  125. package/lib/DropDown/props/defaultProps.js +3 -1
  126. package/lib/DropDown/props/propTypes.js +4 -1
  127. package/lib/Heading/Heading.js +4 -2
  128. package/lib/Label/Label.js +5 -1
  129. package/lib/Label/props/defaultProps.js +2 -1
  130. package/lib/Label/props/propTypes.js +1 -0
  131. package/lib/Layout/Box.js +2 -1
  132. package/lib/Layout/Container.js +2 -1
  133. package/lib/Layout/props/defaultProps.js +4 -2
  134. package/lib/Layout/props/propTypes.js +2 -0
  135. package/lib/ListItem/ListContainer.js +2 -0
  136. package/lib/ListItem/ListItem.js +7 -2
  137. package/lib/ListItem/ListItemWithAvatar.js +7 -2
  138. package/lib/ListItem/ListItemWithCheckBox.js +5 -1
  139. package/lib/ListItem/ListItemWithIcon.js +7 -2
  140. package/lib/ListItem/ListItemWithRadio.js +5 -1
  141. package/lib/ListItem/props/defaultProps.js +12 -6
  142. package/lib/ListItem/props/propTypes.js +10 -2
  143. package/lib/Modal/Modal.js +3 -1
  144. package/lib/MultiSelect/AdvancedGroupMultiSelect.js +9 -5
  145. package/lib/MultiSelect/AdvancedMultiSelect.js +8 -4
  146. package/lib/MultiSelect/EmptyState.js +3 -1
  147. package/lib/MultiSelect/MultiSelect.js +8 -4
  148. package/lib/MultiSelect/MultiSelectHeader.js +3 -1
  149. package/lib/MultiSelect/MultiSelectWithAvatar.js +6 -2
  150. package/lib/MultiSelect/SelectedOptions.js +5 -2
  151. package/lib/MultiSelect/Suggestions.js +4 -2
  152. package/lib/MultiSelect/props/defaultProps.js +8 -4
  153. package/lib/MultiSelect/props/propTypes.js +8 -4
  154. package/lib/PopOver/PopOver.js +3 -1
  155. package/lib/Popup/Popup.js +4 -2
  156. package/lib/Popup/__tests__/Popup.spec.js +3 -1
  157. package/lib/Provider/LibraryContext.js +5 -3
  158. package/lib/Provider/NumberGenerator/NumberGenerator.js +1 -1
  159. package/lib/Radio/Radio.js +3 -1
  160. package/lib/Responsive/CustomResponsive.js +6 -4
  161. package/lib/Responsive/RefWrapper.js +4 -2
  162. package/lib/Responsive/ResizeComponent.js +9 -4
  163. package/lib/Responsive/ResizeObserver.js +4 -1
  164. package/lib/Responsive/Responsive.js +6 -4
  165. package/lib/Responsive/sizeObservers.js +4 -2
  166. package/lib/ResponsiveDropBox/ResponsiveDropBox.js +3 -1
  167. package/lib/Ribbon/Ribbon.js +7 -3
  168. package/lib/Ribbon/props/defaultProps.js +2 -1
  169. package/lib/Ribbon/props/propTypes.js +2 -1
  170. package/lib/Select/GroupSelect.js +9 -5
  171. package/lib/Select/Select.js +7 -3
  172. package/lib/Select/SelectWithAvatar.js +7 -3
  173. package/lib/Select/SelectWithIcon.js +7 -3
  174. package/lib/Select/__tests__/Select.spec.js +2 -2
  175. package/lib/Select/props/defaultProps.js +8 -2
  176. package/lib/Select/props/propTypes.js +8 -4
  177. package/lib/Stencils/Stencils.js +3 -1
  178. package/lib/Switch/Switch.js +6 -2
  179. package/lib/Switch/props/defaultProps.js +2 -1
  180. package/lib/Switch/props/propTypes.js +1 -0
  181. package/lib/Tab/Tab.js +3 -1
  182. package/lib/Tab/TabContent.js +4 -2
  183. package/lib/Tab/TabContentWrapper.js +4 -2
  184. package/lib/Tab/TabWrapper.js +6 -4
  185. package/lib/Tab/Tabs.js +12 -6
  186. package/lib/Tab/props/defaultProps.js +10 -5
  187. package/lib/Tab/props/propTypes.js +10 -5
  188. package/lib/Tag/Tag.js +6 -2
  189. package/lib/Tag/props/defaultProps.js +2 -1
  190. package/lib/Tag/props/propTypes.js +2 -1
  191. package/lib/TextBox/TextBox.js +6 -2
  192. package/lib/TextBox/props/defaultProps.js +2 -1
  193. package/lib/TextBox/props/propTypes.js +5 -2
  194. package/lib/TextBoxIcon/TextBoxIcon.js +7 -2
  195. package/lib/TextBoxIcon/props/defaultProps.js +2 -1
  196. package/lib/TextBoxIcon/props/propTypes.js +1 -0
  197. package/lib/Textarea/Textarea.js +6 -2
  198. package/lib/Textarea/props/defaultProps.js +2 -1
  199. package/lib/Textarea/props/propTypes.js +1 -0
  200. package/lib/Tooltip/Tooltip.js +3 -1
  201. package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -1
  202. package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -1
  203. package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -2
  204. package/lib/deprecated/PortalLayer/PortalLayer.js +3 -1
  205. package/lib/semantic/Button/Button.js +3 -1
  206. package/lib/utils/constructFullName.js +2 -2
  207. package/lib/utils/dropDownUtils.js +5 -3
  208. package/package.json +3 -3
@@ -11,8 +11,10 @@ var _propTypes = require("./props/propTypes");
11
11
  var _ButtongroupModule = _interopRequireDefault(require("./Buttongroup.module.css"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
- 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); } }
14
+ 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); } }
15
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ 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); }
16
18
  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); }
17
19
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
20
  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); }; }
@@ -21,7 +23,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
21
23
  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; } }
22
24
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
23
25
  /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['footer','header',
24
- 'tab','alignleft','alignright','aligncenter' ] }] */var Buttongroup = /*#__PURE__*/function (_React$Component) {
26
+ 'tab','alignleft','alignright','aligncenter' ] }] */
27
+ var Buttongroup = /*#__PURE__*/function (_React$Component) {
25
28
  _inherits(Buttongroup, _React$Component);
26
29
  var _super = _createSuper(Buttongroup);
27
30
  function Buttongroup() {
@@ -35,7 +38,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
35
38
  children = _this$props.children,
36
39
  type = _this$props.type,
37
40
  buttonPosition = _this$props.buttonPosition,
38
- customClass = _this$props.customClass;
41
+ customClass = _this$props.customClass,
42
+ dataId = _this$props.dataId,
43
+ dataSelectorId = _this$props.dataSelectorId;
39
44
  var btnGroup = [];
40
45
  children.forEach(function (child) {
41
46
  var btnRight = /*#__PURE__*/_react["default"].createElement("span", {
@@ -44,7 +49,9 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
44
49
  btnGroup.push(btnRight);
45
50
  });
46
51
  return /*#__PURE__*/_react["default"].createElement("div", {
47
- className: "".concat(_ButtongroupModule["default"].buttonGroup, " ").concat(_ButtongroupModule["default"][type], " ").concat(customClass ? customClass : '')
52
+ className: "".concat(_ButtongroupModule["default"].buttonGroup, " ").concat(_ButtongroupModule["default"][type], " ").concat(customClass ? customClass : ''),
53
+ "data-id": dataId,
54
+ "data-selector-id": dataSelectorId
48
55
  }, /*#__PURE__*/_react["default"].createElement("div", {
49
56
  className: _ButtongroupModule["default"]["align".concat(buttonPosition)]
50
57
  }, children));
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.defaultProps = void 0;
7
7
  var defaultProps = {
8
8
  buttonPosition: 'left',
9
- children: null
9
+ children: null,
10
+ dataId: 'ButtonGroup',
11
+ dataSelectorId: 'buttonGroup'
10
12
  };
11
13
  exports.defaultProps = defaultProps;
@@ -10,6 +10,8 @@ var propTypes = {
10
10
  buttonPosition: _propTypes["default"].oneOf(['left', 'right', 'center']),
11
11
  children: _propTypes["default"].node,
12
12
  type: _propTypes["default"].string.isRequired,
13
- customClass: _propTypes["default"].string
13
+ customClass: _propTypes["default"].string,
14
+ dataId: _propTypes["default"].string,
15
+ dataSelectorId: _propTypes["default"].string
14
16
  };
15
17
  exports.propTypes = propTypes;
package/lib/Card/Card.js CHANGED
@@ -15,8 +15,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
15
15
  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); }
16
16
  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; }
17
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
- 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); } }
18
+ 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); } }
19
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
+ 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); }
20
22
  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); }
21
23
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
24
  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); }; }
@@ -60,14 +62,14 @@ var CardHeader = /*#__PURE__*/function (_Component) {
60
62
  var _this$props = this.props,
61
63
  isScroll = _this$props.isScroll,
62
64
  children = _this$props.children,
63
- _this$props$dataId = _this$props.dataId,
64
- dataId = _this$props$dataId === void 0 ? 'CardHeader' : _this$props$dataId,
65
- _this$props$customCla = _this$props.customClass,
66
- customClass = _this$props$customCla === void 0 ? '' : _this$props$customCla;
65
+ dataId = _this$props.dataId,
66
+ dataSelectorId = _this$props.dataSelectorId,
67
+ customClass = _this$props.customClass;
67
68
  return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
68
69
  className: "".concat(isScroll ? _CardModule["default"].scroll : _CardModule["default"].notScroll, " ").concat(customClass),
69
70
  eleRef: this.getCardHeaderDom,
70
- dataId: dataId
71
+ dataId: dataId,
72
+ dataSelectorId: dataSelectorId
71
73
  }, children);
72
74
  }
73
75
  }]);
@@ -75,6 +77,7 @@ var CardHeader = /*#__PURE__*/function (_Component) {
75
77
  }(_react.Component);
76
78
  exports.CardHeader = CardHeader;
77
79
  CardHeader.propTypes = _propTypes.CardHeader_propTypes;
80
+ CardHeader.defaultProps = _defaultProps.CardHeader_defaultProps;
78
81
  var CardContent = /*#__PURE__*/function (_Component2) {
79
82
  _inherits(CardContent, _Component2);
80
83
  var _super2 = _createSuper(CardContent);
@@ -92,6 +95,7 @@ var CardContent = /*#__PURE__*/function (_Component2) {
92
95
  scroll = _this$props2.scroll,
93
96
  isScrollAttribute = _this$props2.isScrollAttribute,
94
97
  dataId = _this$props2.dataId,
98
+ dataSelectorId = _this$props2.dataSelectorId,
95
99
  shrink = _this$props2.shrink,
96
100
  customClass = _this$props2.customClass,
97
101
  preventParentScroll = _this$props2.preventParentScroll;
@@ -104,7 +108,8 @@ var CardContent = /*#__PURE__*/function (_Component2) {
104
108
  isScrollAttribute: isScrollAttribute,
105
109
  dataId: dataId,
106
110
  shrink: shrink,
107
- className: customClass
111
+ className: customClass,
112
+ dataSelectorId: dataSelectorId
108
113
  }, children);
109
114
  }
110
115
  }]);
@@ -253,7 +258,8 @@ var Card = /*#__PURE__*/function (_Component3) {
253
258
  isScrollAttribute: child.props.isScrollAttribute,
254
259
  dataId: child.props.dataId,
255
260
  shrink: child.props.shrink,
256
- className: child.props.customClass
261
+ className: child.props.customClass,
262
+ dataSelectorId: child.props.dataSelectorId
257
263
  }, child.props.children);
258
264
  }
259
265
  return child;
@@ -286,17 +292,18 @@ var CardFooter = /*#__PURE__*/function (_Component4) {
286
292
  value: function render() {
287
293
  var _this$props5 = this.props,
288
294
  children = _this$props5.children,
289
- _this$props5$dataId = _this$props5.dataId,
290
- dataId = _this$props5$dataId === void 0 ? 'CardFooter' : _this$props5$dataId,
291
- _this$props5$customCl = _this$props5.customClass,
292
- customClass = _this$props5$customCl === void 0 ? '' : _this$props5$customCl;
295
+ dataId = _this$props5.dataId,
296
+ customClass = _this$props5.customClass,
297
+ dataSelectorId = _this$props5.dataSelectorId;
293
298
  return /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
294
299
  className: "".concat(customClass),
295
- dataId: dataId
300
+ dataId: dataId,
301
+ dataSelectorId: dataSelectorId
296
302
  }, children);
297
303
  }
298
304
  }]);
299
305
  return CardFooter;
300
306
  }(_react.Component);
301
307
  exports.CardFooter = CardFooter;
302
- CardFooter.propTypes = _propTypes.CardFooter_propTypes;
308
+ CardFooter.propTypes = _propTypes.CardFooter_propTypes;
309
+ CardFooter.defaultProps = _defaultProps.CardFooter_defaultProps;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Card_defaultProps = exports.CardContent_defaultProps = void 0;
6
+ exports.Card_defaultProps = exports.CardHeader_defaultProps = exports.CardFooter_defaultProps = exports.CardContent_defaultProps = void 0;
7
7
  var Card_defaultProps = {
8
8
  isScrollAttribute: false,
9
9
  // isScrollShadow: true,
@@ -13,10 +13,23 @@ var Card_defaultProps = {
13
13
  isPercentageScroll: false
14
14
  };
15
15
  exports.Card_defaultProps = Card_defaultProps;
16
+ var CardHeader_defaultProps = {
17
+ dataId: 'CardHeader',
18
+ customClass: '',
19
+ dataSelectorId: 'cardHeader'
20
+ };
21
+ exports.CardHeader_defaultProps = CardHeader_defaultProps;
16
22
  var CardContent_defaultProps = {
17
23
  isScrollAttribute: false,
18
24
  scroll: 'vertical',
19
25
  dataId: 'CardContent',
20
- customClass: ''
26
+ customClass: '',
27
+ dataSelectorId: 'cardContent'
28
+ };
29
+ exports.CardContent_defaultProps = CardContent_defaultProps;
30
+ var CardFooter_defaultProps = {
31
+ dataId: 'CardFooter',
32
+ customClass: '',
33
+ dataSelectorId: 'cardFooter'
21
34
  };
22
- exports.CardContent_defaultProps = CardContent_defaultProps;
35
+ exports.CardFooter_defaultProps = CardFooter_defaultProps;
@@ -15,8 +15,10 @@ var _CheckBoxModule = _interopRequireDefault(require("./CheckBox.module.css"));
15
15
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  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); }
17
17
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
18
- 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); } }
18
+ 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); } }
19
19
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
20
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
21
+ 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); }
20
22
  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); }
21
23
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
22
24
  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); }; }
@@ -67,7 +69,8 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
67
69
  activeStyle = _this$props2.activeStyle,
68
70
  a11y = _this$props2.a11y,
69
71
  customClass = _this$props2.customClass,
70
- customProps = _this$props2.customProps;
72
+ customProps = _this$props2.customProps,
73
+ dataSelectorId = _this$props2.dataSelectorId;
71
74
  var _customProps$CheckBox = customProps.CheckBoxProps,
72
75
  CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
73
76
  _customProps$LabelPro = customProps.LabelProps,
@@ -104,7 +107,7 @@ var CheckBox = /*#__PURE__*/function (_React$Component) {
104
107
  "aria-label": ariaLabel,
105
108
  "aria-labelledby": ariaLabelledby,
106
109
  "aria-hidden": ariaHidden,
107
- "data-selector": id
110
+ "data-selector-id": dataSelectorId || id
108
111
  }, CheckBoxProps), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
109
112
  className: "".concat(_CheckBoxModule["default"].boxContainer, " ").concat(_CheckBoxModule["default"][size], " ").concat(customCBoxSize, " ").concat(isFilled ? _CheckBoxModule["default"].filled : '')
110
113
  }, /*#__PURE__*/_react["default"].createElement("input", {
@@ -13,6 +13,7 @@ var propTypes = {
13
13
  ariaLabelledby: _propTypes["default"].string,
14
14
  checked: _propTypes["default"].bool,
15
15
  dataId: _propTypes["default"].string,
16
+ dataSelectorId: _propTypes["default"].string,
16
17
  disabled: _propTypes["default"].bool,
17
18
  disabledTitle: _propTypes["default"].string,
18
19
  getRef: _propTypes["default"].func,
@@ -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) {
@@ -26,12 +26,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
26
26
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
27
  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
28
  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
- 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; }
29
+ 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 = 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
31
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
32
32
  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); } }
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, _toPropertyKey(descriptor.key), descriptor); } }
34
34
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
35
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
36
+ 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
37
  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
38
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
39
  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); }; }
@@ -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); }; }
@@ -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); }; }
@@ -11,8 +11,8 @@ var _Common = require("../../utils/Common");
11
11
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
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
- 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; }
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 = 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] : {},
@@ -12,7 +12,7 @@ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread n
12
12
  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); }
13
13
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
14
14
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
15
- 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 _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; }
16
16
  var validator = {
17
17
  combinePropsValidation: function combinePropsValidation(currentProps, type, validateOn, validationObj, defaultCheckPropsRules, defaultValidateRules) {
18
18
  var newType = type.toLowerCase();
@@ -81,7 +81,7 @@ var validator = {
81
81
  },
82
82
  composeRulesForValidation: function composeRulesForValidation(type, defaultValidateRules, newValidationRules) {
83
83
  var defaultPatterns = validator.regexs;
84
- var _loop = function _loop(i, len) {
84
+ var _loop = function _loop() {
85
85
  var rule = defaultValidateRules[i];
86
86
  var ruleInfo = newValidationRules[rule] || '';
87
87
  if (ruleInfo && !_typeChecker["default"].isFunction(ruleInfo)) {
@@ -266,7 +266,7 @@ var validator = {
266
266
  }
267
267
  };
268
268
  for (var i = 0, len = defaultValidateRules.length; i < len; i++) {
269
- _loop(i, len);
269
+ _loop();
270
270
  }
271
271
  return newValidationRules;
272
272
  },
@@ -21,8 +21,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
  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; }
22
22
  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); }
23
23
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
24
- 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); } }
24
+ 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); } }
25
25
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
26
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
27
+ 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); }
26
28
  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); }
27
29
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
28
30
  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); }; }
@@ -74,6 +76,7 @@ var DropBoxElement = /*#__PURE__*/function (_React$Component) {
74
76
  animationStyle = _this$props2.animationStyle,
75
77
  isActive = _this$props2.isActive,
76
78
  dataId = _this$props2.dataId,
79
+ dataSelectorId = _this$props2.dataSelectorId,
77
80
  isModel = _this$props2.isModel,
78
81
  isAbsolutePositioningNeeded = _this$props2.isAbsolutePositioningNeeded,
79
82
  tourId = _this$props2.tourId,
@@ -164,6 +167,7 @@ var DropBoxElement = /*#__PURE__*/function (_React$Component) {
164
167
  return /*#__PURE__*/_react["default"].createElement("div", {
165
168
  className: boxClassName,
166
169
  "data-id": "".concat(dataId),
170
+ "data-selector-id": dataSelectorId,
167
171
  ref: this.getRef,
168
172
  style: inlineStyle,
169
173
  "data-tour": tourId,
@@ -178,13 +182,15 @@ var DropBoxElement = /*#__PURE__*/function (_React$Component) {
178
182
  className: "".concat(subContainerClass, " ").concat(_DropBoxModule["default"]["".concat(palette, "Palette")]),
179
183
  onClick: onClick,
180
184
  "data-id": "".concat(dataId, "_subcontainer"),
185
+ "data-selector-id": "".concat(dataSelectorId, "_subcontainer"),
181
186
  ref: subContainerRef
182
187
  }, isModel ? /*#__PURE__*/_react["default"].createElement("div", {
183
188
  className: _DropBoxModule["default"].closeBar
184
189
  }) : null, isArrow && !isModel && /*#__PURE__*/_react["default"].createElement("div", {
185
190
  className: _DropBoxModule["default"][arrowPosition],
186
191
  style: needArrowStyle && arrowstyle,
187
- "data-id": "".concat(dataId, "_arrow")
192
+ "data-id": "".concat(dataId, "_arrow"),
193
+ "data-selector-id": "".concat(dataSelectorId, "_arrow")
188
194
  }, /*#__PURE__*/_react["default"].createElement("div", {
189
195
  className: _DropBoxModule["default"].arrowShape
190
196
  })), children));
@@ -8,6 +8,7 @@ var defaultProps = {
8
8
  animationStyle: 'default',
9
9
  boxPosition: 'bottomLeft',
10
10
  dataId: 'dropBox',
11
+ dataSelectorId: 'dropBox',
11
12
  isActive: false,
12
13
  isAnimate: false,
13
14
  isArrow: true,
@@ -17,6 +17,7 @@ var propTypes = {
17
17
  boxPosition: _propTypes["default"].oneOf(['bottomRight', 'bottomLeft', 'bottomCenter', 'topRight', 'topLeft', 'topCenter', 'rightTop', 'rightBottom', 'rightCenter', 'leftTop', 'leftBottom', 'leftCenter']),
18
18
  children: _propTypes["default"].element,
19
19
  dataId: _propTypes["default"].string,
20
+ dataSelectorId: _propTypes["default"].string,
20
21
  forwardRef: _propTypes["default"].object,
21
22
  getRef: _propTypes["default"].func,
22
23
  isAbsolutePositioningNeeded: _propTypes["default"].bool,
@@ -14,8 +14,10 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
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 _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: [2, { markAsUsed: ['dropdown', 'shadow', 'target', 'menu', 'header', 'headertext', 'list', 'padding', 'listHover', 'active', 'children', 'user', 'footer', 'separator', 'small', 'search', 'medium', 'heading'] }] */var DropDown = /*#__PURE__*/function (_React$Component) {
28
+ /* eslint css-modules/no-unused-class: [2, { markAsUsed: ['dropdown', 'shadow', 'target', 'menu', 'header', 'headertext', 'list', 'padding', 'listHover', 'active', 'children', 'user', 'footer', 'separator', 'small', 'search', 'medium', 'heading'] }] */
29
+ var DropDown = /*#__PURE__*/function (_React$Component) {
27
30
  _inherits(DropDown, _React$Component);
28
31
  var _super = _createSuper(DropDown);
29
32
  function DropDown() {
@@ -11,8 +11,10 @@ var _defaultProps = require("./props/defaultProps");
11
11
  var _DropDownHeadingModule = _interopRequireDefault(require("./DropDownHeading.module.css"));
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
14
- 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); } }
14
+ 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); } }
15
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
17
+ 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); }
16
18
  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); }
17
19
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18
20
  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); }; }
@@ -38,7 +40,9 @@ var DropDownHeading = /*#__PURE__*/function (_React$Component) {
38
40
  customClass = _this$props.customClass,
39
41
  palette = _this$props.palette,
40
42
  htmlId = _this$props.htmlId,
41
- a11y = _this$props.a11y;
43
+ a11y = _this$props.a11y,
44
+ dataId = _this$props.dataId,
45
+ dataSelectorId = _this$props.dataSelectorId;
42
46
  var role = a11y.role,
43
47
  ariaLabelledby = a11y.ariaLabelledby,
44
48
  ariaLabel = a11y.ariaLabel;
@@ -48,7 +52,9 @@ var DropDownHeading = /*#__PURE__*/function (_React$Component) {
48
52
  role: role,
49
53
  "aria-labelledby": ariaLabelledby,
50
54
  "aria-label": ariaLabel,
51
- id: htmlId
55
+ id: htmlId,
56
+ "data-id": dataId,
57
+ "data-selector-id": dataSelectorId
52
58
  // tabindex='0'
53
59
  }, text, children);
54
60
  }