@zohodesk/components 1.0.0-alpha-237 → 1.0.0-alpha-240
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 +19 -0
- package/assets/Appearance/dark/mode/darkMode.module.css +1 -3
- package/assets/Appearance/dark/themes/blue/blueDarkComponentTheme.module.css +1 -1
- package/assets/Appearance/default/mode/defaultMode.module.css +2 -4
- package/assets/Appearance/default/themes/blue/blueDefaultComponentTheme.module.css +1 -1
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +356 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/green/greenPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/red/redPureDarkComponentTheme.module.css +42 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +34 -0
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkComponentTheme.module.css +42 -0
- 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/AppContainer.js +6 -1
- 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/Config.js +1 -2
- 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 +72 -35
- 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 +40 -2
- 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/common/docStyle.module.css +6 -2
- 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/AppContainer.js +7 -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/Config.js +1 -2
- 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 +88 -37
- 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 +47 -2
- 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/common/docStyle.module.css +6 -2
- 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 +7 -7
|
@@ -11,12 +11,13 @@ import Suggestions from './Suggestions';
|
|
|
11
11
|
import EmptyState from './EmptyState';
|
|
12
12
|
import MultiSelectHeader from './MultiSelectHeader';
|
|
13
13
|
import Popup from '../Popup/Popup';
|
|
14
|
-
import DropBox from '../DropBox/DropBox';
|
|
15
14
|
import Textbox from '../TextBox/TextBox';
|
|
16
15
|
import { Container, Box } from '../Layout';
|
|
17
16
|
import Card, { CardContent, CardHeader, CardFooter } from '../Card/Card';
|
|
18
17
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
19
18
|
import { getUniqueId } from '../Provider/IdProvider';
|
|
19
|
+
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
20
|
+
import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
|
|
20
21
|
/**** CSS ****/
|
|
21
22
|
|
|
22
23
|
import style from './AdvancedMultiSelect.module.css';
|
|
@@ -316,6 +317,17 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
316
317
|
});
|
|
317
318
|
}
|
|
318
319
|
|
|
320
|
+
responsiveFunc(_ref) {
|
|
321
|
+
let {
|
|
322
|
+
mediaQueryOR
|
|
323
|
+
} = _ref;
|
|
324
|
+
return {
|
|
325
|
+
tabletMode: mediaQueryOR([{
|
|
326
|
+
maxWidth: 700
|
|
327
|
+
}])
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
|
|
319
331
|
render() {
|
|
320
332
|
let {
|
|
321
333
|
isReadOnly,
|
|
@@ -452,54 +464,68 @@ export class AdvancedMultiSelectComponent extends MultiSelectComponent {
|
|
|
452
464
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
453
465
|
name: "ZD-delete",
|
|
454
466
|
size: "15"
|
|
455
|
-
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
467
|
+
})) : null), !isReadOnly && !isDisabled && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
468
|
+
query: this.responsiveFunc,
|
|
469
|
+
responsiveId: "Helmet"
|
|
470
|
+
}, _ref2 => {
|
|
471
|
+
let {
|
|
472
|
+
tabletMode
|
|
473
|
+
} = _ref2;
|
|
474
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, _extends({
|
|
475
|
+
animationStyle: animationStyle,
|
|
476
|
+
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
477
|
+
getRef: getContainerRef,
|
|
478
|
+
isActive: isPopupReady,
|
|
479
|
+
isAnimate: isAnimate,
|
|
480
|
+
isArrow: false,
|
|
481
|
+
onClick: removeClose,
|
|
482
|
+
isPadding: false,
|
|
483
|
+
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
484
|
+
htmlId: setAriaId,
|
|
485
|
+
a11y: {
|
|
486
|
+
role: 'listbox',
|
|
487
|
+
ariaMultiselectable: true
|
|
488
|
+
}
|
|
489
|
+
}, DropBoxProps, {
|
|
490
|
+
alignBox: "row",
|
|
491
|
+
isResponsivePadding: getFooter ? false : true
|
|
492
|
+
}), /*#__PURE__*/React.createElement(Box, {
|
|
493
|
+
flexible: true
|
|
494
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
495
|
+
customClass: style.box,
|
|
496
|
+
onScroll: this.handleScroll
|
|
497
|
+
}, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(MultiSelectHeader, {
|
|
498
|
+
needSelectAll: needSelectAll,
|
|
499
|
+
onSelect: this.handleSelectAll,
|
|
500
|
+
selectAllText: selectAllText,
|
|
501
|
+
suggestions: suggestions,
|
|
502
|
+
dataId: dataIdSelectAllEle
|
|
503
|
+
})), /*#__PURE__*/React.createElement(CardContent, {
|
|
504
|
+
shrink: true,
|
|
505
|
+
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
506
|
+
eleRef: this.suggestionContainerRef
|
|
507
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, _extends({
|
|
508
|
+
suggestions: suggestions,
|
|
509
|
+
selectedOptions: allselectedOptionIds,
|
|
510
|
+
getRef: this.suggestionItemRef,
|
|
511
|
+
hoverOption: hoverOption,
|
|
512
|
+
onClick: this.handleSelectOption,
|
|
513
|
+
onMouseEnter: this.handleMouseEnter,
|
|
514
|
+
needTick: true,
|
|
515
|
+
listItemSize: listItemSize,
|
|
516
|
+
a11y: {
|
|
517
|
+
role: 'option'
|
|
518
|
+
}
|
|
519
|
+
}, SuggestionsProps)) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
520
|
+
isLoading: isFetchingOptions,
|
|
521
|
+
options: options,
|
|
522
|
+
searchString: searchStr,
|
|
523
|
+
suggestions: suggestions,
|
|
524
|
+
dataId: dataIdLoading,
|
|
525
|
+
i18nKeys: i18nKeys,
|
|
526
|
+
htmlId: ariaErrorId
|
|
527
|
+
})), getFooter ? /*#__PURE__*/React.createElement(CardFooter, null, getFooter()) : null)));
|
|
528
|
+
}) : null);
|
|
503
529
|
}
|
|
504
530
|
|
|
505
531
|
}
|
|
@@ -4,7 +4,6 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
/**** Components ****/
|
|
5
5
|
|
|
6
6
|
import Popup from '../Popup/Popup';
|
|
7
|
-
import DropBox from '../DropBox/DropBox';
|
|
8
7
|
import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
|
|
9
8
|
import { Container, Box } from '../Layout';
|
|
10
9
|
import Card, { CardContent, CardHeader, CardFooter } from '../Card/Card';
|
|
@@ -14,6 +13,8 @@ import EmptyState from './EmptyState';
|
|
|
14
13
|
import MultiSelectHeader from './MultiSelectHeader';
|
|
15
14
|
import CssProvider from '../Provider/CssProvider';
|
|
16
15
|
import { getUniqueId } from '../Provider/IdProvider';
|
|
16
|
+
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
17
|
+
import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
|
|
17
18
|
/**** Icons ****/
|
|
18
19
|
|
|
19
20
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
@@ -829,6 +830,17 @@ export class MultiSelectComponent extends React.Component {
|
|
|
829
830
|
});
|
|
830
831
|
}
|
|
831
832
|
|
|
833
|
+
responsiveFunc(_ref) {
|
|
834
|
+
let {
|
|
835
|
+
mediaQueryOR
|
|
836
|
+
} = _ref;
|
|
837
|
+
return {
|
|
838
|
+
tabletMode: mediaQueryOR([{
|
|
839
|
+
maxWidth: 700
|
|
840
|
+
}])
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
|
|
832
844
|
render() {
|
|
833
845
|
let {
|
|
834
846
|
isReadOnly,
|
|
@@ -978,60 +990,73 @@ export class MultiSelectComponent extends React.Component {
|
|
|
978
990
|
size: "15"
|
|
979
991
|
})) : null, children ? /*#__PURE__*/React.createElement(Box, {
|
|
980
992
|
dataId: `${dataId}_children`
|
|
981
|
-
}, children) : null)))), !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? /*#__PURE__*/React.createElement(
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
993
|
+
}, children) : null)))), !isReadOnly && !isDisabled && !disableAction && isPopupOpen ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
994
|
+
query: this.responsiveFunc,
|
|
995
|
+
responsiveId: "Helmet"
|
|
996
|
+
}, _ref2 => {
|
|
997
|
+
let {
|
|
998
|
+
tabletMode
|
|
999
|
+
} = _ref2;
|
|
1000
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
1001
|
+
animationStyle: animationStyle,
|
|
1002
|
+
boxPosition: position || `${defaultDropBoxPosition}`,
|
|
1003
|
+
getRef: getContainerRef,
|
|
1004
|
+
isActive: isPopupReady,
|
|
1005
|
+
isAnimate: isAnimate,
|
|
1006
|
+
isArrow: false,
|
|
1007
|
+
onClick: removeClose,
|
|
1008
|
+
needResponsive: needResponsive,
|
|
1009
|
+
isPadding: false,
|
|
1010
|
+
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
1011
|
+
palette: palette,
|
|
1012
|
+
htmlId: setAriaId,
|
|
1013
|
+
a11y: {
|
|
1014
|
+
role: 'listbox',
|
|
1015
|
+
ariaMultiselectable: true
|
|
1016
|
+
},
|
|
1017
|
+
size: boxSize,
|
|
1018
|
+
alignBox: "row",
|
|
1019
|
+
isResponsivePadding: getFooter ? false : true
|
|
1020
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
1021
|
+
flexible: true
|
|
1022
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
1023
|
+
customClass: `${style.box} ${style[`${palette}Box`]}`,
|
|
1024
|
+
onScroll: this.handleScroll
|
|
1025
|
+
}, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(MultiSelectHeader, {
|
|
1026
|
+
needSelectAll: needSelectAll,
|
|
1027
|
+
onSelect: this.handleSelectAll,
|
|
1028
|
+
selectAllText: selectAllText,
|
|
1029
|
+
suggestions: suggestions,
|
|
1030
|
+
dataId: dataId
|
|
1031
|
+
})), /*#__PURE__*/React.createElement(CardContent, {
|
|
1032
|
+
shrink: true,
|
|
1033
|
+
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
1034
|
+
eleRef: this.suggestionContainerRef
|
|
1035
|
+
}, isSearching ? /*#__PURE__*/React.createElement("div", {
|
|
1036
|
+
className: style[palette]
|
|
1037
|
+
}, searchText) : suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
1038
|
+
suggestions: suggestions,
|
|
1039
|
+
getRef: this.suggestionItemRef,
|
|
1040
|
+
hoverOption: hoverOption,
|
|
1041
|
+
onClick: this.handleSelectOption,
|
|
1042
|
+
onMouseEnter: this.handleMouseEnter,
|
|
1043
|
+
needBorder: false,
|
|
1044
|
+
dataId: `${dataId}_Options`,
|
|
1045
|
+
palette: palette,
|
|
1046
|
+
a11y: {
|
|
1047
|
+
role: 'option'
|
|
1048
|
+
}
|
|
1049
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
1050
|
+
isLoading: isFetchingOptions,
|
|
1051
|
+
options: options,
|
|
1052
|
+
searchString: searchStr,
|
|
1053
|
+
suggestions: suggestions,
|
|
1054
|
+
dataId: dataId,
|
|
1055
|
+
palette: palette,
|
|
1056
|
+
i18nKeys: i18nKeys,
|
|
1057
|
+
htmlId: ariaErrorId
|
|
1058
|
+
})), getFooter ? /*#__PURE__*/React.createElement(CardFooter, null, getFooter()) : null)));
|
|
1059
|
+
}) : null);
|
|
1035
1060
|
}
|
|
1036
1061
|
|
|
1037
1062
|
}
|
|
@@ -101,7 +101,9 @@
|
|
|
101
101
|
[dir=rtl] .container.medium .tag {
|
|
102
102
|
margin: var(--zd_size5) 0 0 var(--zd_size10);
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
.responsiveParent{
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
105
107
|
.box {
|
|
106
108
|
background: var(--zdt_multiselect_box_bg);
|
|
107
109
|
}
|
|
@@ -191,3 +193,6 @@
|
|
|
191
193
|
[dir=rtl] .clearIconSpace {
|
|
192
194
|
padding-left: var(--zd_size37)
|
|
193
195
|
}
|
|
196
|
+
.search{
|
|
197
|
+
padding: 0px 20px;
|
|
198
|
+
}
|
|
@@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
|
|
|
5
5
|
|
|
6
6
|
import { MultiSelectComponent } from './MultiSelect';
|
|
7
7
|
import Popup from '../Popup/Popup';
|
|
8
|
-
import DropBox from '../DropBox/DropBox';
|
|
9
8
|
import TextBoxIcon from '../TextBoxIcon/TextBoxIcon';
|
|
10
9
|
import { Container, Box } from '../Layout';
|
|
11
10
|
import Card, { CardContent, CardHeader } from '../Card/Card';
|
|
@@ -15,6 +14,8 @@ import EmptyState from './EmptyState';
|
|
|
15
14
|
import MultiSelectHeader from './MultiSelectHeader';
|
|
16
15
|
import CssProvider from '../Provider/CssProvider';
|
|
17
16
|
import { getUniqueId } from '../Provider/IdProvider';
|
|
17
|
+
import ResponsiveDropBox from '../ResponsiveDropBox/ResponsiveDropBox';
|
|
18
|
+
import { ResponsiveReceiver } from '../Responsive/CustomResponsive';
|
|
18
19
|
/**** Icons ****/
|
|
19
20
|
|
|
20
21
|
import Icon from '@zohodesk/icons/lib/Icon';
|
|
@@ -52,6 +53,17 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
responsiveFunc(_ref) {
|
|
57
|
+
let {
|
|
58
|
+
mediaQueryOR
|
|
59
|
+
} = _ref;
|
|
60
|
+
return {
|
|
61
|
+
tabletMode: mediaQueryOR([{
|
|
62
|
+
maxWidth: 700
|
|
63
|
+
}])
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
55
67
|
render() {
|
|
56
68
|
let {
|
|
57
69
|
isReadOnly,
|
|
@@ -189,57 +201,70 @@ class MultiSelectWithAvatarComponent extends MultiSelectComponent {
|
|
|
189
201
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
190
202
|
name: "ZD-delete",
|
|
191
203
|
size: "15"
|
|
192
|
-
})) : null)))), popUpState ? /*#__PURE__*/React.createElement(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
204
|
+
})) : null)))), popUpState ? /*#__PURE__*/React.createElement(ResponsiveReceiver, {
|
|
205
|
+
query: this.responsiveFunc,
|
|
206
|
+
responsiveId: "Helmet"
|
|
207
|
+
}, _ref2 => {
|
|
208
|
+
let {
|
|
209
|
+
tabletMode
|
|
210
|
+
} = _ref2;
|
|
211
|
+
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
212
|
+
animationStyle: animationStyle,
|
|
213
|
+
boxPosition: position || `${defaultDropBoxPosition}Center`,
|
|
214
|
+
getRef: getContainerRef,
|
|
215
|
+
isActive: isPopupReady,
|
|
216
|
+
isAnimate: isAnimate,
|
|
217
|
+
isArrow: false,
|
|
218
|
+
onClick: removeClose,
|
|
219
|
+
needResponsive: needResponsive,
|
|
220
|
+
isPadding: false,
|
|
221
|
+
isBoxPaddingNeed: isBoxPaddingNeed,
|
|
222
|
+
palette: palette,
|
|
223
|
+
htmlId: setAriaId,
|
|
224
|
+
a11y: {
|
|
225
|
+
ariaMultiselectable: true,
|
|
226
|
+
role: 'listbox'
|
|
227
|
+
},
|
|
228
|
+
isResponsivePadding: true,
|
|
229
|
+
alignBox: "row"
|
|
230
|
+
}, /*#__PURE__*/React.createElement(Box, {
|
|
231
|
+
flexible: true
|
|
232
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
233
|
+
customClass: `${style.box} ${style[`${palette}Box`]}`,
|
|
234
|
+
onScroll: this.handleScroll
|
|
235
|
+
}, /*#__PURE__*/React.createElement(CardHeader, null, /*#__PURE__*/React.createElement(MultiSelectHeader, {
|
|
236
|
+
needSelectAll: needSelectAll,
|
|
237
|
+
onSelect: this.handleSelectAll,
|
|
238
|
+
selectAllText: selectAllText,
|
|
239
|
+
suggestions: suggestions,
|
|
240
|
+
dataId: dataId
|
|
241
|
+
})), /*#__PURE__*/React.createElement(CardContent, {
|
|
242
|
+
shrink: true,
|
|
243
|
+
customClass: !tabletMode && dropBoxSize ? style[dropBoxSize] : '',
|
|
244
|
+
eleRef: this.suggestionContainerRef
|
|
245
|
+
}, suggestions.length ? /*#__PURE__*/React.createElement(Suggestions, {
|
|
246
|
+
suggestions: suggestions,
|
|
247
|
+
getRef: this.suggestionItemRef,
|
|
248
|
+
hoverOption: hoverOption,
|
|
249
|
+
onClick: this.handleSelectOption,
|
|
250
|
+
onMouseEnter: this.handleMouseEnter,
|
|
251
|
+
needBorder: false,
|
|
252
|
+
dataId: `${dataId}_Options`,
|
|
253
|
+
palette: palette,
|
|
254
|
+
a11y: {
|
|
255
|
+
role: 'option'
|
|
256
|
+
}
|
|
257
|
+
}) : /*#__PURE__*/React.createElement(EmptyState, {
|
|
258
|
+
isLoading: isFetchingOptions,
|
|
259
|
+
options: options,
|
|
260
|
+
searchString: searchStr,
|
|
261
|
+
suggestions: suggestions,
|
|
262
|
+
dataId: dataId,
|
|
263
|
+
palette: palette,
|
|
264
|
+
i18nKeys: i18nKeys,
|
|
265
|
+
htmlId: ariaErrorId
|
|
266
|
+
})))));
|
|
267
|
+
}) : null);
|
|
243
268
|
}
|
|
244
269
|
|
|
245
270
|
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import AdvancedGroupMultiSelect from '../AdvancedGroupMultiSelect';
|
|
3
|
+
export default class AdvancedGroupMultiSelect__default extends React.Component {
|
|
4
|
+
constructor(props) {
|
|
5
|
+
super(props);
|
|
6
|
+
this.handleSelectOptions = this.handleSelectOptions.bind(this);
|
|
7
|
+
this.getNextOptions = this.getNextOptions.bind(this);
|
|
8
|
+
this.groupFooter = this.groupFooter.bind(this);
|
|
9
|
+
this.onSearch = this.onSearch.bind(this);
|
|
10
|
+
this.state = {
|
|
11
|
+
selectedGroupOptions: [{
|
|
12
|
+
groupId: 'Group1',
|
|
13
|
+
id: 'group13'
|
|
14
|
+
}, {
|
|
15
|
+
groupId: 'Group1',
|
|
16
|
+
id: '1212'
|
|
17
|
+
}, {
|
|
18
|
+
groupId: 'Group2',
|
|
19
|
+
id: '2222'
|
|
20
|
+
}],
|
|
21
|
+
selectedOptionDetails: {
|
|
22
|
+
Group1: [{
|
|
23
|
+
value: 'Ashok',
|
|
24
|
+
id: '1212'
|
|
25
|
+
}],
|
|
26
|
+
Group2: [{
|
|
27
|
+
value: 'team 1',
|
|
28
|
+
id: '2222'
|
|
29
|
+
}]
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
getNextOptions(searchStr) {
|
|
35
|
+
return Promise.resolve();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
onSearch(searchStr) {
|
|
39
|
+
return Promise.resolve();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
handleSelectOptions() {
|
|
43
|
+
let selectedGroupOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
44
|
+
this.setState({
|
|
45
|
+
selectedGroupOptions
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
groupFooter() {
|
|
50
|
+
return /*#__PURE__*/React.createElement("div", null, "Footer");
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
render() {
|
|
54
|
+
let groupOptions = [{
|
|
55
|
+
id: 'Group1',
|
|
56
|
+
name: 'Group 1',
|
|
57
|
+
options: [{
|
|
58
|
+
id: 'group11',
|
|
59
|
+
value: 'Option 1'
|
|
60
|
+
}, {
|
|
61
|
+
id: 'group12',
|
|
62
|
+
value: 'Option 2'
|
|
63
|
+
}, {
|
|
64
|
+
id: 'group13',
|
|
65
|
+
value: 'Option 3'
|
|
66
|
+
}],
|
|
67
|
+
textField: 'value',
|
|
68
|
+
valueField: 'id'
|
|
69
|
+
}, {
|
|
70
|
+
id: 'Group2',
|
|
71
|
+
name: 'Group 2',
|
|
72
|
+
options: [{
|
|
73
|
+
id: 'group21',
|
|
74
|
+
value: 'Group2 Option 1'
|
|
75
|
+
}, {
|
|
76
|
+
id: 'group22',
|
|
77
|
+
value: 'Group2 Option 2'
|
|
78
|
+
}, {
|
|
79
|
+
id: 'group23',
|
|
80
|
+
value: 'Group2 Option 3'
|
|
81
|
+
}],
|
|
82
|
+
textField: 'value',
|
|
83
|
+
valueField: 'id'
|
|
84
|
+
}];
|
|
85
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AdvancedGroupMultiSelect, {
|
|
86
|
+
groupedOptions: groupOptions,
|
|
87
|
+
selectedGroupOptions: this.state.selectedGroupOptions,
|
|
88
|
+
onChange: this.handleSelectOptions,
|
|
89
|
+
dataIdSrchEmptyMsg: "EmptySearch",
|
|
90
|
+
dataIdNoOptnsMsg: "NoData",
|
|
91
|
+
needLocalSearch: true,
|
|
92
|
+
getNextOptions: this.getNextOptions,
|
|
93
|
+
onSearch: this.onSearch,
|
|
94
|
+
selectedOptionDetails: this.state.selectedOptionDetails,
|
|
95
|
+
i18nKeys: {
|
|
96
|
+
clearText: 'Clear Selected Items',
|
|
97
|
+
loadingText: 'Fetching...',
|
|
98
|
+
emptyText: 'No Options .',
|
|
99
|
+
noMoreText: 'No More Options .',
|
|
100
|
+
searchEmptyText: 'No Matches Found .'
|
|
101
|
+
}
|
|
102
|
+
}), /*#__PURE__*/React.createElement(AdvancedGroupMultiSelect, {
|
|
103
|
+
groupedOptions: groupOptions,
|
|
104
|
+
selectedGroupOptions: this.state.selectedGroupOptions,
|
|
105
|
+
onChange: this.handleSelectOptions,
|
|
106
|
+
emptyMessage: "No data found",
|
|
107
|
+
searchEmptyMessage: "No results found",
|
|
108
|
+
dataIdSrchEmptyMsg: "EmptySearch",
|
|
109
|
+
dataIdNoOptnsMsg: "NoData",
|
|
110
|
+
needLocalSearch: true,
|
|
111
|
+
getNextOptions: this.getNextOptions,
|
|
112
|
+
onSearch: this.onSearch,
|
|
113
|
+
selectedOptionDetails: this.state.selectedOptionDetails,
|
|
114
|
+
getFooter: this.groupFooter
|
|
115
|
+
}, /*#__PURE__*/React.createElement("div", null, "Children")));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
if (false) {
|
|
121
|
+
AdvancedGroupMultiSelect__default.docs = {
|
|
122
|
+
componentGroup: 'Form Elements',
|
|
123
|
+
folderName: 'Style Guide'
|
|
124
|
+
};
|
|
125
|
+
}
|