@zohodesk/components 1.0.0-alpha-238 → 1.0.0-alpha-241
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 +21 -6
- package/assets/Appearance/dark/mode/darkMode.module.css +0 -2
- package/assets/Appearance/default/mode/defaultMode.module.css +1 -3
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +10 -12
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +2 -2
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +2 -2
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +2 -2
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +2 -2
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +2 -2
- package/docs/external/active-line.js +72 -0
- package/docs/external/autorefresh.js +47 -0
- package/docs/external/codemirror.js +9681 -0
- package/docs/external/css/hopscotch.css +576 -0
- package/docs/external/css/styleGuide.css +1100 -0
- package/docs/external/css.js +466 -0
- package/docs/external/designTokens.js +1 -0
- package/docs/external/foldcode.js +152 -0
- package/docs/external/format.js +129 -0
- package/docs/external/htmlmixed.js +84 -0
- package/docs/external/images/bottom.png +0 -0
- package/docs/external/images/bottombg.jpg +0 -0
- package/docs/external/images/desk.png +0 -0
- package/docs/external/images/desklogo.png +0 -0
- package/docs/external/images/menu.png +0 -0
- package/docs/external/index.html +127 -0
- package/docs/external/javascript.js +422 -0
- package/docs/external/jsx.js +148 -0
- package/docs/external/matchbrackets.js +145 -0
- package/docs/external/xml.js +322 -0
- package/docs/package.json +41 -0
- package/docs/src/index.js +1311 -0
- package/es/Accordion/docs/Accordion__Demo.docs.js +80 -0
- package/es/Animation/docs/Animation__default.docs.js +34 -0
- package/es/Animation/docs/Animation__fadeIn.docs.js +34 -0
- package/es/Animation/docs/Animation__scaleIn.docs.js +34 -0
- package/es/Animation/docs/Animation__skewIn.docs.js +34 -0
- package/es/Animation/docs/Animation__slideDown.docs.js +34 -0
- package/es/Animation/docs/Animation__slideLeft.docs.js +34 -0
- package/es/Animation/docs/Animation__zoomIn.docs.js +34 -0
- package/es/AppContainer/docs/AppContainer__default.docs.js +20 -0
- package/es/Avatar/docs/Avatar__custom.docs.js +29 -0
- package/es/Avatar/docs/Avatar__default.docs.js +29 -0
- package/es/Avatar/docs/Avatar__palette.docs.js +49 -0
- package/es/Avatar/docs/Avatar__text.docs.js +28 -0
- package/es/AvatarTeam/docs/AvatarTeam__custom.docs.js +73 -0
- package/es/AvatarTeam/docs/AvatarTeam__default.docs.js +31 -0
- package/es/AvatarTeam/docs/AvatarTeam__palette.docs.js +50 -0
- package/es/AvatarTeam/docs/AvatarTeam__size.docs.js +49 -0
- package/es/Button/docs/Button__custom.docs.js +771 -0
- package/es/Button/docs/Button__default.docs.js +536 -0
- package/es/Buttongroup/docs/Buttongroup__custom.docs.js +37 -0
- package/es/Buttongroup/docs/Buttongroup__footer.docs.js +33 -0
- package/es/Buttongroup/docs/Buttongroup__header.docs.js +42 -0
- package/es/Card/docs/Card__Custom.docs.js +34 -0
- package/es/Card/docs/Card__Default.docs.js +37 -0
- package/es/Card/docs/Card__Scroll.docs.js +59 -0
- package/es/CheckBox/docs/CheckBox__custom.docs.js +293 -0
- package/es/CheckBox/docs/CheckBox__default.docs.js +219 -0
- package/es/DateTime/DateTime.js +46 -19
- package/es/DateTime/DateWidget.js +10 -2
- package/es/DateTime/DateWidget.module.css +0 -4
- package/es/DateTime/docs/DateTime__default.docs.js +91 -0
- package/es/DateTime/docs/DateWidget__default.docs.js +183 -0
- package/es/DateTime/docs/timezonedata.json +1 -0
- package/es/DropBox/docs/DropBox__custom.docs.js +66 -0
- package/es/DropBox/docs/DropBox__customOrder.docs.js +92 -0
- package/es/DropBox/docs/DropBox__fixedPosition.docs.js +91 -0
- package/es/DropBox/docs/DropBox__position.docs.js +87 -0
- package/es/DropBox/docs/DropBox__size.docs.js +61 -0
- package/es/DropDown/docs/DropDownHeading__custom.docs.js +23 -0
- package/es/DropDown/docs/DropDownHeading__default.docs.js +21 -0
- package/es/Label/docs/Label__clipped.docs.js +27 -0
- package/es/Label/docs/Label__custom.docs.js +30 -0
- package/es/Label/docs/Label__palette.docs.js +42 -0
- package/es/Label/docs/Label__size.docs.js +29 -0
- package/es/Label/docs/Label__type.docs.js +37 -0
- package/es/Layout/docs/Layout__Hidden.docs.js +77 -0
- package/es/Layout/docs/Layout__default.docs.js +49 -0
- package/es/Layout/docs/Layout__four_Column.docs.js +85 -0
- package/es/Layout/docs/Layout__three_Column.docs.js +76 -0
- package/es/Layout/docs/Layout__two_Column.docs.js +69 -0
- package/es/LightNightMode/docs/AlternativeColors.docs.js +74 -0
- package/es/ListItem/docs/ListItemWithAvatar__custom.docs.js +155 -0
- package/es/ListItem/docs/ListItemWithAvatar__default.docs.js +112 -0
- package/es/ListItem/docs/ListItemWithCheckBox__custom.docs.js +91 -0
- package/es/ListItem/docs/ListItemWithCheckBox__default.docs.js +65 -0
- package/es/ListItem/docs/ListItemWithIcon__custom.docs.js +68 -0
- package/es/ListItem/docs/ListItemWithIcon__default.docs.js +62 -0
- package/es/ListItem/docs/ListItemWithRadio__custom.docs.js +91 -0
- package/es/ListItem/docs/ListItemWithRadio__default.docs.js +65 -0
- package/es/ListItem/docs/ListItem__custom.docs.js +114 -0
- package/es/ListItem/docs/ListItem__default.docs.js +82 -0
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +100 -75
- package/es/MultiSelect/AdvancedMultiSelect.js +75 -49
- package/es/MultiSelect/MultiSelect.js +80 -55
- package/es/MultiSelect/MultiSelect.module.css +6 -1
- package/es/MultiSelect/MultiSelectWithAvatar.js +77 -52
- package/es/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +125 -0
- package/es/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +114 -0
- package/es/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +141 -0
- package/es/MultiSelect/docs/MultiSelect__default.docs.js +161 -0
- package/es/PopOver/PopOver.js +10 -4
- package/es/PopOver/docs/PopOver__default.docs.js +32 -0
- package/es/Provider/docs/Provider_Id__Class.docs.js +29 -0
- package/es/Provider/docs/Provider_Id__Function.docs.js +18 -0
- package/es/Provider/docs/Provider_Zindex__Class.docs.js +32 -0
- package/es/Provider/docs/Provider_Zindex__Function.docs.js +23 -0
- package/es/Provider.js +5 -105
- package/es/Radio/docs/Radio__custom.docs.js +245 -0
- package/es/Radio/docs/Radio__default.docs.js +169 -0
- package/es/Responsive/docs/Responsive__Custom.docs.js +206 -0
- package/es/Responsive/docs/Responsive__default.docs.js +97 -0
- package/es/Responsive/docs/style.module.css +56 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.js +74 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/es/Ribbon/docs/Ribbon__custom.docs.js +386 -0
- package/es/Ribbon/docs/Ribbon__default.docs.js +342 -0
- package/es/RippleEffect/docs/RippleEffect__default.docs.js +435 -0
- package/es/Select/GroupSelect.js +99 -74
- package/es/Select/Select.js +95 -68
- package/es/Select/Select.module.css +6 -0
- package/es/Select/SelectWithAvatar.js +91 -66
- package/es/Select/SelectWithIcon.js +99 -74
- package/es/Select/docs/GroupSelect__default.docs.js +149 -0
- package/es/Select/docs/SelectWithAvatar__default.docs.js +97 -0
- package/es/Select/docs/SelectWithIcon__default.docs.js +138 -0
- package/es/Select/docs/Select__default.docs.js +288 -0
- package/es/Stencils/docs/Stencils__custom.docs.js +45 -0
- package/es/Stencils/docs/Stencils__default.docs.js +50 -0
- package/es/Switch/docs/Switch__custom.docs.js +153 -0
- package/es/Switch/docs/Switch__default.docs.js +107 -0
- package/es/Tab/Tabs.js +68 -43
- package/es/Tab/Tabs.module.css +2 -1
- package/es/Tab/docs/Tab__default.docs.js +258 -0
- package/es/Tab/docs/tabdocs.module.css +29 -0
- package/es/Tag/docs/Tag__custom.docs.js +368 -0
- package/es/Tag/docs/Tag__default.docs.js +323 -0
- package/es/TextBox/docs/TextBox__custom.docs.js +43 -0
- package/es/TextBox/docs/TextBox__default.docs.js +40 -0
- package/es/TextBox/docs/TextBox__size.docs.js +38 -0
- package/es/TextBox/docs/TextBox__variant.docs.js +38 -0
- package/es/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +89 -0
- package/es/TextBoxIcon/docs/TextBoxIcon__default.docs.js +61 -0
- package/es/Textarea/docs/Textarea__animated.docs.js +41 -0
- package/es/Textarea/docs/Textarea__custom.docs.js +82 -0
- package/es/Textarea/docs/Textarea__default.docs.js +76 -0
- package/es/Textarea/docs/Textarea__disabled.docs.js +29 -0
- package/es/Tooltip/Tooltip.js +1 -1
- package/es/Tooltip/docs/Tooltip__default.docs.js +371 -0
- package/es/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +97 -0
- package/es/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +150 -0
- package/es/a11y/FocusScope/docs/FocusScope__default.docs.js +139 -0
- package/es/beta/FocusRing/docs/FocusRing__default.docs.js +48 -0
- package/es/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +72 -0
- package/es/index.js +2 -1
- package/es/semantic/Button/docs/Button__default.docs.js +20 -0
- package/lib/Accordion/docs/Accordion__Demo.docs.js +126 -0
- package/lib/Animation/docs/Animation__default.docs.js +85 -0
- package/lib/Animation/docs/Animation__fadeIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__scaleIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__skewIn.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideDown.docs.js +85 -0
- package/lib/Animation/docs/Animation__slideLeft.docs.js +85 -0
- package/lib/Animation/docs/Animation__zoomIn.docs.js +85 -0
- package/lib/AppContainer/docs/AppContainer__default.docs.js +70 -0
- package/lib/Avatar/docs/Avatar__custom.docs.js +87 -0
- package/lib/Avatar/docs/Avatar__default.docs.js +83 -0
- package/lib/Avatar/docs/Avatar__palette.docs.js +107 -0
- package/lib/Avatar/docs/Avatar__text.docs.js +86 -0
- package/lib/AvatarTeam/docs/AvatarTeam__custom.docs.js +124 -0
- package/lib/AvatarTeam/docs/AvatarTeam__default.docs.js +82 -0
- package/lib/AvatarTeam/docs/AvatarTeam__palette.docs.js +101 -0
- package/lib/AvatarTeam/docs/AvatarTeam__size.docs.js +100 -0
- package/lib/Button/docs/Button__custom.docs.js +826 -0
- package/lib/Button/docs/Button__default.docs.js +590 -0
- package/lib/Buttongroup/docs/Buttongroup__custom.docs.js +89 -0
- package/lib/Buttongroup/docs/Buttongroup__footer.docs.js +85 -0
- package/lib/Buttongroup/docs/Buttongroup__header.docs.js +98 -0
- package/lib/Card/docs/Card__Custom.docs.js +90 -0
- package/lib/Card/docs/Card__Default.docs.js +92 -0
- package/lib/Card/docs/Card__Scroll.docs.js +114 -0
- package/lib/CheckBox/docs/CheckBox__custom.docs.js +348 -0
- package/lib/CheckBox/docs/CheckBox__default.docs.js +273 -0
- package/lib/DateTime/DateTime.js +46 -20
- package/lib/DateTime/DateWidget.js +10 -2
- package/lib/DateTime/DateWidget.module.css +0 -4
- package/lib/DateTime/docs/DateTime__default.docs.js +142 -0
- package/lib/DateTime/docs/DateWidget__default.docs.js +240 -0
- package/lib/DateTime/docs/timezonedata.json +1 -0
- package/lib/DropBox/docs/DropBox__custom.docs.js +122 -0
- package/lib/DropBox/docs/DropBox__customOrder.docs.js +141 -0
- package/lib/DropBox/docs/DropBox__fixedPosition.docs.js +140 -0
- package/lib/DropBox/docs/DropBox__position.docs.js +142 -0
- package/lib/DropBox/docs/DropBox__size.docs.js +116 -0
- package/lib/DropDown/docs/DropDownHeading__custom.docs.js +73 -0
- package/lib/DropDown/docs/DropDownHeading__default.docs.js +70 -0
- package/lib/Label/docs/Label__clipped.docs.js +81 -0
- package/lib/Label/docs/Label__custom.docs.js +85 -0
- package/lib/Label/docs/Label__palette.docs.js +96 -0
- package/lib/Label/docs/Label__size.docs.js +83 -0
- package/lib/Label/docs/Label__type.docs.js +91 -0
- package/lib/Layout/docs/Layout__Hidden.docs.js +127 -0
- package/lib/Layout/docs/Layout__default.docs.js +98 -0
- package/lib/Layout/docs/Layout__four_Column.docs.js +135 -0
- package/lib/Layout/docs/Layout__three_Column.docs.js +126 -0
- package/lib/Layout/docs/Layout__two_Column.docs.js +119 -0
- package/lib/LightNightMode/docs/AlternativeColors.docs.js +131 -0
- package/lib/ListItem/docs/ListItemWithAvatar__custom.docs.js +206 -0
- package/lib/ListItem/docs/ListItemWithAvatar__default.docs.js +162 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithCheckBox__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItemWithIcon__custom.docs.js +119 -0
- package/lib/ListItem/docs/ListItemWithIcon__default.docs.js +112 -0
- package/lib/ListItem/docs/ListItemWithRadio__custom.docs.js +142 -0
- package/lib/ListItem/docs/ListItemWithRadio__default.docs.js +115 -0
- package/lib/ListItem/docs/ListItem__custom.docs.js +164 -0
- package/lib/ListItem/docs/ListItem__default.docs.js +131 -0
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +99 -77
- package/lib/MultiSelect/AdvancedMultiSelect.js +76 -50
- package/lib/MultiSelect/MultiSelect.js +81 -56
- package/lib/MultiSelect/MultiSelect.module.css +6 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +78 -53
- package/lib/MultiSelect/docs/AdvancedGroupMultiSelect__default.docs.js +177 -0
- package/lib/MultiSelect/docs/AdvancedMultiSelect__default.docs.js +165 -0
- package/lib/MultiSelect/docs/MultiSelectWithAvatar__default.docs.js +191 -0
- package/lib/MultiSelect/docs/MultiSelect__default.docs.js +214 -0
- package/lib/PopOver/PopOver.js +11 -4
- package/lib/PopOver/docs/PopOver__default.docs.js +86 -0
- package/lib/Provider/docs/Provider_Id__Class.docs.js +77 -0
- package/lib/Provider/docs/Provider_Id__Function.docs.js +29 -0
- package/lib/Provider/docs/Provider_Zindex__Class.docs.js +80 -0
- package/lib/Provider/docs/Provider_Zindex__Function.docs.js +34 -0
- package/lib/Provider.js +6 -123
- package/lib/Radio/docs/Radio__custom.docs.js +299 -0
- package/lib/Radio/docs/Radio__default.docs.js +222 -0
- package/lib/Responsive/docs/Responsive__Custom.docs.js +272 -0
- package/lib/Responsive/docs/Responsive__default.docs.js +142 -0
- package/lib/Responsive/docs/style.module.css +56 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +130 -0
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -0
- package/lib/Ribbon/docs/Ribbon__custom.docs.js +437 -0
- package/lib/Ribbon/docs/Ribbon__default.docs.js +392 -0
- package/lib/RippleEffect/docs/RippleEffect__default.docs.js +484 -0
- package/lib/Select/GroupSelect.js +99 -76
- package/lib/Select/Select.js +102 -75
- package/lib/Select/Select.module.css +6 -0
- package/lib/Select/SelectWithAvatar.js +96 -71
- package/lib/Select/SelectWithIcon.js +97 -74
- package/lib/Select/docs/GroupSelect__default.docs.js +199 -0
- package/lib/Select/docs/SelectWithAvatar__default.docs.js +152 -0
- package/lib/Select/docs/SelectWithIcon__default.docs.js +190 -0
- package/lib/Select/docs/Select__default.docs.js +340 -0
- package/lib/Stencils/docs/Stencils__custom.docs.js +96 -0
- package/lib/Stencils/docs/Stencils__default.docs.js +101 -0
- package/lib/Switch/docs/Switch__custom.docs.js +203 -0
- package/lib/Switch/docs/Switch__default.docs.js +156 -0
- package/lib/Tab/Tabs.js +67 -44
- package/lib/Tab/Tabs.module.css +2 -1
- package/lib/Tab/docs/Tab__default.docs.js +308 -0
- package/lib/Tab/docs/tabdocs.module.css +29 -0
- package/lib/Tag/docs/Tag__custom.docs.js +423 -0
- package/lib/Tag/docs/Tag__default.docs.js +377 -0
- package/lib/TextBox/docs/TextBox__custom.docs.js +98 -0
- package/lib/TextBox/docs/TextBox__default.docs.js +95 -0
- package/lib/TextBox/docs/TextBox__size.docs.js +93 -0
- package/lib/TextBox/docs/TextBox__variant.docs.js +93 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__custom.docs.js +145 -0
- package/lib/TextBoxIcon/docs/TextBoxIcon__default.docs.js +117 -0
- package/lib/Textarea/docs/Textarea__animated.docs.js +95 -0
- package/lib/Textarea/docs/Textarea__custom.docs.js +137 -0
- package/lib/Textarea/docs/Textarea__default.docs.js +130 -0
- package/lib/Textarea/docs/Textarea__disabled.docs.js +83 -0
- package/lib/Tooltip/Tooltip.js +1 -1
- package/lib/Tooltip/docs/Tooltip__default.docs.js +430 -0
- package/lib/VelocityAnimation/VelocityAnimation/docs/VelocityAnimation__demo.docs.js +150 -0
- package/lib/VelocityAnimation/VelocityAnimationGroup/docs/VelocityAnimationGroup__demo.docs.js +206 -0
- package/lib/a11y/FocusScope/docs/FocusScope__default.docs.js +191 -0
- package/lib/beta/FocusRing/docs/FocusRing__default.docs.js +101 -0
- package/lib/deprecated/PortalLayer/docs/PortalLayer__default.docs.js +145 -0
- package/lib/index.js +10 -1
- package/lib/semantic/Button/docs/Button__default.docs.js +66 -0
- package/package.json +3 -3
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _ListItem = _interopRequireDefault(require("../ListItem"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
|
+
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
+
|
|
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
|
+
|
|
24
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
25
|
+
|
|
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
|
+
|
|
28
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
29
|
+
|
|
30
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
|
+
|
|
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
|
+
|
|
34
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
|
+
|
|
36
|
+
var ListItem__default = /*#__PURE__*/function (_React$Component) {
|
|
37
|
+
_inherits(ListItem__default, _React$Component);
|
|
38
|
+
|
|
39
|
+
var _super = _createSuper(ListItem__default);
|
|
40
|
+
|
|
41
|
+
function ListItem__default() {
|
|
42
|
+
_classCallCheck(this, ListItem__default);
|
|
43
|
+
|
|
44
|
+
return _super.apply(this, arguments);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
_createClass(ListItem__default, [{
|
|
48
|
+
key: "render",
|
|
49
|
+
value: function render() {
|
|
50
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
51
|
+
style: {
|
|
52
|
+
width: '250px'
|
|
53
|
+
}
|
|
54
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
+
style: {
|
|
56
|
+
marginBottom: '10px'
|
|
57
|
+
}
|
|
58
|
+
}, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
59
|
+
value: "ListItem",
|
|
60
|
+
isLink: true,
|
|
61
|
+
href: "https://zoho.com",
|
|
62
|
+
disableTitle: "Disabled list"
|
|
63
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
64
|
+
style: {
|
|
65
|
+
marginBottom: '10px'
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
68
|
+
value: "ListItem",
|
|
69
|
+
autoHover: true,
|
|
70
|
+
disableTitle: "Disabled list"
|
|
71
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
72
|
+
style: {
|
|
73
|
+
marginBottom: '10px'
|
|
74
|
+
}
|
|
75
|
+
}, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
76
|
+
value: "ListItem",
|
|
77
|
+
highlight: true,
|
|
78
|
+
disableTitle: "Disabled list"
|
|
79
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
80
|
+
style: {
|
|
81
|
+
marginBottom: '10px'
|
|
82
|
+
}
|
|
83
|
+
}, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
84
|
+
value: "ListItem",
|
|
85
|
+
active: true,
|
|
86
|
+
disableTitle: "Disabled list",
|
|
87
|
+
title: "ListItem title"
|
|
88
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
89
|
+
style: {
|
|
90
|
+
marginBottom: '10px'
|
|
91
|
+
}
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
93
|
+
value: "ListItem",
|
|
94
|
+
active: true,
|
|
95
|
+
needTick: true,
|
|
96
|
+
disableTitle: "disabled list"
|
|
97
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
98
|
+
style: {
|
|
99
|
+
marginBottom: '10px'
|
|
100
|
+
}
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
102
|
+
value: "ListItem disabled",
|
|
103
|
+
palette: "secondary",
|
|
104
|
+
autoHover: true,
|
|
105
|
+
isDisabled: true,
|
|
106
|
+
disableTitle: "disabled list"
|
|
107
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
108
|
+
style: {
|
|
109
|
+
marginBottom: '10px'
|
|
110
|
+
}
|
|
111
|
+
}, /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
|
|
112
|
+
autoHover: true,
|
|
113
|
+
active: true,
|
|
114
|
+
value: "ListItemListItemListItemListItemListItem"
|
|
115
|
+
}, "ChildrenChildrenChildren ChildrenChildrenChildrenChildren")));
|
|
116
|
+
}
|
|
117
|
+
}]);
|
|
118
|
+
|
|
119
|
+
return ListItem__default;
|
|
120
|
+
}(_react["default"].Component);
|
|
121
|
+
|
|
122
|
+
exports["default"] = ListItem__default;
|
|
123
|
+
|
|
124
|
+
if (false) {
|
|
125
|
+
ListItem__default.docs = {
|
|
126
|
+
componentGroup: 'Molecule',
|
|
127
|
+
folderName: 'Style Guide',
|
|
128
|
+
description: ' ',
|
|
129
|
+
external: true
|
|
130
|
+
};
|
|
131
|
+
}
|
|
@@ -15,8 +15,6 @@ var _Loader = _interopRequireDefault(require("@zohodesk/svg/lib/svg/Loader"));
|
|
|
15
15
|
|
|
16
16
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
17
17
|
|
|
18
|
-
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
19
|
-
|
|
20
18
|
var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
|
|
21
19
|
|
|
22
20
|
var _Layout = require("../Layout");
|
|
@@ -35,6 +33,10 @@ var _Card = _interopRequireWildcard(require("../Card/Card"));
|
|
|
35
33
|
|
|
36
34
|
var _IdProvider = require("../Provider/IdProvider");
|
|
37
35
|
|
|
36
|
+
var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
|
|
37
|
+
|
|
38
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
39
|
+
|
|
38
40
|
var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
39
41
|
|
|
40
42
|
var _MultiSelectModule = _interopRequireDefault(require("./MultiSelect.module.css"));
|
|
@@ -905,6 +907,16 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
905
907
|
notifyPopupToggle && notifyPopupToggle(isPopupOpen);
|
|
906
908
|
}
|
|
907
909
|
}
|
|
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
|
+
}
|
|
908
920
|
}, {
|
|
909
921
|
key: "render",
|
|
910
922
|
value: function render() {
|
|
@@ -922,8 +934,7 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
922
934
|
isPopupReady = _this$props8.isPopupReady,
|
|
923
935
|
defaultDropBoxPosition = _this$props8.defaultDropBoxPosition,
|
|
924
936
|
removeClose = _this$props8.removeClose,
|
|
925
|
-
|
|
926
|
-
needResponsive = _this$props8$needResp === void 0 ? false : _this$props8$needResp,
|
|
937
|
+
needResponsive = _this$props8.needResponsive,
|
|
927
938
|
animationStyle = _this$props8.animationStyle,
|
|
928
939
|
needSelectAll = _this$props8.needSelectAll,
|
|
929
940
|
selectAllText = _this$props8.selectAllText,
|
|
@@ -1043,79 +1054,89 @@ var AdvancedGroupMultiSelect = /*#__PURE__*/function (_React$Component) {
|
|
|
1043
1054
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
1044
1055
|
name: "ZD-delete",
|
|
1045
1056
|
size: "15"
|
|
1046
|
-
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
customClass: "".concat(_MultiSelectModule["default"].box, " ").concat(_MultiSelectModule["default"]["".concat(palette, "Box")]),
|
|
1064
|
-
onScroll: this.handleScroll
|
|
1065
|
-
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
1066
|
-
needSelectAll: needSelectAll,
|
|
1067
|
-
onSelect: this.handleSelectAll,
|
|
1068
|
-
selectAllText: selectAllText,
|
|
1069
|
-
suggestions: suggestionOptionIds,
|
|
1070
|
-
dataId: dataId
|
|
1071
|
-
})), isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1072
|
-
customClass: dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
1073
|
-
eleRef: this.suggestionContainerRef
|
|
1074
|
-
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
1075
|
-
key: 'SuggestonsParent'
|
|
1076
|
-
}, suggestionGroups.length ? suggestionGroups.map(function (group) {
|
|
1077
|
-
var _group$options = group.options,
|
|
1078
|
-
suggestions = _group$options === void 0 ? [] : _group$options;
|
|
1079
|
-
var groupId = group.id;
|
|
1080
|
-
var groupName = group.name;
|
|
1081
|
-
var hoverId = suggestionOptionIds[hoverIndex];
|
|
1082
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
1083
|
-
key: groupId
|
|
1084
|
-
}, groupName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1085
|
-
className: _MultiSelectModule["default"].groupTitle
|
|
1086
|
-
}, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
|
|
1087
|
-
text: groupName,
|
|
1057
|
+
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
1058
|
+
query: this.responsiveFunc,
|
|
1059
|
+
responsiveId: "Helmet"
|
|
1060
|
+
}, function (_ref6) {
|
|
1061
|
+
var tabletMode = _ref6.tabletMode;
|
|
1062
|
+
return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], {
|
|
1063
|
+
animationStyle: animationStyle,
|
|
1064
|
+
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
1065
|
+
getRef: getContainerRef,
|
|
1066
|
+
isActive: isPopupReady,
|
|
1067
|
+
isAnimate: true,
|
|
1068
|
+
isArrow: false,
|
|
1069
|
+
onClick: removeClose,
|
|
1070
|
+
needResponsive: needResponsive,
|
|
1071
|
+
isPadding: isPadding,
|
|
1072
|
+
isBoxPaddingNeed: !needSelectAll,
|
|
1073
|
+
htmlId: setAriaId,
|
|
1088
1074
|
a11y: {
|
|
1089
|
-
role: '
|
|
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
|
-
|
|
1075
|
+
role: 'listbox',
|
|
1076
|
+
ariaMultiselectable: true
|
|
1077
|
+
},
|
|
1078
|
+
alignBox: "row"
|
|
1079
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
1080
|
+
flexible: true
|
|
1081
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
1082
|
+
customClass: "".concat(_MultiSelectModule["default"].box, " ").concat(_MultiSelectModule["default"]["".concat(palette, "Box")]),
|
|
1083
|
+
onScroll: _this5.handleScroll
|
|
1084
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
1085
|
+
needSelectAll: needSelectAll,
|
|
1086
|
+
onSelect: _this5.handleSelectAll,
|
|
1087
|
+
selectAllText: selectAllText,
|
|
1088
|
+
suggestions: suggestionOptionIds,
|
|
1089
|
+
dataId: dataId
|
|
1090
|
+
})), isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
1091
|
+
shrink: true,
|
|
1092
|
+
customClass: !tabletMode && dropBoxSize ? _MultiSelectModule["default"][dropBoxSize] : '',
|
|
1093
|
+
eleRef: _this5.suggestionContainerRef
|
|
1094
|
+
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
1095
|
+
key: 'SuggestonsParent'
|
|
1096
|
+
}, suggestionGroups.length ? suggestionGroups.map(function (group) {
|
|
1097
|
+
var _group$options = group.options,
|
|
1098
|
+
suggestions = _group$options === void 0 ? [] : _group$options;
|
|
1099
|
+
var groupId = group.id;
|
|
1100
|
+
var groupName = group.name;
|
|
1101
|
+
var hoverId = suggestionOptionIds[hoverIndex];
|
|
1102
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
1103
|
+
key: groupId
|
|
1104
|
+
}, groupName && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1105
|
+
className: _MultiSelectModule["default"].groupTitle
|
|
1106
|
+
}, /*#__PURE__*/_react["default"].createElement(_DropDownHeading["default"], {
|
|
1107
|
+
text: groupName,
|
|
1108
|
+
a11y: {
|
|
1109
|
+
role: 'heading'
|
|
1110
|
+
}
|
|
1111
|
+
})), /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], {
|
|
1112
|
+
suggestions: suggestions,
|
|
1113
|
+
selectedOptions: selectedOptionIds,
|
|
1114
|
+
getRef: _this5.suggestionItemRef,
|
|
1115
|
+
hoverId: hoverId,
|
|
1116
|
+
onClick: _this5.handleSelectOption,
|
|
1117
|
+
onMouseEnter: _this5.handleMouseEnter,
|
|
1118
|
+
needTick: true,
|
|
1119
|
+
listItemSize: listItemSize,
|
|
1120
|
+
a11y: {
|
|
1121
|
+
role: 'option'
|
|
1122
|
+
}
|
|
1123
|
+
}));
|
|
1124
|
+
}) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
1125
|
+
options: revampedGroups,
|
|
1126
|
+
searchString: searchStr,
|
|
1127
|
+
suggestions: suggestionGroups,
|
|
1128
|
+
dataId: dataId,
|
|
1129
|
+
isLoading: isFetchingOptions,
|
|
1130
|
+
i18nKeys: i18nKeys,
|
|
1131
|
+
htmlId: ariaErrorId
|
|
1132
|
+
}), isNextOptions && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1133
|
+
className: _MultiSelectModule["default"].loader
|
|
1134
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
1135
|
+
className: _MultiSelectModule["default"].loader
|
|
1136
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)), getFooter ? isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
1137
|
+
className: _MultiSelectModule["default"].loader
|
|
1138
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)) : null)));
|
|
1139
|
+
}) : null);
|
|
1119
1140
|
}
|
|
1120
1141
|
}]);
|
|
1121
1142
|
|
|
@@ -1155,7 +1176,8 @@ AdvancedGroupMultiSelect.defaultProps = {
|
|
|
1155
1176
|
i18nKeys: {},
|
|
1156
1177
|
a11y: {},
|
|
1157
1178
|
isSearchClearOnSelect: true,
|
|
1158
|
-
needEffect: _propTypes["default"].bool
|
|
1179
|
+
needEffect: _propTypes["default"].bool,
|
|
1180
|
+
palette: 'default'
|
|
1159
1181
|
};
|
|
1160
1182
|
AdvancedGroupMultiSelect.propTypes = {
|
|
1161
1183
|
animationStyle: _propTypes["default"].string,
|
|
@@ -23,8 +23,6 @@ var _MultiSelectHeader = _interopRequireDefault(require("./MultiSelectHeader"));
|
|
|
23
23
|
|
|
24
24
|
var _Popup = _interopRequireDefault(require("../Popup/Popup"));
|
|
25
25
|
|
|
26
|
-
var _DropBox = _interopRequireDefault(require("../DropBox/DropBox"));
|
|
27
|
-
|
|
28
26
|
var _TextBox = _interopRequireDefault(require("../TextBox/TextBox"));
|
|
29
27
|
|
|
30
28
|
var _Layout = require("../Layout");
|
|
@@ -35,6 +33,10 @@ var _Icon = _interopRequireDefault(require("@zohodesk/icons/lib/Icon"));
|
|
|
35
33
|
|
|
36
34
|
var _IdProvider = require("../Provider/IdProvider");
|
|
37
35
|
|
|
36
|
+
var _ResponsiveDropBox = _interopRequireDefault(require("../ResponsiveDropBox/ResponsiveDropBox"));
|
|
37
|
+
|
|
38
|
+
var _CustomResponsive = require("../Responsive/CustomResponsive");
|
|
39
|
+
|
|
38
40
|
var _AdvancedMultiSelectModule = _interopRequireDefault(require("./AdvancedMultiSelect.module.css"));
|
|
39
41
|
|
|
40
42
|
var _Common = require("../utils/Common.js");
|
|
@@ -375,9 +377,21 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
375
377
|
preventScroll: true
|
|
376
378
|
});
|
|
377
379
|
}
|
|
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
|
+
}
|
|
378
390
|
}, {
|
|
379
391
|
key: "render",
|
|
380
392
|
value: function render() {
|
|
393
|
+
var _this4 = this;
|
|
394
|
+
|
|
381
395
|
var _this$props5 = this.props,
|
|
382
396
|
isReadOnly = _this$props5.isReadOnly,
|
|
383
397
|
needSelectAll = _this$props5.needSelectAll,
|
|
@@ -512,54 +526,66 @@ var AdvancedMultiSelectComponent = /*#__PURE__*/function (_MultiSelectComponent)
|
|
|
512
526
|
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
513
527
|
name: "ZD-delete",
|
|
514
528
|
size: "15"
|
|
515
|
-
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
529
|
+
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/_react["default"].createElement(_CustomResponsive.ResponsiveReceiver, {
|
|
530
|
+
query: this.responsiveFunc,
|
|
531
|
+
responsiveId: "Helmet"
|
|
532
|
+
}, function (_ref3) {
|
|
533
|
+
var tabletMode = _ref3.tabletMode;
|
|
534
|
+
return /*#__PURE__*/_react["default"].createElement(_ResponsiveDropBox["default"], _extends({
|
|
535
|
+
animationStyle: animationStyle,
|
|
536
|
+
boxPosition: position || "".concat(defaultDropBoxPosition, "Center"),
|
|
537
|
+
getRef: getContainerRef,
|
|
538
|
+
isActive: isPopupReady,
|
|
539
|
+
isAnimate: isAnimate,
|
|
540
|
+
isArrow: false,
|
|
541
|
+
onClick: removeClose,
|
|
542
|
+
isPadding: false,
|
|
543
|
+
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
544
|
+
htmlId: setAriaId,
|
|
545
|
+
a11y: {
|
|
546
|
+
role: 'listbox',
|
|
547
|
+
ariaMultiselectable: true
|
|
548
|
+
}
|
|
549
|
+
}, DropBoxProps, {
|
|
550
|
+
alignBox: "row",
|
|
551
|
+
isResponsivePadding: getFooter ? false : true
|
|
552
|
+
}), /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
553
|
+
flexible: true
|
|
554
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card["default"], {
|
|
555
|
+
customClass: _AdvancedMultiSelectModule["default"].box,
|
|
556
|
+
onScroll: _this4.handleScroll
|
|
557
|
+
}, /*#__PURE__*/_react["default"].createElement(_Card.CardHeader, null, /*#__PURE__*/_react["default"].createElement(_MultiSelectHeader["default"], {
|
|
558
|
+
needSelectAll: needSelectAll,
|
|
559
|
+
onSelect: _this4.handleSelectAll,
|
|
560
|
+
selectAllText: selectAllText,
|
|
561
|
+
suggestions: suggestions,
|
|
562
|
+
dataId: dataIdSelectAllEle
|
|
563
|
+
})), /*#__PURE__*/_react["default"].createElement(_Card.CardContent, {
|
|
564
|
+
shrink: true,
|
|
565
|
+
customClass: !tabletMode && dropBoxSize ? _AdvancedMultiSelectModule["default"][dropBoxSize] : '',
|
|
566
|
+
eleRef: _this4.suggestionContainerRef
|
|
567
|
+
}, suggestions.length ? /*#__PURE__*/_react["default"].createElement(_Suggestions["default"], _extends({
|
|
568
|
+
suggestions: suggestions,
|
|
569
|
+
selectedOptions: allselectedOptionIds,
|
|
570
|
+
getRef: _this4.suggestionItemRef,
|
|
571
|
+
hoverOption: hoverOption,
|
|
572
|
+
onClick: _this4.handleSelectOption,
|
|
573
|
+
onMouseEnter: _this4.handleMouseEnter,
|
|
574
|
+
needTick: true,
|
|
575
|
+
listItemSize: listItemSize,
|
|
576
|
+
a11y: {
|
|
577
|
+
role: 'option'
|
|
578
|
+
}
|
|
579
|
+
}, SuggestionsProps)) : /*#__PURE__*/_react["default"].createElement(_EmptyState["default"], {
|
|
580
|
+
isLoading: isFetchingOptions,
|
|
581
|
+
options: options,
|
|
582
|
+
searchString: searchStr,
|
|
583
|
+
suggestions: suggestions,
|
|
584
|
+
dataId: dataIdLoading,
|
|
585
|
+
i18nKeys: i18nKeys,
|
|
586
|
+
htmlId: ariaErrorId
|
|
587
|
+
})), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)));
|
|
588
|
+
}) : null);
|
|
563
589
|
}
|
|
564
590
|
}]);
|
|
565
591
|
|