@zohodesk/components 1.0.0-temp-132 → 1.0.0-temp-134
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 +1158 -1137
- package/assets/Appearance/dark/mode/darkMode.module.css +191 -191
- package/assets/Appearance/dark/themes/blue/blueDarkCTATheme.module.css +30 -30
- package/assets/Appearance/dark/themes/green/greenDarkCTATheme.module.css +30 -30
- package/assets/Appearance/dark/themes/orange/orangeDarkCTATheme.module.css +30 -30
- package/assets/Appearance/dark/themes/red/redDarkCTATheme.module.css +30 -30
- package/assets/Appearance/dark/themes/yellow/yellowDarkCTATheme.module.css +30 -30
- package/assets/Appearance/default/mode/defaultMode.module.css +188 -188
- package/assets/Appearance/default/themes/blue/blueDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/default/themes/green/greenDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/default/themes/orange/orangeDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/default/themes/red/redDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/mode/pureDarkMode.module.css +193 -193
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTATheme.module.css +30 -30
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTATheme.module.css +30 -30
- package/css_error.log +0 -1
- package/docs/external/active-line.js +72 -72
- package/docs/external/autorefresh.js +47 -47
- package/docs/external/codemirror.js +9681 -9681
- package/docs/external/css/hopscotch.css +576 -576
- package/docs/external/css/styleGuide.css +1100 -1100
- package/docs/external/css.js +466 -466
- package/docs/external/designTokens.js +1 -1
- package/docs/external/foldcode.js +151 -151
- package/docs/external/format.js +129 -129
- package/docs/external/htmlmixed.js +84 -84
- package/docs/external/index.html +127 -127
- package/docs/external/javascript.js +422 -422
- package/docs/external/jsx.js +147 -147
- package/docs/external/matchbrackets.js +145 -145
- package/docs/external/xml.js +322 -322
- package/docs/package.json +41 -41
- package/docs/src/index.js +1311 -1311
- package/es/AppContainer/AppContainer.js +0 -1
- package/es/AppContainer/AppContainer.module.css +18 -18
- package/es/Avatar/Avatar.js +17 -14
- package/es/Avatar/Avatar.module.css +141 -168
- package/es/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/es/Avatar/props/defaultProps.js +3 -1
- package/es/Avatar/props/propTypes.js +4 -2
- package/es/AvatarTeam/AvatarTeam.js +15 -9
- package/es/AvatarTeam/AvatarTeam.module.css +188 -161
- package/es/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/es/AvatarTeam/props/defaultProps.js +4 -1
- package/es/AvatarTeam/props/propTypes.js +4 -1
- package/es/Button/Button.js +4 -4
- package/es/Button/Button.module.css +525 -543
- package/es/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/es/Buttongroup/Buttongroup.js +1 -1
- package/es/Buttongroup/Buttongroup.module.css +89 -107
- package/es/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/es/Card/Card.js +4 -4
- package/es/Card/Card.module.css +20 -20
- package/es/CheckBox/CheckBox.js +0 -0
- package/es/CheckBox/CheckBox.module.css +157 -157
- package/es/DateTime/CalendarView.js +0 -0
- package/es/DateTime/DateTime.js +0 -0
- package/es/DateTime/DateTime.module.css +235 -235
- package/es/DateTime/DateWidget.js +2 -3
- package/es/DateTime/DateWidget.module.css +38 -38
- package/es/DateTime/YearView.js +0 -0
- package/es/DateTime/YearView.module.css +98 -98
- package/es/DateTime/common.js +0 -0
- package/es/DateTime/index.js +0 -0
- package/es/DateTime/objectUtils.js +0 -0
- package/es/DateTime/typeChecker.js +0 -0
- package/es/DateTime/validator.js +0 -0
- package/es/DropBox/DropBox.js +0 -0
- package/es/DropBox/DropBox.module.css +406 -489
- package/es/DropBox/DropBoxPositionMapping.json +144 -144
- package/es/DropDown/DropDown.js +0 -0
- package/es/DropDown/DropDown.module.css +5 -5
- package/es/DropDown/DropDownHeading.js +0 -0
- package/es/DropDown/DropDownHeading.module.css +53 -53
- package/es/DropDown/DropDownItem.js +0 -0
- package/es/DropDown/DropDownItem.module.css +94 -94
- package/es/DropDown/DropDownSearch.js +0 -0
- package/es/DropDown/DropDownSearch.module.css +14 -14
- package/es/DropDown/DropDownSeparator.js +0 -0
- package/es/DropDown/DropDownSeparator.module.css +7 -7
- package/es/Heading/Heading.module.css +4 -4
- package/es/Label/Label.js +2 -2
- package/es/Label/Label.module.css +52 -52
- package/es/Label/LabelColors.module.css +20 -20
- package/es/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/es/Layout/Box.js +0 -0
- package/es/Layout/Container.js +0 -0
- package/es/Layout/Layout.module.css +335 -335
- package/es/Layout/utils.js +0 -0
- package/es/ListItem/ListItem.js +0 -0
- package/es/ListItem/ListItem.module.css +209 -209
- package/es/MultiSelect/AdvancedGroupMultiSelect.js +5 -5
- package/es/MultiSelect/MultiSelect.js +23 -10
- package/es/MultiSelect/MultiSelect.module.css +205 -205
- package/es/MultiSelect/MultiSelectWithAvatar.js +18 -5
- package/es/MultiSelect/SelectedOptions.module.css +15 -15
- package/es/MultiSelect/Suggestions.js +4 -2
- package/es/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/es/MultiSelect/props/defaultProps.js +5 -2
- package/es/MultiSelect/props/propTypes.js +7 -1
- package/es/PopOver/PopOver.module.css +8 -8
- package/es/Popup/Popup.js +2 -2
- package/es/Popup/PositionMapping.json +73 -73
- package/es/Provider/AvatarSize.js +1 -0
- package/es/Radio/Radio.js +0 -0
- package/es/Radio/Radio.module.css +112 -112
- package/es/Responsive/CustomResponsive.js +0 -0
- package/es/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/es/Ribbon/Ribbon.js +0 -0
- package/es/Ribbon/Ribbon.module.css +376 -454
- package/es/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/es/RippleEffect/RippleEffect.module.css +92 -92
- package/es/Select/GroupSelect.js +0 -0
- package/es/Select/Select.js +0 -0
- package/es/Select/Select.module.css +108 -108
- package/es/Select/SelectWithAvatar.js +0 -0
- package/es/Select/SelectWithIcon.js +0 -0
- package/es/Select/__tests__/Select.spec.js +0 -0
- package/es/Stencils/Stencils.js +0 -0
- package/es/Stencils/Stencils.module.css +96 -96
- package/es/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/es/Switch/Switch.js +0 -0
- package/es/Switch/Switch.module.css +110 -127
- package/es/Tab/Tab.module.css +101 -101
- package/es/Tab/TabContent.module.css +4 -4
- package/es/Tab/Tabs.js +17 -17
- package/es/Tab/Tabs.module.css +140 -144
- package/es/Tag/Tag.js +8 -8
- package/es/Tag/Tag.module.css +254 -254
- package/es/TextBox/TextBox.js +0 -0
- package/es/TextBox/TextBox.module.css +157 -157
- package/es/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/es/TextBoxIcon/TextBoxIcon.js +20 -3
- package/es/TextBoxIcon/TextBoxIcon.module.css +78 -78
- package/es/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/es/Textarea/Textarea.js +0 -0
- package/es/Textarea/Textarea.module.css +139 -139
- package/es/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/es/Tooltip/Tooltip.module.css +109 -134
- package/es/common/a11y.module.css +3 -3
- package/es/common/animation.module.css +624 -624
- package/es/common/avatarsizes.module.css +48 -44
- package/es/common/basic.module.css +33 -33
- package/es/common/basicReset.module.css +40 -40
- package/es/common/common.module.css +524 -524
- package/es/common/customscroll.module.css +89 -89
- package/es/common/reset.module.css +12 -12
- package/es/common/transition.module.css +146 -146
- package/es/deprecated/AdvancedMultiSelect.module.css +126 -126
- package/es/index.js +3 -109
- package/es/semantic/Button/semanticButton.module.css +9 -9
- package/es/utils/Common.js +17 -2
- package/es/utils/dropDownUtils.js +3 -2
- package/install.md +10 -10
- package/lib/Accordion/Accordion.js +3 -1
- package/lib/Accordion/AccordionItem.js +3 -1
- package/lib/Animation/Animation.js +3 -1
- package/lib/AppContainer/AppContainer.js +3 -2
- package/lib/AppContainer/AppContainer.module.css +18 -18
- package/lib/Avatar/Avatar.js +21 -16
- package/lib/Avatar/Avatar.module.css +141 -168
- package/lib/Avatar/__tests__/__snapshots__/Avatar.spec.js.snap +288 -288
- package/lib/Avatar/props/defaultProps.js +3 -1
- package/lib/Avatar/props/propTypes.js +4 -2
- package/lib/AvatarTeam/AvatarTeam.js +18 -10
- package/lib/AvatarTeam/AvatarTeam.module.css +188 -161
- package/lib/AvatarTeam/__tests__/__snapshots__/AvatarTeam.spec.js.snap +226 -226
- package/lib/AvatarTeam/props/defaultProps.js +4 -1
- package/lib/AvatarTeam/props/propTypes.js +4 -1
- package/lib/Button/Button.js +7 -5
- package/lib/Button/Button.module.css +525 -543
- package/lib/Button/__tests__/__snapshots__/Button.spec.js.snap +191 -191
- package/lib/Buttongroup/Buttongroup.js +6 -3
- package/lib/Buttongroup/Buttongroup.module.css +89 -107
- package/lib/Buttongroup/__test__/__snapshots__/Buttongroup.spec.js.snap +146 -146
- package/lib/Card/Card.js +7 -5
- package/lib/Card/Card.module.css +20 -20
- package/lib/CheckBox/CheckBox.js +3 -1
- package/lib/CheckBox/CheckBox.module.css +157 -157
- package/lib/DateTime/CalendarView.js +5 -2
- package/lib/DateTime/DateTime.js +5 -3
- package/lib/DateTime/DateTime.module.css +235 -235
- package/lib/DateTime/DateTimePopupFooter.js +3 -1
- package/lib/DateTime/DateTimePopupHeader.js +3 -1
- package/lib/DateTime/DateWidget.js +4 -4
- package/lib/DateTime/DateWidget.module.css +38 -38
- package/lib/DateTime/DaysRow.js +3 -1
- package/lib/DateTime/Time.js +3 -1
- package/lib/DateTime/YearView.js +3 -1
- package/lib/DateTime/YearView.module.css +98 -98
- package/lib/DateTime/common.js +0 -0
- package/lib/DateTime/dateFormatUtils/timeChange.js +2 -2
- package/lib/DateTime/index.js +0 -0
- package/lib/DateTime/objectUtils.js +0 -0
- package/lib/DateTime/typeChecker.js +0 -0
- package/lib/DateTime/validator.js +4 -4
- package/lib/DropBox/DropBox.js +3 -1
- package/lib/DropBox/DropBox.module.css +406 -489
- package/lib/DropBox/DropBoxPositionMapping.json +144 -144
- package/lib/DropDown/DropDown.js +5 -2
- package/lib/DropDown/DropDown.module.css +5 -5
- package/lib/DropDown/DropDownHeading.js +3 -1
- package/lib/DropDown/DropDownHeading.module.css +53 -53
- package/lib/DropDown/DropDownItem.js +3 -1
- package/lib/DropDown/DropDownItem.module.css +94 -94
- package/lib/DropDown/DropDownSearch.js +5 -2
- package/lib/DropDown/DropDownSearch.module.css +14 -14
- package/lib/DropDown/DropDownSeparator.js +3 -1
- package/lib/DropDown/DropDownSeparator.module.css +7 -7
- package/lib/DropDown/props/propTypes.js +4 -1
- package/lib/Heading/Heading.js +4 -2
- package/lib/Heading/Heading.module.css +4 -4
- package/lib/Label/Label.js +3 -1
- package/lib/Label/Label.module.css +52 -52
- package/lib/Label/LabelColors.module.css +20 -20
- package/lib/Label/__tests__/__snapshots__/Label.spec.js.snap +101 -101
- package/lib/Layout/Box.js +0 -0
- package/lib/Layout/Container.js +0 -0
- package/lib/Layout/Layout.module.css +335 -335
- package/lib/Layout/utils.js +0 -0
- package/lib/ListItem/ListItem.js +3 -1
- package/lib/ListItem/ListItem.module.css +209 -209
- package/lib/ListItem/ListItemWithAvatar.js +3 -1
- package/lib/ListItem/ListItemWithCheckBox.js +3 -1
- package/lib/ListItem/ListItemWithIcon.js +3 -1
- package/lib/ListItem/ListItemWithRadio.js +3 -1
- package/lib/ListItem/props/propTypes.js +4 -1
- package/lib/Modal/Modal.js +3 -1
- package/lib/MultiSelect/AdvancedGroupMultiSelect.js +11 -9
- package/lib/MultiSelect/AdvancedMultiSelect.js +4 -2
- package/lib/MultiSelect/EmptyState.js +3 -1
- package/lib/MultiSelect/MultiSelect.js +28 -13
- package/lib/MultiSelect/MultiSelect.module.css +205 -205
- package/lib/MultiSelect/MultiSelectHeader.js +3 -1
- package/lib/MultiSelect/MultiSelectWithAvatar.js +21 -6
- package/lib/MultiSelect/SelectedOptions.js +5 -2
- package/lib/MultiSelect/SelectedOptions.module.css +15 -15
- package/lib/MultiSelect/Suggestions.js +9 -5
- package/lib/MultiSelect/__tests__/MultiSelect.spec.js +0 -0
- package/lib/MultiSelect/props/defaultProps.js +5 -2
- package/lib/MultiSelect/props/propTypes.js +7 -1
- package/lib/PopOver/PopOver.js +3 -1
- package/lib/PopOver/PopOver.module.css +8 -8
- package/lib/Popup/Popup.js +5 -3
- package/lib/Popup/PositionMapping.json +73 -73
- package/lib/Popup/__tests__/Popup.spec.js +3 -1
- package/lib/Provider/AvatarSize.js +1 -0
- package/lib/Provider/LibraryContext.js +5 -3
- package/lib/Provider/NumberGenerator/NumberGenerator.js +1 -1
- package/lib/Radio/Radio.js +3 -1
- package/lib/Radio/Radio.module.css +112 -112
- package/lib/Responsive/CustomResponsive.js +6 -4
- package/lib/Responsive/RefWrapper.js +4 -2
- package/lib/Responsive/ResizeComponent.js +9 -4
- package/lib/Responsive/ResizeObserver.js +4 -1
- package/lib/Responsive/Responsive.js +6 -4
- package/lib/Responsive/sizeObservers.js +4 -2
- package/lib/ResponsiveDropBox/ResponsiveDropBox.js +3 -1
- package/lib/ResponsiveDropBox/ResponsiveDropBox.module.css +6 -6
- package/lib/Ribbon/Ribbon.js +3 -1
- package/lib/Ribbon/Ribbon.module.css +376 -454
- package/lib/Ribbon/__tests__/__snapshots__/Ribbon.spec.js.snap +163 -163
- package/lib/RippleEffect/RippleEffect.module.css +92 -92
- package/lib/Select/GroupSelect.js +5 -3
- package/lib/Select/Select.js +3 -1
- package/lib/Select/Select.module.css +108 -108
- package/lib/Select/SelectWithAvatar.js +3 -1
- package/lib/Select/SelectWithIcon.js +3 -1
- package/lib/Select/__tests__/Select.spec.js +2 -2
- package/lib/Select/props/defaultProps.js +4 -1
- package/lib/Stencils/Stencils.js +3 -1
- package/lib/Stencils/Stencils.module.css +96 -96
- package/lib/Stencils/__tests__/__snapshots__/Stencils.spec.js.snap +49 -49
- package/lib/Switch/Switch.js +3 -1
- package/lib/Switch/Switch.module.css +110 -127
- package/lib/Tab/Tab.module.css +101 -101
- package/lib/Tab/TabContent.module.css +4 -4
- package/lib/Tab/TabWrapper.js +2 -2
- package/lib/Tab/Tabs.js +15 -13
- package/lib/Tab/Tabs.module.css +140 -144
- package/lib/Tag/Tag.js +11 -9
- package/lib/Tag/Tag.module.css +254 -254
- package/lib/TextBox/TextBox.js +3 -1
- package/lib/TextBox/TextBox.module.css +157 -157
- package/lib/TextBox/__tests__/__snapshots__/TextBox.spec.js.snap +127 -127
- package/lib/TextBox/props/propTypes.js +4 -1
- package/lib/TextBoxIcon/TextBoxIcon.js +25 -5
- package/lib/TextBoxIcon/TextBoxIcon.module.css +78 -78
- package/lib/TextBoxIcon/__tests__/__snapshots__/TextBoxIcon.spec.js.snap +334 -334
- package/lib/Textarea/Textarea.js +3 -1
- package/lib/Textarea/Textarea.module.css +139 -139
- package/lib/Textarea/__tests__/__snapshots__/Textarea.spec.js.snap +97 -97
- package/lib/Tooltip/Tooltip.js +3 -1
- package/lib/Tooltip/Tooltip.module.css +109 -134
- package/lib/Tooltip/__tests__/Tooltip.spec.js +3 -1
- package/lib/VelocityAnimation/VelocityAnimation/VelocityAnimation.js +3 -1
- package/lib/VelocityAnimation/VelocityAnimationGroup/VelocityAnimationGroup.js +4 -2
- package/lib/common/a11y.module.css +3 -3
- package/lib/common/animation.module.css +624 -624
- package/lib/common/avatarsizes.module.css +48 -44
- package/lib/common/basic.module.css +33 -33
- package/lib/common/basicReset.module.css +40 -40
- package/lib/common/common.module.css +524 -524
- package/lib/common/customscroll.module.css +89 -89
- package/lib/common/reset.module.css +12 -12
- package/lib/common/transition.module.css +146 -146
- package/lib/deprecated/AdvancedMultiSelect.module.css +126 -126
- package/lib/deprecated/PortalLayer/PortalLayer.js +3 -1
- package/lib/index.js +8 -13
- package/lib/semantic/Button/Button.js +3 -1
- package/lib/semantic/Button/semanticButton.module.css +9 -9
- package/lib/utils/Common.js +18 -2
- package/lib/utils/constructFullName.js +2 -2
- package/lib/utils/dropDownUtils.js +10 -5
- package/package.json +102 -102
- package/assets/Appearance/dark/themes/blue/blueDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/dark/themes/green/greenDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/dark/themes/orange/orangeDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/dark/themes/red/redDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/dark/themes/yellow/yellowDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/default/themes/blue/blueDefaultCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/default/themes/green/greenDefaultCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/default/themes/orange/orangeDefaultCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/default/themes/red/redDefaultCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/default/themes/yellow/yellowDefaultCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/pureDark/themes/blue/bluePureDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/pureDark/themes/green/greenPureDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/pureDark/themes/orange/orangePureDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/pureDark/themes/red/redPureDarkCTAModifyCategory.module.css +0 -68
- package/assets/Appearance/pureDark/themes/yellow/yellowPureDarkCTAModifyCategory.module.css +0 -68
- package/assets/Contrast/darkContrastLightness.module.css +0 -25
- package/assets/Contrast/defaultContrastLightness.module.css +0 -25
- package/assets/Contrast/pureDarkContrastLightness.module.css +0 -25
- package/es/common/boxShadow.module.css +0 -77
- package/lib/common/boxShadow.module.css +0 -77
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
.wrapper {
|
|
2
|
-
position: relative;
|
|
3
|
-
}
|
|
4
|
-
.disabled, .readOnly {
|
|
5
|
-
cursor: not-allowed;
|
|
6
|
-
}
|
|
7
|
-
.container {
|
|
8
|
-
max-height: var(--zd_size120);
|
|
9
|
-
composes: oflowy from '../common/common.module.css';
|
|
10
|
-
}
|
|
11
|
-
.hasBorder {
|
|
12
|
-
transition: border var(--zd_transition2) linear 0s;
|
|
13
|
-
border-bottom-style: solid;
|
|
14
|
-
border-bottom-width: 1px;
|
|
15
|
-
}
|
|
16
|
-
.borderColor_transparent {
|
|
17
|
-
border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
|
|
18
|
-
}
|
|
19
|
-
.effect .borderColor_transparent:hover {
|
|
20
|
-
border-bottom-color: var(--zdt_advancedmultiselect_transparent_hover_border);
|
|
21
|
-
}
|
|
22
|
-
.effect .borderColor_transparent.active {
|
|
23
|
-
border-bottom-color: var(--zdt_advancedmultiselect_transparent_active_border);
|
|
24
|
-
}
|
|
25
|
-
.borderColor_default {
|
|
26
|
-
border-bottom-color: var(--zdt_advancedmultiselect_default_border);
|
|
27
|
-
}
|
|
28
|
-
.effect .borderColor_default:hover {
|
|
29
|
-
border-bottom-color: var(--zdt_advancedmultiselect_default_hover_border);
|
|
30
|
-
}
|
|
31
|
-
.effect .borderColor_default.active {
|
|
32
|
-
border-bottom-color: var(--zdt_advancedmultiselect_default_active_border);
|
|
33
|
-
}
|
|
34
|
-
.borderColor_dark {
|
|
35
|
-
border-bottom-color: var(--zdt_advancedmultiselect_dark_border);
|
|
36
|
-
}
|
|
37
|
-
.effect .borderColor_dark:hover {
|
|
38
|
-
border-bottom-color: var(--zdt_advancedmultiselect_dark_hover_border);
|
|
39
|
-
}
|
|
40
|
-
.effect .borderColor_dark.active {
|
|
41
|
-
border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
|
|
42
|
-
}
|
|
43
|
-
[dir=ltr] .container.medium {
|
|
44
|
-
padding: 0 var(--zd_size34) var(--zd_size7) 0;
|
|
45
|
-
}
|
|
46
|
-
[dir=rtl] .container.medium {
|
|
47
|
-
padding: 0 0 var(--zd_size7) var(--zd_size34);
|
|
48
|
-
}
|
|
49
|
-
.container.xmedium {
|
|
50
|
-
min-height: var(--zd_size30);
|
|
51
|
-
}
|
|
52
|
-
[dir=ltr] .container.xmedium {
|
|
53
|
-
padding: 0 var(--zd_size34) var(--zd_size1) 0;
|
|
54
|
-
}
|
|
55
|
-
[dir=rtl] .container.xmedium {
|
|
56
|
-
padding: 0 0 var(--zd_size1) var(--zd_size34);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.delete {
|
|
60
|
-
position: absolute;
|
|
61
|
-
bottom: 0;
|
|
62
|
-
color: var(--zdt_advancedmultiselect_delete_text);
|
|
63
|
-
padding-bottom: var(--zd_size10);
|
|
64
|
-
cursor: pointer;
|
|
65
|
-
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
66
|
-
border: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
[dir=ltr] .delete {
|
|
70
|
-
right: var(--zd_size15);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
[dir=rtl] .delete {
|
|
74
|
-
left: var(--zd_size15);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.delete:hover {
|
|
78
|
-
color: var(--zdt_advancedmultiselect_delete_hover_text);
|
|
79
|
-
}
|
|
80
|
-
.transparentContainer .delete {
|
|
81
|
-
opacity: 0;
|
|
82
|
-
visibility: hidden;
|
|
83
|
-
}
|
|
84
|
-
.transparentContainer:hover .delete {
|
|
85
|
-
opacity: 1;
|
|
86
|
-
visibility: visible;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.box {
|
|
90
|
-
background: var(--zdt_advancedmultiselect_box_bg);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.small {
|
|
94
|
-
max-height: var(--zd_size200);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.medium {
|
|
98
|
-
max-height: var(--zd_size350);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.large {
|
|
102
|
-
max-height: var(--zd_size400);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.dropContainer {
|
|
106
|
-
display: inline-block;
|
|
107
|
-
max-width: 100%;
|
|
108
|
-
margin-bottom: var(--zd_size5);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.dropPopup {
|
|
112
|
-
font-size: var(--zd_font_size13);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.dropPopup :global .toggleDropIcon {
|
|
116
|
-
color: var(--zdt_advancedmultiselect_droppopup_text);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.more {
|
|
120
|
-
font-size: var(--zd_font_size14);
|
|
121
|
-
color: var(--zdt_advancedmultiselect_more_text);
|
|
122
|
-
font-family: inherit;
|
|
123
|
-
cursor: pointer;
|
|
124
|
-
margin-top: var(--zd_size5);
|
|
125
|
-
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
126
|
-
border: 0;
|
|
1
|
+
.wrapper {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
.disabled, .readOnly {
|
|
5
|
+
cursor: not-allowed;
|
|
6
|
+
}
|
|
7
|
+
.container {
|
|
8
|
+
max-height: var(--zd_size120);
|
|
9
|
+
composes: oflowy from '../common/common.module.css';
|
|
10
|
+
}
|
|
11
|
+
.hasBorder {
|
|
12
|
+
transition: border var(--zd_transition2) linear 0s;
|
|
13
|
+
border-bottom-style: solid;
|
|
14
|
+
border-bottom-width: 1px;
|
|
15
|
+
}
|
|
16
|
+
.borderColor_transparent {
|
|
17
|
+
border-bottom-color: var(--zdt_advancedmultiselect_transparent_border);
|
|
18
|
+
}
|
|
19
|
+
.effect .borderColor_transparent:hover {
|
|
20
|
+
border-bottom-color: var(--zdt_advancedmultiselect_transparent_hover_border);
|
|
21
|
+
}
|
|
22
|
+
.effect .borderColor_transparent.active {
|
|
23
|
+
border-bottom-color: var(--zdt_advancedmultiselect_transparent_active_border);
|
|
24
|
+
}
|
|
25
|
+
.borderColor_default {
|
|
26
|
+
border-bottom-color: var(--zdt_advancedmultiselect_default_border);
|
|
27
|
+
}
|
|
28
|
+
.effect .borderColor_default:hover {
|
|
29
|
+
border-bottom-color: var(--zdt_advancedmultiselect_default_hover_border);
|
|
30
|
+
}
|
|
31
|
+
.effect .borderColor_default.active {
|
|
32
|
+
border-bottom-color: var(--zdt_advancedmultiselect_default_active_border);
|
|
33
|
+
}
|
|
34
|
+
.borderColor_dark {
|
|
35
|
+
border-bottom-color: var(--zdt_advancedmultiselect_dark_border);
|
|
36
|
+
}
|
|
37
|
+
.effect .borderColor_dark:hover {
|
|
38
|
+
border-bottom-color: var(--zdt_advancedmultiselect_dark_hover_border);
|
|
39
|
+
}
|
|
40
|
+
.effect .borderColor_dark.active {
|
|
41
|
+
border-bottom-color: var(--zdt_advancedmultiselect_dark_active_border);
|
|
42
|
+
}
|
|
43
|
+
[dir=ltr] .container.medium {
|
|
44
|
+
padding: 0 var(--zd_size34) var(--zd_size7) 0;
|
|
45
|
+
}
|
|
46
|
+
[dir=rtl] .container.medium {
|
|
47
|
+
padding: 0 0 var(--zd_size7) var(--zd_size34);
|
|
48
|
+
}
|
|
49
|
+
.container.xmedium {
|
|
50
|
+
min-height: var(--zd_size30);
|
|
51
|
+
}
|
|
52
|
+
[dir=ltr] .container.xmedium {
|
|
53
|
+
padding: 0 var(--zd_size34) var(--zd_size1) 0;
|
|
54
|
+
}
|
|
55
|
+
[dir=rtl] .container.xmedium {
|
|
56
|
+
padding: 0 0 var(--zd_size1) var(--zd_size34);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.delete {
|
|
60
|
+
position: absolute;
|
|
61
|
+
bottom: 0;
|
|
62
|
+
color: var(--zdt_advancedmultiselect_delete_text);
|
|
63
|
+
padding-bottom: var(--zd_size10);
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
66
|
+
border: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
[dir=ltr] .delete {
|
|
70
|
+
right: var(--zd_size15);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[dir=rtl] .delete {
|
|
74
|
+
left: var(--zd_size15);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.delete:hover {
|
|
78
|
+
color: var(--zdt_advancedmultiselect_delete_hover_text);
|
|
79
|
+
}
|
|
80
|
+
.transparentContainer .delete {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
visibility: hidden;
|
|
83
|
+
}
|
|
84
|
+
.transparentContainer:hover .delete {
|
|
85
|
+
opacity: 1;
|
|
86
|
+
visibility: visible;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.box {
|
|
90
|
+
background: var(--zdt_advancedmultiselect_box_bg);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.small {
|
|
94
|
+
max-height: var(--zd_size200);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.medium {
|
|
98
|
+
max-height: var(--zd_size350);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.large {
|
|
102
|
+
max-height: var(--zd_size400);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dropContainer {
|
|
106
|
+
display: inline-block;
|
|
107
|
+
max-width: 100%;
|
|
108
|
+
margin-bottom: var(--zd_size5);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.dropPopup {
|
|
112
|
+
font-size: var(--zd_font_size13);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dropPopup :global .toggleDropIcon {
|
|
116
|
+
color: var(--zdt_advancedmultiselect_droppopup_text);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.more {
|
|
120
|
+
font-size: var(--zd_font_size14);
|
|
121
|
+
color: var(--zdt_advancedmultiselect_more_text);
|
|
122
|
+
font-family: inherit;
|
|
123
|
+
cursor: pointer;
|
|
124
|
+
margin-top: var(--zd_size5);
|
|
125
|
+
background-color: var(--zdt_advancedmultiselect_delete_bg);
|
|
126
|
+
border: 0;
|
|
127
127
|
}
|
|
@@ -11,8 +11,10 @@ var _defaultProps = require("./props/defaultProps");
|
|
|
11
11
|
var _Modal = _interopRequireDefault(require("../../Modal/Modal"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
-
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); } }
|
|
14
|
+
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
18
|
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); }
|
|
17
19
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
20
|
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); }; }
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
var _exportNames = {
|
|
8
|
+
Layout: true,
|
|
7
9
|
AppContainer: true,
|
|
8
10
|
Accordion: true,
|
|
9
11
|
Animation: true,
|
|
@@ -152,6 +154,7 @@ Object.defineProperty(exports, "Label", {
|
|
|
152
154
|
return _Label["default"];
|
|
153
155
|
}
|
|
154
156
|
});
|
|
157
|
+
exports.Layout = void 0;
|
|
155
158
|
Object.defineProperty(exports, "ListItem", {
|
|
156
159
|
enumerable: true,
|
|
157
160
|
get: function get() {
|
|
@@ -320,18 +323,8 @@ Object.defineProperty(exports, "VelocityAnimationGroup", {
|
|
|
320
323
|
return _VelocityAnimationGroup["default"];
|
|
321
324
|
}
|
|
322
325
|
});
|
|
323
|
-
var _Layout = require("./Layout");
|
|
324
|
-
|
|
325
|
-
if (key === "default" || key === "__esModule") return;
|
|
326
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
327
|
-
if (key in exports && exports[key] === _Layout[key]) return;
|
|
328
|
-
Object.defineProperty(exports, key, {
|
|
329
|
-
enumerable: true,
|
|
330
|
-
get: function get() {
|
|
331
|
-
return _Layout[key];
|
|
332
|
-
}
|
|
333
|
-
});
|
|
334
|
-
});
|
|
326
|
+
var _Layout = _interopRequireWildcard(require("./Layout"));
|
|
327
|
+
exports.Layout = _Layout;
|
|
335
328
|
var _AppContainer = _interopRequireDefault(require("./AppContainer/AppContainer"));
|
|
336
329
|
var _Accordion = _interopRequireDefault(require("./Accordion/Accordion"));
|
|
337
330
|
var _Animation = _interopRequireDefault(require("./Animation/Animation"));
|
|
@@ -401,4 +394,6 @@ var _IdProvider = require("./Provider/IdProvider");
|
|
|
401
394
|
var _Button2 = _interopRequireDefault(require("./semantic/Button/Button"));
|
|
402
395
|
var _ResponsiveDropBox = _interopRequireDefault(require("./ResponsiveDropBox/ResponsiveDropBox"));
|
|
403
396
|
var _Heading = _interopRequireDefault(require("./Heading/Heading"));
|
|
404
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
397
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
398
|
+
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); }
|
|
399
|
+
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; }
|
|
@@ -11,8 +11,10 @@ var _propTypes = require("./props/propTypes");
|
|
|
11
11
|
var _semanticButtonModule = _interopRequireDefault(require("./semanticButton.module.css"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
-
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); } }
|
|
14
|
+
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
18
|
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); }
|
|
17
19
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
18
20
|
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); }; }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.buttonReset {
|
|
2
|
-
outline: 0;
|
|
3
|
-
font: inherit;
|
|
4
|
-
color: inherit;
|
|
5
|
-
border: inherit;
|
|
6
|
-
background-color: inherit;
|
|
7
|
-
padding: 0;
|
|
8
|
-
text-align: inherit;
|
|
9
|
-
}
|
|
1
|
+
.buttonReset {
|
|
2
|
+
outline: 0;
|
|
3
|
+
font: inherit;
|
|
4
|
+
color: inherit;
|
|
5
|
+
border: inherit;
|
|
6
|
+
background-color: inherit;
|
|
7
|
+
padding: 0;
|
|
8
|
+
text-align: inherit;
|
|
9
|
+
}
|
package/lib/utils/Common.js
CHANGED
|
@@ -26,6 +26,7 @@ exports.getSearchString = getSearchString;
|
|
|
26
26
|
exports.getStringifiedOutputForJson = getStringifiedOutputForJson;
|
|
27
27
|
exports.getTotalDimension = void 0;
|
|
28
28
|
exports.isDescendant = isDescendant;
|
|
29
|
+
exports.isTextSelected = isTextSelected;
|
|
29
30
|
exports.mapValues = mapValues;
|
|
30
31
|
exports.merge = merge;
|
|
31
32
|
exports.parseDecimal = void 0;
|
|
@@ -384,8 +385,23 @@ function findScrollEnd(element) {
|
|
|
384
385
|
if (scrollHeight <= Math.ceil(scrollTop + offsetHeight)) {
|
|
385
386
|
return true;
|
|
386
387
|
}
|
|
387
|
-
}
|
|
388
|
-
|
|
388
|
+
}
|
|
389
|
+
// else {
|
|
390
|
+
|
|
391
|
+
// throw 'Is scroll not present in this element';
|
|
392
|
+
// }
|
|
393
|
+
return false;
|
|
394
|
+
}
|
|
395
|
+
function isTextSelected() {
|
|
396
|
+
var selectedText = '';
|
|
397
|
+
if (window.getSelection) {
|
|
398
|
+
selectedText = window.getSelection().toString();
|
|
399
|
+
console.log(selectedText, 'selectedText');
|
|
400
|
+
} else if (document.getSelection) {
|
|
401
|
+
selectedText = document.getSelection().toString();
|
|
402
|
+
}
|
|
403
|
+
if (selectedText !== '') {
|
|
404
|
+
return true;
|
|
389
405
|
}
|
|
390
406
|
return false;
|
|
391
407
|
}
|
|
@@ -7,8 +7,8 @@ exports.constructFullNameByPattern = constructFullNameByPattern;
|
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
9
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
11
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
10
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
function constructFullName(firstName, lastName) {
|
|
14
14
|
return "".concat(firstName ? "".concat(firstName).concat(lastName ? ' ' : '') : '').concat(lastName ? lastName : '');
|
|
@@ -10,13 +10,15 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableTo
|
|
|
10
10
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
11
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
12
12
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
13
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
14
16
|
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); }
|
|
15
17
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
18
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
19
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
18
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
19
|
-
function _iterableToArrayLimit(arr, i) { var _i =
|
|
20
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
21
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
20
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
21
23
|
var dummyArray = [];
|
|
22
24
|
exports.dummyArray = dummyArray;
|
|
@@ -84,6 +86,9 @@ exports.getPrefixText = getPrefixText;
|
|
|
84
86
|
var getIsStartWithSearch = function getIsStartWithSearch(props) {
|
|
85
87
|
return props.isStartsWithSearch;
|
|
86
88
|
};
|
|
89
|
+
var getIsNeedTick = function getIsNeedTick(props) {
|
|
90
|
+
return props.isNeedTick;
|
|
91
|
+
};
|
|
87
92
|
var getDisabledOptions = function getDisabledOptions(props) {
|
|
88
93
|
return props.disabledOptions || dummyArray;
|
|
89
94
|
};
|
|
@@ -91,7 +96,7 @@ var getListItemProps = function getListItemProps(props) {
|
|
|
91
96
|
return props.listItemProps || '';
|
|
92
97
|
};
|
|
93
98
|
var makeGetMultiSelectFilterSuggestions = function makeGetMultiSelectFilterSuggestions() {
|
|
94
|
-
return (0, _reselect.createSelector)([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch], function (options, selectedOptions, searchStr, needSearch, isStartsWithSearch) {
|
|
99
|
+
return (0, _reselect.createSelector)([getOptions, getSelectedOptionsSel, getSearchStr, getNeedSearch, getIsStartWithSearch, getIsNeedTick], function (options, selectedOptions, searchStr, needSearch, isStartsWithSearch, isNeedTick) {
|
|
95
100
|
var suggestions = [];
|
|
96
101
|
var suggestionIds = [];
|
|
97
102
|
options.forEach(function (option) {
|
|
@@ -101,7 +106,7 @@ var makeGetMultiSelectFilterSuggestions = function makeGetMultiSelectFilterSugge
|
|
|
101
106
|
var valueString = (0, _Common.getSearchString)(value);
|
|
102
107
|
var searchString = (0, _Common.getSearchString)(searchStr);
|
|
103
108
|
var isMatch = needSearch ? isStartsWithSearch ? valueString.startsWith(searchString) : valueString.indexOf(searchString) !== -1 : true;
|
|
104
|
-
if (selectedOptions.indexOf(id) === -1 && isMatch) {
|
|
109
|
+
if (selectedOptions.indexOf(id) === -1 && isMatch || isNeedTick) {
|
|
105
110
|
suggestions.push(option);
|
|
106
111
|
suggestionIds.push(id);
|
|
107
112
|
}
|