@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
|
@@ -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 Modal__default = /*#__PURE__*/function (_React$Component) {
|
|
37
37
|
_inherits(Modal__default, _React$Component);
|
|
@@ -15,7 +15,9 @@ var _Loader = _interopRequireDefault(require("@zohodesk/svg/lib/svg/Loader"));
|
|
|
15
15
|
|
|
16
16
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
19
|
+
|
|
20
|
+
var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
|
|
19
21
|
|
|
20
22
|
var _Layout = require("../Layout");
|
|
21
23
|
|
|
@@ -33,10 +35,6 @@ var _Card = _interopRequireWildcard(require("../Card/Card"));
|
|
|
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"));
|
|
@@ -45,8 +43,6 @@ var _Common = require("../utils/Common.js");
|
|
|
45
43
|
|
|
46
44
|
var _dropDownUtils = require("../utils/dropDownUtils");
|
|
47
45
|
|
|
48
|
-
var _Config = require("../Provider/Config");
|
|
49
|
-
|
|
50
46
|
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); }
|
|
51
47
|
|
|
52
48
|
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; }
|
|
@@ -83,7 +79,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
83
79
|
|
|
84
80
|
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); }
|
|
85
81
|
|
|
86
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
82
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
87
83
|
|
|
88
84
|
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); }; }
|
|
89
85
|
|
|
@@ -93,7 +89,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
93
89
|
|
|
94
90
|
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; } }
|
|
95
91
|
|
|
96
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
92
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
97
93
|
|
|
98
94
|
/* eslint-disable react/forbid-component-props */
|
|
99
95
|
|
|
@@ -907,16 +903,6 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
907
903
|
notifyPopupToggle && notifyPopupToggle(isPopupOpen);
|
|
908
904
|
}
|
|
909
905
|
}
|
|
910
|
-
}, {
|
|
911
|
-
key: "responsiveFunc",
|
|
912
|
-
value: function responsiveFunc(_ref5) {
|
|
913
|
-
var mediaQueryOR = _ref5.mediaQueryOR;
|
|
914
|
-
return {
|
|
915
|
-
tabletMode: mediaQueryOR([{
|
|
916
|
-
maxWidth: 700
|
|
917
|
-
}])
|
|
918
|
-
};
|
|
919
|
-
}
|
|
920
906
|
}, {
|
|
921
907
|
key: "render",
|
|
922
908
|
value: function render() {
|
|
@@ -934,7 +920,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
934
920
|
isPopupReady = _this$props8.isPopupReady,
|
|
935
921
|
defaultDropBoxPosition = _this$props8.defaultDropBoxPosition,
|
|
936
922
|
removeClose = _this$props8.removeClose,
|
|
937
|
-
|
|
923
|
+
_this$props8$needResp = _this$props8.needResponsive,
|
|
924
|
+
needResponsive = _this$props8$needResp === void 0 ? false : _this$props8$needResp,
|
|
938
925
|
animationStyle = _this$props8.animationStyle,
|
|
939
926
|
needSelectAll = _this$props8.needSelectAll,
|
|
940
927
|
selectAllText = _this$props8.selectAllText,
|
|
@@ -957,9 +944,9 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
957
944
|
htmlId = _this$props8.htmlId,
|
|
958
945
|
i18nKeys = _this$props8.i18nKeys,
|
|
959
946
|
a11y = _this$props8.a11y,
|
|
947
|
+
isSearchClearOnSelect = _this$props8.isSearchClearOnSelect,
|
|
960
948
|
palette = _this$props8.palette,
|
|
961
|
-
needEffect = _this$props8.needEffect
|
|
962
|
-
autoComplete = _this$props8.autoComplete;
|
|
949
|
+
needEffect = _this$props8.needEffect;
|
|
963
950
|
var _i18nKeys = i18nKeys,
|
|
964
951
|
_i18nKeys$clearText = _i18nKeys.clearText,
|
|
965
952
|
clearText = _i18nKeys$clearText === void 0 ? 'Clear all' : _i18nKeys$clearText;
|
|
@@ -986,7 +973,6 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
986
973
|
|
|
987
974
|
var setAriaId = this.getNextAriaId();
|
|
988
975
|
var ariaErrorId = this.getNextAriaId();
|
|
989
|
-
var isShowClearIcon = !isReadOnly && !isDisabled && selectedGroupOptions.length > 1;
|
|
990
976
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
991
977
|
className: "".concat(_MultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _MultiSelectModule["default"].disabled : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _MultiSelectModule["default"].effect : ''),
|
|
992
978
|
"data-id": "".concat(isDisabled ? "".concat(dataId, "_disabled") : isReadOnly ? "".concat(dataId, "_readOnly") : dataId),
|
|
@@ -1017,8 +1003,8 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1017
1003
|
adjust: true,
|
|
1018
1004
|
shrink: true
|
|
1019
1005
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
1020
|
-
className: " ".concat(_MultiSelectModule["default"].custmSpan, " ").concat(textBoxSize
|
|
1021
|
-
}, searchStr), /*#__PURE__*/_react["default"].createElement(
|
|
1006
|
+
className: " ".concat(_MultiSelectModule["default"].custmSpan, " ").concat(textBoxSize == 'xmedium' ? _MultiSelectModule["default"].custmSpanXmedium : _MultiSelectModule["default"].custmSpanMedium, " ")
|
|
1007
|
+
}, searchStr), /*#__PURE__*/_react["default"].createElement(_TextBox["default"], {
|
|
1022
1008
|
isDisabled: isDisabled,
|
|
1023
1009
|
inputRef: this.searchInputRef,
|
|
1024
1010
|
needBorder: false,
|
|
@@ -1033,9 +1019,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1033
1019
|
variant: variant,
|
|
1034
1020
|
dataId: "".concat(dataId, "_textBox"),
|
|
1035
1021
|
isReadOnly: isReadOnly,
|
|
1036
|
-
customClass:
|
|
1037
|
-
customTBoxWrap: _MultiSelectModule["default"].custmInputWrapper
|
|
1038
|
-
},
|
|
1022
|
+
customClass: _MultiSelectModule["default"].custmInputWrapper,
|
|
1039
1023
|
tabindex: isDisabled && '-1',
|
|
1040
1024
|
htmlId: htmlId,
|
|
1041
1025
|
a11y: {
|
|
@@ -1046,12 +1030,9 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1046
1030
|
ariaOwns: setAriaId,
|
|
1047
1031
|
ariaDescribedby: ariaErrorId
|
|
1048
1032
|
},
|
|
1049
|
-
autoComplete:
|
|
1050
|
-
},
|
|
1051
|
-
|
|
1052
|
-
align: "vertical"
|
|
1053
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1054
|
-
className: "".concat(_MultiSelectModule["default"]["delete"], " ").concat(_MultiSelectModule["default"]["".concat(palette, "Delete")]),
|
|
1033
|
+
autoComplete: false
|
|
1034
|
+
})), !isReadOnly && !isDisabled && selectedGroupOptions.length > 1 ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1035
|
+
className: _MultiSelectModule["default"]["delete"],
|
|
1055
1036
|
dataId: "".concat(dataId, "_clearIcon"),
|
|
1056
1037
|
"data-title": clearText,
|
|
1057
1038
|
onClick: this.handleDeselectAll,
|
|
@@ -1060,89 +1041,79 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1060
1041
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
1061
1042
|
name: "ZD-delete",
|
|
1062
1043
|
size: "15"
|
|
1063
|
-
}))
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1044
|
+
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], {
|
|
1045
|
+
animationStyle: animationStyle,
|
|
1046
|
+
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
1047
|
+
getRef: getContainerRef,
|
|
1048
|
+
isActive: isPopupReady,
|
|
1049
|
+
isAnimate: true,
|
|
1050
|
+
isArrow: false,
|
|
1051
|
+
onClick: removeClose,
|
|
1052
|
+
needResponsive: needResponsive,
|
|
1053
|
+
isPadding: isPadding,
|
|
1054
|
+
isBoxPaddingNeed: !needSelectAll,
|
|
1055
|
+
htmlId: setAriaId,
|
|
1056
|
+
a11y: {
|
|
1057
|
+
role: 'listbox',
|
|
1058
|
+
ariaMultiselectable: true
|
|
1059
|
+
}
|
|
1060
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
1061
|
+
customClass: "".concat(_MultiSelectModule["default"].box, " ").concat(_MultiSelectModule["default"]["".concat(palette, "Box")]),
|
|
1062
|
+
onScroll: this.handleScroll
|
|
1063
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
1064
|
+
needSelectAll: needSelectAll,
|
|
1065
|
+
onSelect: this.handleSelectAll,
|
|
1066
|
+
selectAllText: selectAllText,
|
|
1067
|
+
suggestions: suggestionOptionIds,
|
|
1068
|
+
dataId: dataId
|
|
1069
|
+
})), isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1070
|
+
customClass: dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
1071
|
+
eleRef: this.suggestionContainerRef
|
|
1072
|
+
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
1073
|
+
key: 'SuggestonsParent'
|
|
1074
|
+
}, suggestionGroups.length ? suggestionGroups.map(function (group) {
|
|
1075
|
+
var _group$options = group.options,
|
|
1076
|
+
suggestions = _group$options === void 0 ? [] : _group$options;
|
|
1077
|
+
var groupId = group.id;
|
|
1078
|
+
var groupName = group.name;
|
|
1079
|
+
var hoverId = suggestionOptionIds[hoverIndex];
|
|
1080
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
1081
|
+
key: groupId
|
|
1082
|
+
}, groupName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1083
|
+
className: _MultiSelectModule["default"].groupTitle
|
|
1084
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
|
|
1085
|
+
text: groupName,
|
|
1080
1086
|
a11y: {
|
|
1081
|
-
role: '
|
|
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
|
-
className: _MultiSelectModule["default"].groupTitle
|
|
1112
|
-
}, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
|
|
1113
|
-
text: groupName,
|
|
1114
|
-
a11y: {
|
|
1115
|
-
role: 'heading'
|
|
1116
|
-
}
|
|
1117
|
-
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1118
|
-
suggestions: suggestions,
|
|
1119
|
-
selectedOptions: selectedOptionIds,
|
|
1120
|
-
getRef: _this5.suggestionItemRef,
|
|
1121
|
-
hoverId: hoverId,
|
|
1122
|
-
onClick: _this5.handleSelectOption,
|
|
1123
|
-
onMouseEnter: _this5.handleMouseEnter,
|
|
1124
|
-
needTick: true,
|
|
1125
|
-
listItemSize: listItemSize,
|
|
1126
|
-
a11y: {
|
|
1127
|
-
role: 'option'
|
|
1128
|
-
}
|
|
1129
|
-
}));
|
|
1130
|
-
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1131
|
-
options: revampedGroups,
|
|
1132
|
-
searchString: searchStr,
|
|
1133
|
-
suggestions: suggestionGroups,
|
|
1134
|
-
dataId: dataId,
|
|
1135
|
-
isLoading: isFetchingOptions,
|
|
1136
|
-
i18nKeys: i18nKeys,
|
|
1137
|
-
htmlId: ariaErrorId
|
|
1138
|
-
}), isNextOptions && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1139
|
-
className: _MultiSelectModule["default"].loader
|
|
1140
|
-
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
1141
|
-
className: _MultiSelectModule["default"].loader
|
|
1142
|
-
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)), getFooter ? isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
1143
|
-
className: _MultiSelectModule["default"].loader
|
|
1144
|
-
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)) : null)));
|
|
1145
|
-
}) : null);
|
|
1087
|
+
role: 'heading'
|
|
1088
|
+
}
|
|
1089
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1090
|
+
suggestions: suggestions,
|
|
1091
|
+
selectedOptions: selectedOptionIds,
|
|
1092
|
+
getRef: _this5.suggestionItemRef,
|
|
1093
|
+
hoverId: hoverId,
|
|
1094
|
+
onClick: _this5.handleSelectOption,
|
|
1095
|
+
onMouseEnter: _this5.handleMouseEnter,
|
|
1096
|
+
needTick: true,
|
|
1097
|
+
listItemSize: listItemSize,
|
|
1098
|
+
a11y: {
|
|
1099
|
+
role: 'option'
|
|
1100
|
+
}
|
|
1101
|
+
}));
|
|
1102
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1103
|
+
options: revampedGroups,
|
|
1104
|
+
searchString: searchStr,
|
|
1105
|
+
suggestions: suggestionGroups,
|
|
1106
|
+
dataId: dataId,
|
|
1107
|
+
isLoading: isFetchingOptions,
|
|
1108
|
+
i18nKeys: i18nKeys,
|
|
1109
|
+
htmlId: ariaErrorId
|
|
1110
|
+
}), isNextOptions && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1111
|
+
className: _MultiSelectModule["default"].loader
|
|
1112
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
1113
|
+
className: _MultiSelectModule["default"].loader
|
|
1114
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)), getFooter ? isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
1115
|
+
className: _MultiSelectModule["default"].loader
|
|
1116
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)) : null)) : null);
|
|
1146
1117
|
}
|
|
1147
1118
|
}]);
|
|
1148
1119
|
|
|
@@ -1151,7 +1122,6 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1151
1122
|
|
|
1152
1123
|
AdvancedGroupMultiSelect.defaultProps = {
|
|
1153
1124
|
animationStyle: 'bounce',
|
|
1154
|
-
autoComplete: (0, _Config.getLibraryConfig)('autoComplete'),
|
|
1155
1125
|
dataId: 'multiSelect',
|
|
1156
1126
|
defaultDropBoxPosition: 'bottom',
|
|
1157
1127
|
dropBoxSize: 'small',
|
|
@@ -1182,12 +1152,10 @@ AdvancedGroupMultiSelect.defaultProps = {
|
|
|
1182
1152
|
i18nKeys: {},
|
|
1183
1153
|
a11y: {},
|
|
1184
1154
|
isSearchClearOnSelect: true,
|
|
1185
|
-
needEffect: _propTypes["default"].bool
|
|
1186
|
-
palette: 'default'
|
|
1155
|
+
needEffect: _propTypes["default"].bool
|
|
1187
1156
|
};
|
|
1188
1157
|
AdvancedGroupMultiSelect.propTypes = {
|
|
1189
1158
|
animationStyle: _propTypes["default"].string,
|
|
1190
|
-
autoComplete: _propTypes["default"].bool,
|
|
1191
1159
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
1192
1160
|
customClass: _propTypes["default"].string,
|
|
1193
1161
|
dataId: _propTypes["default"].string,
|
|
@@ -23,7 +23,9 @@ var _MultiSelectHeader = _interopRequireDefault(require("./MultiSelectHeader"));
|
|
|
23
23
|
|
|
24
24
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
27
|
+
|
|
28
|
+
var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
|
|
27
29
|
|
|
28
30
|
var _Layout = require("../Layout");
|
|
29
31
|
|
|
@@ -33,11 +35,7 @@ var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
|
33
35
|
|
|
34
36
|
var _IdProvider = require("../Provider/IdProvider");
|
|
35
37
|
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
39
|
-
|
|
40
|
-
var _MultiSelectModule = _interopRequireDefault(require("./MultiSelect.module.css"));
|
|
38
|
+
var _AdvancedMultiSelectModule = _interopRequireDefault(require("./AdvancedMultiSelect.module.css"));
|
|
41
39
|
|
|
42
40
|
var _Common = require("../utils/Common.js");
|
|
43
41
|
|
|
@@ -49,7 +47,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
49
47
|
|
|
50
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
51
49
|
|
|
52
|
-
function _extends() { _extends = Object.assign
|
|
50
|
+
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); }
|
|
53
51
|
|
|
54
52
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
55
53
|
|
|
@@ -71,7 +69,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
71
69
|
|
|
72
70
|
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); }
|
|
73
71
|
|
|
74
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
72
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
75
73
|
|
|
76
74
|
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); }; }
|
|
77
75
|
|
|
@@ -81,7 +79,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
81
79
|
|
|
82
80
|
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; } }
|
|
83
81
|
|
|
84
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
82
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
85
83
|
|
|
86
84
|
/* eslint-disable react/sort-prop-types */
|
|
87
85
|
|
|
@@ -377,21 +375,9 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
377
375
|
preventScroll: true
|
|
378
376
|
});
|
|
379
377
|
}
|
|
380
|
-
}, {
|
|
381
|
-
key: "responsiveFunc",
|
|
382
|
-
value: function responsiveFunc(_ref2) {
|
|
383
|
-
var mediaQueryOR = _ref2.mediaQueryOR;
|
|
384
|
-
return {
|
|
385
|
-
tabletMode: mediaQueryOR([{
|
|
386
|
-
maxWidth: 700
|
|
387
|
-
}])
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
378
|
}, {
|
|
391
379
|
key: "render",
|
|
392
380
|
value: function render() {
|
|
393
|
-
var _this4 = this;
|
|
394
|
-
|
|
395
381
|
var _this$props5 = this.props,
|
|
396
382
|
isReadOnly = _this$props5.isReadOnly,
|
|
397
383
|
needSelectAll = _this$props5.needSelectAll,
|
|
@@ -468,14 +454,14 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
468
454
|
|
|
469
455
|
var isShowClearIcon = !isReadOnly && !isDisabled && isShowClear;
|
|
470
456
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
471
|
-
className: "".concat(
|
|
457
|
+
className: "".concat(_AdvancedMultiSelectModule["default"].wrapper, " ").concat(isDisabled ? _AdvancedMultiSelectModule["default"].disabled : '', " ").concat(borderColor === 'transparent' ? _AdvancedMultiSelectModule["default"].transparentContainer : '', " ").concat(needEffect && !(isDisabled || isReadOnly) ? _AdvancedMultiSelectModule["default"].effect : ''),
|
|
472
458
|
"data-id": dataIdMultiSelectComp,
|
|
473
459
|
"data-title": isDisabled ? title : null,
|
|
474
460
|
onClick: this.handleInputFocus
|
|
475
461
|
}, /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
476
462
|
align: "vertical",
|
|
477
463
|
alignBox: "row",
|
|
478
|
-
className: "".concat(
|
|
464
|
+
className: "".concat(_AdvancedMultiSelectModule["default"].container, " ").concat(_AdvancedMultiSelectModule["default"][size], " ").concat(isActive && needBorder ? _AdvancedMultiSelectModule["default"].active : '', " ").concat(needBorder ? _AdvancedMultiSelectModule["default"].hasBorder : '', " ").concat(needBorder ? !isDisabled ? _AdvancedMultiSelectModule["default"]["borderColor_".concat(borderColor)] : _AdvancedMultiSelectModule["default"].borderColor_transparent : ''),
|
|
479
465
|
eleRef: this.selectedOptionContainerRef,
|
|
480
466
|
wrap: "wrap"
|
|
481
467
|
}, /*#__PURE__*/_react["default"].createElement(_SelectedOptions["default"], {
|
|
@@ -486,17 +472,12 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
486
472
|
onRemove: this.handleRemoveOption,
|
|
487
473
|
onSelect: this.handleClickSelectedOption
|
|
488
474
|
}), moreCount > 0 ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
489
|
-
className:
|
|
475
|
+
className: _AdvancedMultiSelectModule["default"].more,
|
|
490
476
|
onClick: this.handleMoreClick,
|
|
491
477
|
tagName: "button"
|
|
492
478
|
}, "+ ".concat(moreCount, " More")) : null, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
493
|
-
flexible: true
|
|
494
|
-
|
|
495
|
-
adjust: true,
|
|
496
|
-
shrink: true
|
|
497
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
498
|
-
className: " ".concat(_MultiSelectModule["default"].custmSpan, " ").concat(textBoxSize === 'xmedium' ? _MultiSelectModule["default"].custmSpanXmedium : _MultiSelectModule["default"].custmSpanMedium, " ").concat(isShowClearIcon ? _MultiSelectModule["default"].clearIconSpace : '', "\n ")
|
|
499
|
-
}, searchStr), /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
479
|
+
flexible: true
|
|
480
|
+
}, /*#__PURE__*/_react["default"].createElement(_TextBox["default"], {
|
|
500
481
|
isDisabled: isDisabled,
|
|
501
482
|
inputRef: this.searchInputRef,
|
|
502
483
|
needBorder: false,
|
|
@@ -511,9 +492,6 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
511
492
|
variant: variant,
|
|
512
493
|
isReadOnly: isReadOnly,
|
|
513
494
|
tabindex: isDisabled && '-1',
|
|
514
|
-
customClass: {
|
|
515
|
-
customTBoxWrap: _MultiSelectModule["default"].custmInputWrapper
|
|
516
|
-
},
|
|
517
495
|
htmlId: htmlId,
|
|
518
496
|
a11y: {
|
|
519
497
|
role: 'combobox',
|
|
@@ -524,11 +502,8 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
524
502
|
ariaDescribedby: ariaErrorId
|
|
525
503
|
},
|
|
526
504
|
autoComplete: false
|
|
527
|
-
}, isShowClearIcon ? /*#__PURE__*/_react["default"].createElement(_Layout.
|
|
528
|
-
|
|
529
|
-
align: "vertical"
|
|
530
|
-
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
531
|
-
className: "".concat(_MultiSelectModule["default"]["delete"]),
|
|
505
|
+
})), isShowClearIcon ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
506
|
+
className: _AdvancedMultiSelectModule["default"]["delete"],
|
|
532
507
|
dataId: dataIdClearIcon,
|
|
533
508
|
"data-title": clearText,
|
|
534
509
|
onClick: this.handleDeselectAll,
|
|
@@ -537,66 +512,54 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
537
512
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
538
513
|
name: "ZD-delete",
|
|
539
514
|
size: "15"
|
|
540
|
-
}))
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
role: 'option'
|
|
589
|
-
}
|
|
590
|
-
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
591
|
-
isLoading: isFetchingOptions,
|
|
592
|
-
options: options,
|
|
593
|
-
searchString: searchStr,
|
|
594
|
-
suggestions: suggestions,
|
|
595
|
-
dataId: dataIdLoading,
|
|
596
|
-
i18nKeys: i18nKeys,
|
|
597
|
-
htmlId: ariaErrorId
|
|
598
|
-
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)));
|
|
599
|
-
}) : null);
|
|
515
|
+
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_DropBox["default"], _extends({
|
|
516
|
+
animationStyle: animationStyle,
|
|
517
|
+
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
518
|
+
getRef: getContainerRef,
|
|
519
|
+
isActive: isPopupReady,
|
|
520
|
+
isAnimate: isAnimate,
|
|
521
|
+
isArrow: false,
|
|
522
|
+
onClick: removeClose,
|
|
523
|
+
isPadding: false,
|
|
524
|
+
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
525
|
+
htmlId: setAriaId,
|
|
526
|
+
a11y: {
|
|
527
|
+
role: 'listbox',
|
|
528
|
+
ariaMultiselectable: true
|
|
529
|
+
}
|
|
530
|
+
}, DropBoxProps), /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
531
|
+
customClass: _AdvancedMultiSelectModule["default"].box,
|
|
532
|
+
onScroll: this.handleScroll
|
|
533
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
534
|
+
needSelectAll: needSelectAll,
|
|
535
|
+
onSelect: this.handleSelectAll,
|
|
536
|
+
selectAllText: selectAllText,
|
|
537
|
+
suggestions: suggestions,
|
|
538
|
+
dataId: dataIdSelectAllEle
|
|
539
|
+
})), /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
540
|
+
customClass: dropBoxSize ? _AdvancedMultiSelectModule["default"][dropBoxSize] : '',
|
|
541
|
+
eleRef: this.suggestionContainerRef
|
|
542
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
543
|
+
suggestions: suggestions,
|
|
544
|
+
selectedOptions: allselectedOptionIds,
|
|
545
|
+
getRef: this.suggestionItemRef,
|
|
546
|
+
hoverOption: hoverOption,
|
|
547
|
+
onClick: this.handleSelectOption,
|
|
548
|
+
onMouseEnter: this.handleMouseEnter,
|
|
549
|
+
needTick: true,
|
|
550
|
+
listItemSize: listItemSize,
|
|
551
|
+
a11y: {
|
|
552
|
+
role: 'option'
|
|
553
|
+
}
|
|
554
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
555
|
+
isLoading: isFetchingOptions,
|
|
556
|
+
options: options,
|
|
557
|
+
searchString: searchStr,
|
|
558
|
+
suggestions: suggestions,
|
|
559
|
+
dataId: dataIdLoading,
|
|
560
|
+
i18nKeys: i18nKeys,
|
|
561
|
+
htmlId: ariaErrorId
|
|
562
|
+
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)) : null);
|
|
600
563
|
}
|
|
601
564
|
}]);
|
|
602
565
|
|
|
@@ -23,7 +23,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
23
23
|
|
|
24
24
|
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); }
|
|
25
25
|
|
|
26
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
26
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
27
27
|
|
|
28
28
|
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); }; }
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
33
33
|
|
|
34
34
|
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; } }
|
|
35
35
|
|
|
36
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf
|
|
36
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
37
37
|
|
|
38
38
|
var EmptyState = /*#__PURE__*/function (_React$PureComponent) {
|
|
39
39
|
_inherits(EmptyState, _React$PureComponent);
|