(props)
| 35087 | var ContextualMenuSplitButton = /** @class */ function(_super) { |
| 35088 | (0, _tslib.__extends)(ContextualMenuSplitButton1, _super); |
| 35089 | function ContextualMenuSplitButton1(props) { |
| 35090 | var _this = _super.call(this, props) || this; |
| 35091 | _this._getMemoizedMenuButtonKeytipProps = (0, _utilities.memoizeFunction)(function(keytipProps) { |
| 35092 | return (0, _tslib.__assign)((0, _tslib.__assign)({}, keytipProps), { |
| 35093 | hasMenu: true |
| 35094 | }); |
| 35095 | }); |
| 35096 | _this._renderAriaDescription = function(ariaDescription, className) { |
| 35097 | // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan |
| 35098 | return ariaDescription ? _react.createElement("span", { |
| 35099 | id: _this._ariaDescriptionId, |
| 35100 | className: className |
| 35101 | }, ariaDescription) : null; |
| 35102 | }; |
| 35103 | _this._onItemKeyDown = function(ev) { |
| 35104 | var _a = _this.props, item = _a.item, onItemKeyDown = _a.onItemKeyDown; |
| 35105 | if (ev.which === (0, _utilities.KeyCodes).enter) { |
| 35106 | _this._executeItemClick(ev); |
| 35107 | ev.preventDefault(); |
| 35108 | ev.stopPropagation(); |
| 35109 | } else if (onItemKeyDown) onItemKeyDown(item, ev); |
| 35110 | }; |
| 35111 | _this._getSubmenuTarget = function() { |
| 35112 | return _this._splitButton; |
| 35113 | }; |
| 35114 | _this._onItemMouseEnterPrimary = function(ev) { |
| 35115 | var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; |
| 35116 | if (onItemMouseEnter) onItemMouseEnter((0, _tslib.__assign)((0, _tslib.__assign)({}, item), { |
| 35117 | subMenuProps: undefined, |
| 35118 | items: undefined |
| 35119 | }), ev, _this._splitButton); |
| 35120 | }; |
| 35121 | _this._onItemMouseEnterIcon = function(ev) { |
| 35122 | var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; |
| 35123 | if (onItemMouseEnter) onItemMouseEnter(item, ev, _this._splitButton); |
| 35124 | }; |
| 35125 | _this._onItemMouseMovePrimary = function(ev) { |
| 35126 | var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; |
| 35127 | if (onItemMouseMove) onItemMouseMove((0, _tslib.__assign)((0, _tslib.__assign)({}, item), { |
| 35128 | subMenuProps: undefined, |
| 35129 | items: undefined |
| 35130 | }), ev, _this._splitButton); |
| 35131 | }; |
| 35132 | _this._onItemMouseMoveIcon = function(ev) { |
| 35133 | var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; |
| 35134 | if (onItemMouseMove) onItemMouseMove(item, ev, _this._splitButton); |
| 35135 | }; |
| 35136 | _this._onIconItemClick = function(ev) { |
| 35137 | var _a = _this.props, item = _a.item, onItemClickBase = _a.onItemClickBase; |
| 35138 | if (onItemClickBase) onItemClickBase(item, ev, _this._splitButton ? _this._splitButton : ev.currentTarget); |
| 35139 | }; |
| 35140 | _this._executeItemClick = function(ev) { |
| 35141 | var _a = _this.props, item = _a.item, executeItemClick = _a.executeItemClick, onItemClick = _a.onItemClick; |
| 35142 | if (item.disabled || item.isDisabled) return; |
| 35143 | if (_this._processingTouch && onItemClick) return onItemClick(item, ev); |
| 35144 | if (executeItemClick) executeItemClick(item, ev); |
| 35145 | }; |
| 35146 | _this._onTouchStart = function(ev) { |
nothing calls this directly
no test coverage detected