@zohodesk/components 1.0.0-temp-667 → 1.0.0-temp-999
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +1 -1
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +1 -1
- package/es/AppContainer/AppContainer.js +1 -1
- package/es/Avatar/Avatar.js +1 -1
- package/es/Avatar/Avatar.module.css +9 -11
- package/es/AvatarTeam/AvatarTeam.js +1 -1
- package/es/AvatarTeam/AvatarTeam.module.css +7 -21
- package/es/Button/Button.module.css +24 -97
- package/es/Buttongroup/Buttongroup.module.css +8 -37
- package/es/CheckBox/CheckBox.js +1 -1
- package/es/CheckBox/CheckBox.module.css +19 -29
- package/es/DateTime/DateTime.module.css +12 -39
- package/es/DateTime/DateWidget.module.css +5 -9
- package/es/DateTime/YearView.module.css +7 -17
- package/es/DropBox/DropBox.js +1 -1
- package/es/DropBox/DropBox.module.css +11 -47
- package/es/DropDown/DropDownHeading.module.css +3 -7
- package/es/DropDown/DropDownItem.module.css +6 -32
- package/es/ListItem/ListContainer.js +1 -1
- package/es/ListItem/ListItem.js +1 -1
- package/es/ListItem/ListItem.module.css +33 -69
- package/es/ListItem/ListItemWithAvatar.js +1 -1
- package/es/ListItem/ListItemWithCheckBox.js +1 -1
- package/es/ListItem/ListItemWithIcon.js +1 -1
- package/es/ListItem/ListItemWithRadio.js +1 -1
- package/es/Modal/Modal.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.js +1 -1
- package/es/MultiSelect/AdvancedMultiSelect.module.css +113 -0
- package/es/MultiSelect/MultiSelect.module.css +11 -28
- package/es/MultiSelect/SelectedOptions.js +1 -1
- package/es/MultiSelect/SelectedOptions.module.css +2 -8
- package/es/MultiSelect/Suggestions.js +1 -1
- package/es/PopOver/PopOver.module.css +1 -1
- package/es/Popup/Popup.js +1 -1
- package/es/Radio/Radio.module.css +10 -18
- package/es/Responsive/ResizeComponent.js +82 -15
- package/es/Responsive/ResizeObserver.js +6 -2
- package/es/Responsive/docs/style.module.css +8 -17
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +1 -1
- package/es/Ribbon/Ribbon.module.css +28 -93
- package/es/RippleEffect/RippleEffect.module.css +44 -37
- package/es/Select/Select.js +8 -30
- package/es/Select/Select.module.css +2 -12
- package/es/Select/docs/Select__default.docs.js +1 -1
- package/es/Stencils/Stencils.module.css +3 -21
- package/es/Switch/Switch.js +1 -1
- package/es/Switch/Switch.module.css +9 -9
- package/es/Tab/Tab.js +1 -1
- package/es/Tab/Tab.module.css +7 -16
- package/es/Tab/TabWrapper.js +1 -1
- package/es/Tab/Tabs.js +1 -1
- package/es/Tab/Tabs.module.css +8 -42
- package/es/Tab/docs/tabdocs.module.css +1 -1
- package/es/Tag/Tag.module.css +14 -36
- package/es/TextBox/TextBox.js +1 -1
- package/es/TextBox/TextBox.module.css +11 -7
- package/es/TextBoxIcon/TextBoxIcon.js +1 -1
- package/es/TextBoxIcon/TextBoxIcon.module.css +5 -12
- package/es/Textarea/Textarea.js +1 -1
- package/es/Textarea/Textarea.module.css +7 -6
- package/es/Tooltip/Tooltip.module.css +8 -9
- package/es/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +1 -1
- package/es/beta/FocusRing/FocusRing.module.css +26 -51
- package/es/common/animation.module.css +21 -219
- package/es/common/basicReset.module.css +12 -2
- package/es/common/common.module.css +18 -62
- package/es/common/customscroll.module.css +21 -17
- package/es/common/docStyle.module.css +32 -79
- package/es/common/transition.module.css +10 -50
- package/es/deprecated/AdvancedMultiSelect.module.css +8 -22
- package/es/semantic/Button/semanticButton.module.css +3 -3
- package/lib/Accordion/Accordion.js +2 -2
- package/lib/Accordion/AccordionItem.js +2 -2
- package/lib/Accordion/docs/Accordion__Demo.docs.js +2 -2
- package/lib/Animation/Animation.js +2 -2
- package/lib/Animation/docs/Animation__default.docs.js +2 -2
- package/lib/Animation/docs/Animation__fadeIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__scaleIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__skewIn.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideDown.docs.js +2 -2
- package/lib/Animation/docs/Animation__slideLeft.docs.js +2 -2
- package/lib/Animation/docs/Animation__zoomIn.docs.js +2 -2
- package/lib/AppContainer/AppContainer.js +4 -11
- package/lib/AppContainer/docs/AppContainer__default.docs.js +2 -2
- package/lib/Avatar/Avatar.js +3 -3
- package/lib/Avatar/docs/Avatar__custom.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__default.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__palette.docs.js +2 -2
- package/lib/Avatar/docs/Avatar__text.docs.js +2 -2
- package/lib/AvatarTeam/AvatarTeam.js +3 -3
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +2 -2
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +2 -2
- package/lib/Button/Button.js +2 -2
- package/lib/Button/docs/Button__custom.docs.js +2 -2
- package/lib/Button/docs/Button__default.docs.js +2 -2
- package/lib/Buttongroup/Buttongroup.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +2 -2
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +2 -2
- package/lib/Card/Card.js +2 -2
- package/lib/Card/docs/Card__Custom.docs.js +2 -2
- package/lib/Card/docs/Card__Default.docs.js +2 -2
- package/lib/Card/docs/Card__Scroll.docs.js +2 -2
- package/lib/CheckBox/CheckBox.js +4 -5
- package/lib/CheckBox/CheckBox.module.css +8 -12
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +2 -2
- package/lib/CheckBox/docs/CheckBox__default.docs.js +2 -2
- package/lib/DateTime/CalendarView.js +2 -2
- package/lib/DateTime/DateTime.js +22 -50
- package/lib/DateTime/DateTime.module.css +1 -1
- package/lib/DateTime/DateTimePopupFooter.js +2 -2
- package/lib/DateTime/DateTimePopupHeader.js +2 -2
- package/lib/DateTime/DateWidget.js +4 -14
- package/lib/DateTime/DateWidget.module.css +4 -0
- package/lib/DateTime/DaysRow.js +2 -2
- package/lib/DateTime/Time.js +2 -2
- package/lib/DateTime/YearView.js +2 -2
- package/lib/DateTime/YearView.module.css +0 -1
- package/lib/DateTime/docs/DateTime__default.docs.js +2 -2
- package/lib/DateTime/docs/DateWidget__default.docs.js +2 -2
- package/lib/DropBox/DropBox.js +4 -4
- package/lib/DropBox/docs/DropBox__custom.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__position.docs.js +2 -2
- package/lib/DropBox/docs/DropBox__size.docs.js +2 -2
- package/lib/DropDown/DropDown.js +2 -2
- package/lib/DropDown/DropDownHeading.js +2 -2
- package/lib/DropDown/DropDownItem.js +2 -2
- package/lib/DropDown/DropDownSearch.js +2 -2
- package/lib/DropDown/DropDownSeparator.js +2 -2
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +2 -2
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +2 -2
- package/lib/Label/Label.js +2 -2
- package/lib/Label/docs/Label__clipped.docs.js +2 -2
- package/lib/Label/docs/Label__custom.docs.js +2 -2
- package/lib/Label/docs/Label__palette.docs.js +2 -2
- package/lib/Label/docs/Label__size.docs.js +2 -2
- package/lib/Label/docs/Label__type.docs.js +2 -2
- package/lib/Layout/docs/Layout__Hidden.docs.js +2 -2
- package/lib/Layout/docs/Layout__default.docs.js +2 -2
- package/lib/Layout/docs/Layout__four_Column.docs.js +2 -2
- package/lib/Layout/docs/Layout__three_Column.docs.js +2 -2
- package/lib/Layout/docs/Layout__two_Column.docs.js +2 -2
- package/lib/LightNightMode/Colors.json +397 -496
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +3 -25
- package/lib/ListItem/ListContainer.js +5 -8
- package/lib/ListItem/ListItem.js +4 -4
- package/lib/ListItem/ListItem.module.css +19 -18
- package/lib/ListItem/ListItemWithAvatar.js +4 -4
- package/lib/ListItem/ListItemWithCheckBox.js +4 -4
- package/lib/ListItem/ListItemWithIcon.js +4 -4
- package/lib/ListItem/ListItemWithRadio.js +4 -4
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__custom.docs.js +2 -2
- package/lib/ListItem/docs/ListItem__default.docs.js +2 -2
- package/lib/Modal/Modal.js +3 -3
- package/lib/Modal/__docs__/Modal__default.docs.js +2 -2
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +88 -120
- package/lib/MultiSelect/AdvancedMultiSelect.js +62 -99
- package/lib/{deprecated → MultiSelect}/AdvancedMultiSelect.module.css +1 -1
- package/lib/MultiSelect/EmptyState.js +2 -2
- package/lib/MultiSelect/MultiSelect.js +64 -90
- package/lib/MultiSelect/MultiSelect.module.css +2 -15
- package/lib/MultiSelect/MultiSelectHeader.js +2 -2
- package/lib/MultiSelect/MultiSelectWithAvatar.js +55 -80
- package/lib/MultiSelect/SelectedOptions.js +3 -3
- package/lib/MultiSelect/Suggestions.js +3 -3
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +2 -2
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +2 -2
- package/lib/PopOver/PopOver.js +6 -13
- package/lib/PopOver/docs/PopOver__default.docs.js +2 -2
- package/lib/Popup/Popup.js +3 -3
- package/lib/Popup/__tests__/Popup.spec.js +2 -2
- package/lib/Provider/Config.js +1 -3
- package/lib/Provider/docs/Provider_Id__Class.docs.js +2 -2
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +2 -2
- package/lib/Provider.js +100 -34
- package/lib/Radio/Radio.js +2 -2
- package/lib/Radio/Radio.module.css +6 -8
- package/lib/Radio/docs/Radio__custom.docs.js +2 -2
- package/lib/Radio/docs/Radio__default.docs.js +2 -2
- package/lib/Responsive/ResizeComponent.js +2 -2
- package/lib/Responsive/Responsive.js +2 -2
- package/lib/Responsive/docs/Responsive__Custom.docs.js +2 -2
- package/lib/Responsive/docs/Responsive__default.docs.js +2 -2
- package/lib/Responsive/sizeObservers.js +3 -3
- package/lib/Ribbon/Ribbon.js +2 -2
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +2 -2
- package/lib/Ribbon/docs/Ribbon__default.docs.js +2 -2
- package/lib/RippleEffect/RippleEffect.module.css +15 -37
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +2 -2
- package/lib/Select/GroupSelect.js +79 -102
- package/lib/Select/Select.js +87 -142
- package/lib/Select/Select.module.css +0 -6
- package/lib/Select/SelectWithAvatar.js +73 -98
- package/lib/Select/SelectWithIcon.js +76 -99
- package/lib/Select/docs/GroupSelect__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +2 -2
- package/lib/Select/docs/SelectWithIcon__default.docs.js +2 -2
- package/lib/Select/docs/Select__default.docs.js +3 -3
- package/lib/Stencils/Stencils.js +2 -2
- package/lib/Stencils/docs/Stencils__custom.docs.js +2 -2
- package/lib/Stencils/docs/Stencils__default.docs.js +2 -2
- package/lib/Switch/Switch.js +3 -3
- package/lib/Switch/Switch.module.css +2 -3
- package/lib/Switch/docs/Switch__custom.docs.js +2 -2
- package/lib/Switch/docs/Switch__default.docs.js +2 -2
- package/lib/Tab/Tab.js +1 -1
- package/lib/Tab/TabWrapper.js +1 -1
- package/lib/Tab/Tabs.js +47 -70
- package/lib/Tab/Tabs.module.css +1 -2
- package/lib/Tab/docs/Tab__default.docs.js +2 -2
- package/lib/Tag/Tag.js +3 -3
- package/lib/Tag/Tag.module.css +2 -6
- package/lib/Tag/docs/Tag__custom.docs.js +2 -2
- package/lib/Tag/docs/Tag__default.docs.js +2 -2
- package/lib/TextBox/TextBox.js +3 -3
- package/lib/TextBox/docs/TextBox__custom.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__default.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__size.docs.js +2 -2
- package/lib/TextBox/docs/TextBox__variant.docs.js +2 -2
- package/lib/TextBoxIcon/TextBoxIcon.js +3 -3
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +2 -2
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +2 -2
- package/lib/Textarea/Textarea.js +3 -3
- package/lib/Textarea/docs/Textarea__animated.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__custom.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__default.docs.js +2 -2
- package/lib/Textarea/docs/Textarea__disabled.docs.js +2 -2
- package/lib/Tooltip/Tooltip.js +10 -62
- package/lib/Tooltip/Tooltip.module.css +1 -6
- package/lib/Tooltip/__tests__/Tooltip.spec.js +2 -2
- package/lib/Tooltip/docs/Tooltip__default.docs.js +13 -52
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +2 -2
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +3 -3
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +2 -2
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +2 -2
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +2 -2
- package/lib/common/docStyle.module.css +2 -6
- package/lib/css.js +2 -0
- package/lib/deprecated/PortalLayer/PortalLayer.js +2 -2
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +2 -2
- package/lib/index.js +1 -10
- package/lib/semantic/Button/Button.js +2 -2
- package/lib/semantic/Button/docs/Button__default.docs.js +2 -2
- package/package.json +6 -5
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +0 -130
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +0 -6
- package/lib/deprecated/advancedMultiSelectVariableJson.js +0 -82
|
@@ -13,6 +13,8 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
13
13
|
|
|
14
14
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
15
15
|
|
|
16
|
+
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
17
|
+
|
|
16
18
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
17
19
|
|
|
18
20
|
var _Layout = require("../Layout");
|
|
@@ -31,10 +33,6 @@ var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
|
31
33
|
|
|
32
34
|
var _IdProvider = require("../Provider/IdProvider");
|
|
33
35
|
|
|
34
|
-
var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
|
|
35
|
-
|
|
36
|
-
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
37
|
-
|
|
38
36
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
39
37
|
|
|
40
38
|
var _MultiSelectModule = _interopRequireDefault(require("./MultiSelect.module.css"));
|
|
@@ -43,8 +41,6 @@ var _Common = require("../utils/Common.js");
|
|
|
43
41
|
|
|
44
42
|
var _dropDownUtils = require("../utils/dropDownUtils");
|
|
45
43
|
|
|
46
|
-
var _Config = require("../Provider/Config");
|
|
47
|
-
|
|
48
44
|
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); }
|
|
49
45
|
|
|
50
46
|
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; }
|
|
@@ -79,7 +75,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
79
75
|
|
|
80
76
|
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); }
|
|
81
77
|
|
|
82
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
78
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
83
79
|
|
|
84
80
|
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); }; }
|
|
85
81
|
|
|
@@ -89,7 +85,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
89
85
|
|
|
90
86
|
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; } }
|
|
91
87
|
|
|
92
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
88
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
93
89
|
|
|
94
90
|
/* eslint-disable react/forbid-component-props */
|
|
95
91
|
|
|
@@ -516,6 +512,10 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
516
512
|
}
|
|
517
513
|
} else if (keyCode === 27) {// this.handlePopupClose(e);
|
|
518
514
|
} else if (keyCode === 9) {
|
|
515
|
+
var _selectedOption = suggestions[hoverOption] || {};
|
|
516
|
+
|
|
517
|
+
var _id = _selectedOption.id;
|
|
518
|
+
isPopupOpen && !(0, _Common.getIsEmptyValue)(_id) && this.handleSelectOption(_id, e);
|
|
519
519
|
this.handlePopupClose(e);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
@@ -903,21 +903,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
903
903
|
openPopupOnly: openPopupOnly
|
|
904
904
|
});
|
|
905
905
|
}
|
|
906
|
-
}, {
|
|
907
|
-
key: "responsiveFunc",
|
|
908
|
-
value: function responsiveFunc(_ref6) {
|
|
909
|
-
var mediaQueryOR = _ref6.mediaQueryOR;
|
|
910
|
-
return {
|
|
911
|
-
tabletMode: mediaQueryOR([{
|
|
912
|
-
maxWidth: 700
|
|
913
|
-
}])
|
|
914
|
-
};
|
|
915
|
-
}
|
|
916
906
|
}, {
|
|
917
907
|
key: "render",
|
|
918
908
|
value: function render() {
|
|
919
|
-
var _this5 = this;
|
|
920
|
-
|
|
921
909
|
var _this$props13 = this.props,
|
|
922
910
|
isReadOnly = _this$props13.isReadOnly,
|
|
923
911
|
needSelectAll = _this$props13.needSelectAll,
|
|
@@ -958,8 +946,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
958
946
|
getFooter = _this$props13.getFooter,
|
|
959
947
|
needEffect = _this$props13.needEffect,
|
|
960
948
|
disabledOptions = _this$props13.disabledOptions,
|
|
961
|
-
boxSize = _this$props13.boxSize
|
|
962
|
-
autoComplete = _this$props13.autoComplete;
|
|
949
|
+
boxSize = _this$props13.boxSize;
|
|
963
950
|
var _i18nKeys = i18nKeys,
|
|
964
951
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
965
952
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText,
|
|
@@ -1048,7 +1035,7 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1048
1035
|
ariaRequired: true,
|
|
1049
1036
|
ariaDescribedby: ariaErrorId
|
|
1050
1037
|
},
|
|
1051
|
-
autoComplete:
|
|
1038
|
+
autoComplete: false
|
|
1052
1039
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
1053
1040
|
alignBox: "row",
|
|
1054
1041
|
align: "vertical"
|
|
@@ -1064,71 +1051,60 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1064
1051
|
size: "15"
|
|
1065
1052
|
})) : null, children ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1066
1053
|
dataId: "".concat(dataId, "_children")
|
|
1067
|
-
}, children) : null)))), !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1122
|
-
isLoading: isFetchingOptions,
|
|
1123
|
-
options: options,
|
|
1124
|
-
searchString: searchStr,
|
|
1125
|
-
suggestions: suggestions,
|
|
1126
|
-
dataId: dataId,
|
|
1127
|
-
palette: palette,
|
|
1128
|
-
i18nKeys: i18nKeys,
|
|
1129
|
-
htmlId: ariaErrorId
|
|
1130
|
-
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)));
|
|
1131
|
-
}) : null);
|
|
1054
|
+
}, children) : null)))), !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
1055
|
+
animationStyle: animationStyle,
|
|
1056
|
+
boxPosition: position || "".concat(defaultDropBoxPosition),
|
|
1057
|
+
getRef: getContainerRef,
|
|
1058
|
+
isActive: isPopupReady,
|
|
1059
|
+
isAnimate: isAnimate,
|
|
1060
|
+
isArrow: false,
|
|
1061
|
+
onClick: removeClose,
|
|
1062
|
+
needResponsive: needResponsive,
|
|
1063
|
+
isPadding: false,
|
|
1064
|
+
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
1065
|
+
palette: palette,
|
|
1066
|
+
htmlId: setAriaId,
|
|
1067
|
+
a11y: {
|
|
1068
|
+
role: 'listbox',
|
|
1069
|
+
ariaMultiselectable: true
|
|
1070
|
+
},
|
|
1071
|
+
size: boxSize
|
|
1072
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
1073
|
+
customClass: "".concat(_MultiSelectModule["default"].box, " ").concat(_MultiSelectModule["default"]["".concat(palette, "Box")]),
|
|
1074
|
+
onScroll: this.handleScroll
|
|
1075
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
1076
|
+
needSelectAll: needSelectAll,
|
|
1077
|
+
onSelect: this.handleSelectAll,
|
|
1078
|
+
selectAllText: selectAllText,
|
|
1079
|
+
suggestions: suggestions,
|
|
1080
|
+
dataId: dataId
|
|
1081
|
+
})), /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1082
|
+
customClass: dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
1083
|
+
eleRef: this.suggestionContainerRef
|
|
1084
|
+
}, isSearching ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
1085
|
+
className: _MultiSelectModule["default"][palette]
|
|
1086
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1087
|
+
suggestions: suggestions,
|
|
1088
|
+
getRef: this.suggestionItemRef,
|
|
1089
|
+
hoverOption: hoverOption,
|
|
1090
|
+
onClick: this.handleSelectOption,
|
|
1091
|
+
onMouseEnter: this.handleMouseEnter,
|
|
1092
|
+
needBorder: false,
|
|
1093
|
+
dataId: "".concat(dataId, "_Options"),
|
|
1094
|
+
palette: palette,
|
|
1095
|
+
a11y: {
|
|
1096
|
+
role: 'option'
|
|
1097
|
+
}
|
|
1098
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1099
|
+
isLoading: isFetchingOptions,
|
|
1100
|
+
options: options,
|
|
1101
|
+
searchString: searchStr,
|
|
1102
|
+
suggestions: suggestions,
|
|
1103
|
+
dataId: dataId,
|
|
1104
|
+
palette: palette,
|
|
1105
|
+
i18nKeys: i18nKeys,
|
|
1106
|
+
htmlId: ariaErrorId
|
|
1107
|
+
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)) : null);
|
|
1132
1108
|
}
|
|
1133
1109
|
}]);
|
|
1134
1110
|
|
|
@@ -1138,7 +1114,6 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
1138
1114
|
exports.MultiSelectComponent = MultiSelectComponent;
|
|
1139
1115
|
MultiSelectComponent.propTypes = {
|
|
1140
1116
|
animationStyle: _propTypes["default"].string,
|
|
1141
|
-
autoComplete: _propTypes["default"].bool,
|
|
1142
1117
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default', 'dark']),
|
|
1143
1118
|
closePopupOnly: _propTypes["default"].func,
|
|
1144
1119
|
dataId: _propTypes["default"].string,
|
|
@@ -1218,7 +1193,6 @@ MultiSelectComponent.propTypes = {
|
|
|
1218
1193
|
};
|
|
1219
1194
|
MultiSelectComponent.defaultProps = {
|
|
1220
1195
|
animationStyle: 'bounce',
|
|
1221
|
-
autoComplete: (0, _Config.getLibraryConfig)('autoComplete'),
|
|
1222
1196
|
dataId: 'multiSelect',
|
|
1223
1197
|
dropBoxSize: 'small',
|
|
1224
1198
|
isAnimate: true,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
.wrapper {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.disabled, .readOnly {
|
|
5
6
|
cursor: not-allowed;
|
|
6
7
|
}
|
|
@@ -100,9 +101,7 @@
|
|
|
100
101
|
[dir=rtl] .container.medium .tag {
|
|
101
102
|
margin: var(--zd_size5) 0 0 var(--zd_size10);
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
-
width: 100%;
|
|
105
|
-
}
|
|
104
|
+
|
|
106
105
|
.box {
|
|
107
106
|
background: var(--zdt_multiselect_box_bg);
|
|
108
107
|
}
|
|
@@ -192,15 +191,3 @@
|
|
|
192
191
|
[dir=rtl] .clearIconSpace {
|
|
193
192
|
padding-left: var(--zd_size37)
|
|
194
193
|
}
|
|
195
|
-
.search{
|
|
196
|
-
padding: 0px 20px;
|
|
197
|
-
}
|
|
198
|
-
.more {
|
|
199
|
-
font-size: var(--zd_font_size14);
|
|
200
|
-
color: var(--zdt_multiselect_more_text);
|
|
201
|
-
font-family: inherit;
|
|
202
|
-
cursor: pointer;
|
|
203
|
-
margin-top: var(--zd_size5);
|
|
204
|
-
background-color: var(--zdt_multiselect_delete_bg);
|
|
205
|
-
border: 0;
|
|
206
|
-
}
|
|
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
25
|
|
|
26
26
|
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
27
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
30
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); }; }
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
35
|
|
|
36
36
|
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; } }
|
|
37
37
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
39
|
|
|
40
40
|
var MultiSelectHeader = /*#__PURE__*/function (_React$PureComponent) {
|
|
41
41
|
_inherits(MultiSelectHeader, _React$PureComponent);
|
|
@@ -15,6 +15,8 @@ var _MultiSelect = require("./MultiSelect");
|
|
|
15
15
|
|
|
16
16
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
17
17
|
|
|
18
|
+
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
19
|
+
|
|
18
20
|
var _TextBoxIcon = _interopRequireDefault(require("../TextBoxIcon/TextBoxIcon"));
|
|
19
21
|
|
|
20
22
|
var _Layout = require("../Layout");
|
|
@@ -33,10 +35,6 @@ var _CssProvider = _interopRequireDefault(require("../Provider/CssProvider"));
|
|
|
33
35
|
|
|
34
36
|
var _IdProvider = require("../Provider/IdProvider");
|
|
35
37
|
|
|
36
|
-
var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
|
|
37
|
-
|
|
38
|
-
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
39
|
-
|
|
40
38
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
41
39
|
|
|
42
40
|
var _MultiSelectModule = _interopRequireDefault(require("./MultiSelect.module.css"));
|
|
@@ -55,7 +53,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
55
53
|
|
|
56
54
|
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); }
|
|
57
55
|
|
|
58
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
56
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
57
|
|
|
60
58
|
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); }; }
|
|
61
59
|
|
|
@@ -65,7 +63,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
65
63
|
|
|
66
64
|
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; } }
|
|
67
65
|
|
|
68
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
66
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
69
67
|
|
|
70
68
|
/*eslint-disable react/sort-prop-types*/
|
|
71
69
|
|
|
@@ -105,21 +103,9 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
105
103
|
disabledOptions: disabledOptions
|
|
106
104
|
});
|
|
107
105
|
}
|
|
108
|
-
}, {
|
|
109
|
-
key: "responsiveFunc",
|
|
110
|
-
value: function responsiveFunc(_ref) {
|
|
111
|
-
var mediaQueryOR = _ref.mediaQueryOR;
|
|
112
|
-
return {
|
|
113
|
-
tabletMode: mediaQueryOR([{
|
|
114
|
-
maxWidth: 700
|
|
115
|
-
}])
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
106
|
}, {
|
|
119
107
|
key: "render",
|
|
120
108
|
value: function render() {
|
|
121
|
-
var _this2 = this;
|
|
122
|
-
|
|
123
109
|
var _this$props = this.props,
|
|
124
110
|
isReadOnly = _this$props.isReadOnly,
|
|
125
111
|
needSelectAll = _this$props.needSelectAll,
|
|
@@ -252,68 +238,57 @@ var MultiSelectWithAvatarComponent = /*#__PURE__*/function (_MultiSelectComponen
|
|
|
252
238
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
253
239
|
name: "ZD-delete",
|
|
254
240
|
size: "15"
|
|
255
|
-
})) : null)))), popUpState ? /*#__PURE__*/_react["default"].createElement(
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
307
|
-
isLoading: isFetchingOptions,
|
|
308
|
-
options: options,
|
|
309
|
-
searchString: searchStr,
|
|
310
|
-
suggestions: suggestions,
|
|
311
|
-
dataId: dataId,
|
|
312
|
-
palette: palette,
|
|
313
|
-
i18nKeys: i18nKeys,
|
|
314
|
-
htmlId: ariaErrorId
|
|
315
|
-
})))));
|
|
316
|
-
}) : null);
|
|
241
|
+
})) : null)))), popUpState ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
242
|
+
animationStyle: animationStyle,
|
|
243
|
+
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
244
|
+
getRef: getContainerRef,
|
|
245
|
+
isActive: isPopupReady,
|
|
246
|
+
isAnimate: isAnimate,
|
|
247
|
+
isArrow: false,
|
|
248
|
+
onClick: removeClose,
|
|
249
|
+
needResponsive: needResponsive,
|
|
250
|
+
isPadding: false,
|
|
251
|
+
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
252
|
+
palette: palette,
|
|
253
|
+
htmlId: setAriaId,
|
|
254
|
+
a11y: {
|
|
255
|
+
ariaMultiselectable: true,
|
|
256
|
+
role: 'listbox'
|
|
257
|
+
}
|
|
258
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
259
|
+
customClass: "".concat(_MultiSelectModule["default"].box, " ").concat(_MultiSelectModule["default"]["".concat(palette, "Box")]),
|
|
260
|
+
onScroll: this.handleScroll
|
|
261
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
262
|
+
needSelectAll: needSelectAll,
|
|
263
|
+
onSelect: this.handleSelectAll,
|
|
264
|
+
selectAllText: selectAllText,
|
|
265
|
+
suggestions: suggestions,
|
|
266
|
+
dataId: dataId
|
|
267
|
+
})), /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
268
|
+
customClass: dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
269
|
+
eleRef: this.suggestionContainerRef
|
|
270
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
271
|
+
suggestions: suggestions,
|
|
272
|
+
getRef: this.suggestionItemRef,
|
|
273
|
+
hoverOption: hoverOption,
|
|
274
|
+
onClick: this.handleSelectOption,
|
|
275
|
+
onMouseEnter: this.handleMouseEnter,
|
|
276
|
+
needBorder: false,
|
|
277
|
+
dataId: "".concat(dataId, "_Options"),
|
|
278
|
+
palette: palette,
|
|
279
|
+
a11y: {
|
|
280
|
+
role: 'option'
|
|
281
|
+
}
|
|
282
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
283
|
+
isLoading: isFetchingOptions,
|
|
284
|
+
options: options,
|
|
285
|
+
searchString: searchStr,
|
|
286
|
+
suggestions: suggestions,
|
|
287
|
+
dataId: dataId,
|
|
288
|
+
palette: palette,
|
|
289
|
+
i18nKeys: i18nKeys,
|
|
290
|
+
htmlId: ariaErrorId
|
|
291
|
+
})))) : null);
|
|
317
292
|
}
|
|
318
293
|
}]);
|
|
319
294
|
|
|
@@ -19,7 +19,7 @@ var _SelectedOptionsModule = _interopRequireDefault(require("./SelectedOptions.m
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
|
-
function _extends() { _extends = Object.assign
|
|
22
|
+
function _extends() { _extends = Object.assign || 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
|
|
|
24
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
29
29
|
|
|
30
30
|
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); }
|
|
31
31
|
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
32
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
33
|
|
|
34
34
|
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); }; }
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
39
39
|
|
|
40
40
|
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; } }
|
|
41
41
|
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
42
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
43
|
|
|
44
44
|
/* eslint-disable react/forbid-component-props */
|
|
45
45
|
var SelectedOptions = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -21,7 +21,7 @@ var _Layout = require("../Layout");
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _extends() { _extends = Object.assign
|
|
24
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
25
25
|
|
|
26
26
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
27
|
|
|
@@ -37,7 +37,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
37
37
|
|
|
38
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); }
|
|
39
39
|
|
|
40
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
40
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
41
41
|
|
|
42
42
|
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); }; }
|
|
43
43
|
|
|
@@ -47,7 +47,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
47
47
|
|
|
48
48
|
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; } }
|
|
49
49
|
|
|
50
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
50
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
51
51
|
|
|
52
52
|
var Suggestions = /*#__PURE__*/function (_React$PureComponent) {
|
|
53
53
|
_inherits(Suggestions, _React$PureComponent);
|
|
@@ -21,7 +21,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
21
21
|
|
|
22
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); }
|
|
23
23
|
|
|
24
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
25
|
|
|
26
26
|
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
27
|
|
|
@@ -31,7 +31,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
31
31
|
|
|
32
32
|
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; } }
|
|
33
33
|
|
|
34
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
35
|
|
|
36
36
|
var AdvancedGroupMultiSelect__default = /*#__PURE__*/function (_React$Component) {
|
|
37
37
|
_inherits(AdvancedGroupMultiSelect__default, _React$Component);
|
|
@@ -25,7 +25,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
25
25
|
|
|
26
26
|
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
27
|
|
|
28
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
28
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
29
|
|
|
30
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); }; }
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
35
35
|
|
|
36
36
|
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; } }
|
|
37
37
|
|
|
38
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
38
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
39
|
|
|
40
40
|
var AdvancedMultiSelect__default = /*#__PURE__*/function (_Component) {
|
|
41
41
|
_inherits(AdvancedMultiSelect__default, _Component);
|
|
@@ -27,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
27
27
|
|
|
28
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); }
|
|
29
29
|
|
|
30
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
31
|
|
|
32
32
|
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); }; }
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
37
37
|
|
|
38
38
|
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; } }
|
|
39
39
|
|
|
40
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
41
|
|
|
42
42
|
var MultiSelectWithAvatar__default = /*#__PURE__*/function (_Component) {
|
|
43
43
|
_inherits(MultiSelectWithAvatar__default, _Component);
|
|
@@ -31,7 +31,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
31
31
|
|
|
32
32
|
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
33
|
|
|
34
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
34
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
35
35
|
|
|
36
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); }; }
|
|
37
37
|
|
|
@@ -41,7 +41,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
41
41
|
|
|
42
42
|
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; } }
|
|
43
43
|
|
|
44
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
44
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
45
45
|
|
|
46
46
|
var MultiSelect__default = /*#__PURE__*/function (_Component) {
|
|
47
47
|
_inherits(MultiSelect__default, _Component);
|