@zohodesk/dot 1.0.0-temp-184 → 1.0.0-temp-181.9
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/.cli/propValidation_report.html +1 -1
- package/coverage/ExternalLink/ExternalLink.js.html +1 -1
- package/coverage/ExternalLink/ExternalLink.module.css.html +1 -1
- package/coverage/ExternalLink/index.html +1 -1
- package/coverage/ExternalLink/props/defaultProps.js.html +1 -1
- package/coverage/ExternalLink/props/index.html +1 -1
- package/coverage/ExternalLink/props/propTypes.js.html +1 -1
- package/coverage/IconButton/IconButton.js.html +1 -1
- package/coverage/IconButton/IconButton.module.css.html +1 -1
- package/coverage/IconButton/index.html +1 -1
- package/coverage/IconButton/props/defaultProps.js.html +1 -1
- package/coverage/IconButton/props/index.html +1 -1
- package/coverage/IconButton/props/propTypes.js.html +1 -1
- package/coverage/Image/Image.js.html +1 -1
- package/coverage/Image/Image.module.css.html +1 -1
- package/coverage/Image/index.html +1 -1
- package/coverage/Image/props/defaultProps.js.html +1 -1
- package/coverage/Image/props/index.html +1 -1
- package/coverage/Image/props/propTypes.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/AvatarWithTeam.module.css.html +1 -1
- package/coverage/avatar/AvatarWithTeam/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/defaultProps.js.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/index.html +1 -1
- package/coverage/avatar/AvatarWithTeam/props/propTypes.js.html +1 -1
- package/coverage/coverage-final.json +16 -16
- package/coverage/coverage-summary.json +16 -16
- package/coverage/index.html +1 -1
- package/es/ActionButton/ActionButton.module.css +192 -192
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/es/ChannelIcon/ChannelIcon.module.css +225 -225
- package/es/Drawer/Drawer.js +4 -5
- package/es/ExternalLink/ExternalLink.js +4 -5
- package/es/FlipCard/FlipCard.js +14 -12
- package/es/FormAction/FormAction.module.css +100 -100
- package/es/IconButton/IconButton.js +4 -5
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Link/Link.js +8 -10
- package/es/Message/Message.js +4 -5
- package/es/TagWithIcon/TagWithIcon.module.css +66 -66
- package/es/ToastMessage/ToastMessage.js +2 -4
- package/es/actions/AutoClose.js +2 -1
- package/es/alert/AlertLookup/AlertLookup.js +14 -12
- package/es/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/common/dot_boxShadow.module.css +0 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/es/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/form/fields/DateField/DateField.js +14 -14
- package/es/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/form/fields/RadioField/RadioField.js +18 -15
- package/es/form/fields/SelectField/SelectField.js +14 -14
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/es/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/ListLayout/ListLayout.js +4 -5
- package/es/list/ListLayout/ListLayout.module.css +79 -79
- package/es/list/SecondaryText/AccountName.js +12 -12
- package/es/list/SecondaryText/ContactName.js +8 -9
- package/es/list/SecondaryText/Email.js +8 -8
- package/es/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/list/SecondaryText/SecondaryText.js +4 -5
- package/es/list/SecondaryText/TicketId.js +7 -7
- package/es/list/Subject/Subject.js +7 -7
- package/es/list/Subject/Subject.module.css +34 -34
- package/es/list/Thread/Thread.js +2 -1
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/status/StatusDropdown/StatusDropdown.js +142 -101
- package/es/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/lookup/Lookup/Lookup.js +4 -5
- package/es/lookup/header/Search/Search.js +5 -3
- package/es/v1/DotWrapper/DotWrapper.js +46 -0
- package/es/v1/DotWrapper/libraryChunks/dynamicImports.js +24 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +3 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +1 -0
- package/es/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +1 -0
- package/es/v1/DotWrapper/props/defaultProps.js +6 -0
- package/es/v1/DotWrapper/props/propTypes.js +9 -0
- package/es/v1/DotWrapper/utils/appearanceProperties.js +46 -0
- package/es/v1/DotWrapper/utils/errorMessage.js +7 -0
- package/es/v1/DotWrapper/utils/importFiles.js +30 -0
- package/es/v1/DotWrapper/utils/sizeProperties.js +12 -0
- package/es/v1/DotWrapper/utils/themeProperties.js +220 -0
- package/es/v1/Drawer/Drawer.js +4 -5
- package/es/v1/ExternalLink/ExternalLink.js +4 -5
- package/es/v1/FlipCard/FlipCard.js +14 -12
- package/es/v1/GlobalNotification/GlobalNotification.js +6 -7
- package/es/v1/IconButton/IconButton.js +4 -5
- package/es/v1/Link/Link.js +8 -10
- package/es/v1/Message/Message.js +4 -5
- package/es/v1/ToastMessage/ToastMessage.js +2 -4
- package/es/v1/actions/AutoClose.js +2 -1
- package/es/v1/alert/AlertLookup/AlertLookup.js +15 -15
- package/es/v1/avatar/AvatarClose/AvatarClose.js +7 -7
- package/es/v1/avatar/AvatarCollision/AvatarCollision.js +7 -7
- package/es/v1/avatar/AvatarIcon/AvatarIcon.js +4 -5
- package/es/v1/avatar/AvatarStatus/AvatarStatus.js +7 -8
- package/es/v1/avatar/AvatarThread/AvatarThread.js +7 -7
- package/es/v1/avatar/AvatarUser/AvatarUser.js +10 -9
- package/es/v1/avatar/AvatarWithTeam/AvatarWithTeam.js +17 -14
- package/es/v1/dropdown/ToggleDropDown/ToggleDropDown.js +28 -24
- package/es/v1/form/fields/CheckBoxField/CheckBoxField.js +15 -13
- package/es/v1/form/fields/CurrencyField/CurrencyField.js +14 -12
- package/es/v1/form/fields/DateField/DateField.js +14 -14
- package/es/v1/form/fields/MultiSelectField/MultiSelectField.js +13 -12
- package/es/v1/form/fields/PhoneField/PhoneField.js +7 -7
- package/es/v1/form/fields/RadioField/RadioField.js +18 -16
- package/es/v1/form/fields/SelectField/SelectField.js +14 -14
- package/es/v1/form/fields/TagsMultiSelect/TagsMultiSelect.js +13 -10
- package/es/v1/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +11 -11
- package/es/v1/form/fields/TextBoxField/TextBoxField.js +14 -14
- package/es/v1/form/fields/TextEditorField/TextEditorField.js +11 -10
- package/es/v1/form/fields/TextEditorWrapper/TextEditorWrapper.js +11 -10
- package/es/v1/form/fields/TextareaField/TextareaField.js +14 -13
- package/es/v1/layout/SubtabLayout/SubtabLayout.js +4 -6
- package/es/v1/list/ListLayout/ListLayout.js +4 -5
- package/es/v1/list/SecondaryText/AccountName.js +12 -12
- package/es/v1/list/SecondaryText/ContactName.js +8 -9
- package/es/v1/list/SecondaryText/Email.js +8 -8
- package/es/v1/list/SecondaryText/PhoneNumber.js +8 -8
- package/es/v1/list/SecondaryText/SecondaryText.js +4 -5
- package/es/v1/list/SecondaryText/TicketId.js +7 -7
- package/es/v1/list/Subject/Subject.js +7 -7
- package/es/v1/list/Thread/Thread.js +2 -1
- package/es/v1/list/status/StatusListItem/StatusListItem.js +5 -5
- package/es/v1/lookup/Lookup/Lookup.js +4 -5
- package/es/v1/lookup/header/Search/Search.js +5 -3
- package/es/v1/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.js +6 -7
- package/es/version2/GlobalNotification/GlobalNotification.module.css +177 -177
- package/es/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/es/version2/lookup/AlertLookup/AlertLookup.js +15 -15
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +6 -7
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
- package/lib/ActionButton/ActionButton.module.css +192 -192
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/AttachmentViewer/AttachmentViewer.module.css +352 -352
- package/lib/ChannelIcon/ChannelIcon.module.css +225 -225
- package/lib/FormAction/FormAction.module.css +100 -100
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/TagWithIcon/TagWithIcon.module.css +66 -66
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/common/dot_boxShadow.module.css +0 -2
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +92 -92
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +164 -164
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/ListLayout/ListLayout.module.css +79 -79
- package/lib/list/Subject/Subject.module.css +34 -34
- package/lib/list/Thread/Thread.js +2 -1
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/status/StatusDropdown/StatusDropdown.js +207 -162
- package/lib/v1/DotWrapper/DotWrapper.js +65 -0
- package/lib/v1/DotWrapper/libraryChunks/dynamicImports.js +43 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/blue/Blue_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/green/Green_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/orange/Orange_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/red/Red_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Dark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_Light_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/component/yellow/Yellow_PureDark_Component.js +7 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/blue/Blue_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/green/Green_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/orange/Orange_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/red/Red_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Dark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_Light_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/dot/yellow/Yellow_PureDark_Dot.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/blue/Blue_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/green/Green_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/orange/Orange_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/red/Red_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Dark_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_Light_SVG.js +3 -0
- package/lib/v1/DotWrapper/libraryChunks/themes/svg/yellow/Yellow_PureDark_SVG.js +3 -0
- package/lib/v1/DotWrapper/props/defaultProps.js +13 -0
- package/lib/v1/DotWrapper/props/propTypes.js +20 -0
- package/lib/v1/DotWrapper/utils/appearanceProperties.js +79 -0
- package/lib/v1/DotWrapper/utils/errorMessage.js +14 -0
- package/lib/v1/DotWrapper/utils/importFiles.js +39 -0
- package/lib/v1/DotWrapper/utils/sizeProperties.js +31 -0
- package/lib/v1/DotWrapper/utils/themeProperties.js +325 -0
- package/lib/v1/list/Thread/Thread.js +2 -1
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +177 -177
- package/lib/version2/lookup/AlertHeader/css/AlertHeaderNew.module.css +87 -87
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +132 -132
- package/package.json +1 -1
- package/result.json +1 -1
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
.varClass {
|
|
2
|
-
--icon_color: var(--zdt_thread_iconText);
|
|
3
|
-
}
|
|
4
|
-
.container {
|
|
5
|
-
composes: varClass;
|
|
6
|
-
position: relative;
|
|
7
|
-
color: var(--icon_color);
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
}
|
|
10
|
-
.container:hover {
|
|
11
|
-
--icon_color: var(--zdt_thread_hover_iconText);
|
|
12
|
-
}
|
|
13
|
-
.count {
|
|
14
|
-
font-size: var(--zd_font_size9) ;
|
|
15
|
-
}
|
|
16
|
-
.align_left .count {
|
|
17
|
-
position: absolute;
|
|
18
|
-
line-height: normal;
|
|
19
|
-
top: var(--zd_size3) ;
|
|
20
|
-
}
|
|
21
|
-
[dir=ltr] .align_left .count {
|
|
22
|
-
text-align: left;
|
|
23
|
-
left: var(--zd_size8) ;
|
|
24
|
-
}
|
|
25
|
-
[dir=rtl] .align_left .count {
|
|
26
|
-
text-align: right;
|
|
27
|
-
right: var(--zd_size8) ;
|
|
28
|
-
}
|
|
29
|
-
.align_right {
|
|
30
|
-
composes: dInflex alignFend from '~@zohodesk/components/lib/common/common.module.css';
|
|
31
|
-
}
|
|
32
|
-
.align_right .count {
|
|
33
|
-
position: relative;
|
|
34
|
-
bottom: var(--zd_size2) ;
|
|
35
|
-
}
|
|
36
|
-
[dir=ltr] .align_right .count {
|
|
37
|
-
right: var(--zd_size5) ;
|
|
38
|
-
float: right;
|
|
39
|
-
}
|
|
40
|
-
[dir=rtl] .align_right .count {
|
|
41
|
-
left: var(--zd_size5) ;
|
|
42
|
-
float: left;
|
|
1
|
+
.varClass {
|
|
2
|
+
--icon_color: var(--zdt_thread_iconText);
|
|
3
|
+
}
|
|
4
|
+
.container {
|
|
5
|
+
composes: varClass;
|
|
6
|
+
position: relative;
|
|
7
|
+
color: var(--icon_color);
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
.container:hover {
|
|
11
|
+
--icon_color: var(--zdt_thread_hover_iconText);
|
|
12
|
+
}
|
|
13
|
+
.count {
|
|
14
|
+
font-size: var(--zd_font_size9) ;
|
|
15
|
+
}
|
|
16
|
+
.align_left .count {
|
|
17
|
+
position: absolute;
|
|
18
|
+
line-height: normal;
|
|
19
|
+
top: var(--zd_size3) ;
|
|
20
|
+
}
|
|
21
|
+
[dir=ltr] .align_left .count {
|
|
22
|
+
text-align: left;
|
|
23
|
+
left: var(--zd_size8) ;
|
|
24
|
+
}
|
|
25
|
+
[dir=rtl] .align_left .count {
|
|
26
|
+
text-align: right;
|
|
27
|
+
right: var(--zd_size8) ;
|
|
28
|
+
}
|
|
29
|
+
.align_right {
|
|
30
|
+
composes: dInflex alignFend from '~@zohodesk/components/lib/common/common.module.css';
|
|
31
|
+
}
|
|
32
|
+
.align_right .count {
|
|
33
|
+
position: relative;
|
|
34
|
+
bottom: var(--zd_size2) ;
|
|
35
|
+
}
|
|
36
|
+
[dir=ltr] .align_right .count {
|
|
37
|
+
right: var(--zd_size5) ;
|
|
38
|
+
float: right;
|
|
39
|
+
}
|
|
40
|
+
[dir=rtl] .align_right .count {
|
|
41
|
+
left: var(--zd_size5) ;
|
|
42
|
+
float: left;
|
|
43
43
|
}
|
|
@@ -27,6 +27,10 @@ var _Loader = _interopRequireDefault(require("@zohodesk/svg/lib/Loader/Loader"))
|
|
|
27
27
|
|
|
28
28
|
var _EmptySearch = _interopRequireDefault(require("@zohodesk/svg/lib/emptystate/version3/EmptySearch"));
|
|
29
29
|
|
|
30
|
+
var _Common = require("@zohodesk/components/lib/utils/Common.js");
|
|
31
|
+
|
|
32
|
+
var _TextBox = _interopRequireDefault(require("@zohodesk/components/lib/TextBox/TextBox"));
|
|
33
|
+
|
|
30
34
|
var _CommonEmptyState = _interopRequireDefault(require("../../../emptystate/CommonEmptyState/CommonEmptyState"));
|
|
31
35
|
|
|
32
36
|
var _StatusListItem = _interopRequireDefault(require("../StatusListItem/StatusListItem"));
|
|
@@ -78,20 +82,20 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
78
82
|
_this = _super.call(this, props);
|
|
79
83
|
_this.state = {
|
|
80
84
|
searchString: '',
|
|
81
|
-
|
|
85
|
+
selectedIndex: 0,
|
|
82
86
|
options: props.options
|
|
83
87
|
};
|
|
84
|
-
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
85
|
-
|
|
88
|
+
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
89
|
+
_this.handleKeyDown = _this.handleKeyDown.bind(_assertThisInitialized(_this));
|
|
86
90
|
_this.onSelect = _this.onSelect.bind(_assertThisInitialized(_this));
|
|
87
91
|
_this.handleTogglePopup = _this.handleTogglePopup.bind(_assertThisInitialized(_this));
|
|
88
92
|
_this.onSearchClear = _this.onSearchClear.bind(_assertThisInitialized(_this));
|
|
89
93
|
_this.searchList = _this.searchList.bind(_assertThisInitialized(_this));
|
|
90
|
-
_this.scrollContentRef = _this.scrollContentRef.bind(_assertThisInitialized(_this));
|
|
91
|
-
|
|
94
|
+
_this.scrollContentRef = _this.scrollContentRef.bind(_assertThisInitialized(_this));
|
|
95
|
+
_this.handleMouseEnter = _this.handleMouseEnter.bind(_assertThisInitialized(_this));
|
|
92
96
|
_this.searchInputRef = _this.searchInputRef.bind(_assertThisInitialized(_this));
|
|
93
|
-
_this.itemRef = _this.itemRef.bind(_assertThisInitialized(_this));
|
|
94
|
-
|
|
97
|
+
_this.itemRef = _this.itemRef.bind(_assertThisInitialized(_this));
|
|
98
|
+
_this.inputRef = _this.inputRef.bind(_assertThisInitialized(_this));
|
|
95
99
|
_this.handleScroll = _this.handleScroll.bind(_assertThisInitialized(_this));
|
|
96
100
|
_this.emptySearchSVG = _this.emptySearchSVG.bind(_assertThisInitialized(_this));
|
|
97
101
|
_this.getAriaId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
|
|
@@ -104,10 +108,12 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
104
108
|
return /*#__PURE__*/_react["default"].createElement(_EmptySearch["default"], {
|
|
105
109
|
size: "small"
|
|
106
110
|
});
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
}
|
|
112
|
+
}, {
|
|
113
|
+
key: "inputRef",
|
|
114
|
+
value: function inputRef(el) {
|
|
115
|
+
this.hiddenInput = el;
|
|
116
|
+
}
|
|
111
117
|
}, {
|
|
112
118
|
key: "itemRef",
|
|
113
119
|
value: function itemRef(ele, index, id) {
|
|
@@ -164,74 +170,110 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
164
170
|
}, {
|
|
165
171
|
key: "componentDidUpdate",
|
|
166
172
|
value: function componentDidUpdate(prevProps) {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
173
|
+
var _this2 = this;
|
|
174
|
+
|
|
175
|
+
var _this$props3 = this.props,
|
|
176
|
+
isPopupOpen = _this$props3.isPopupOpen,
|
|
177
|
+
isSearch = _this$props3.isSearch,
|
|
178
|
+
idName = _this$props3.idName;
|
|
179
|
+
var _this$state = this.state,
|
|
180
|
+
selectedIndex = _this$state.selectedIndex,
|
|
181
|
+
options = _this$state.options;
|
|
182
|
+
|
|
183
|
+
if (prevProps.isPopupOpen != isPopupOpen) {
|
|
184
|
+
setTimeout(function () {
|
|
185
|
+
isPopupOpen && isSearch ? _this2.searchInput && _this2.searchInput.focus() : _this2.hiddenInput && _this2.hiddenInput.focus();
|
|
186
|
+
}, 10);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
var mergeOptions = options;
|
|
190
|
+
var option = mergeOptions[selectedIndex];
|
|
191
|
+
var id = option && option[idName] || {};
|
|
192
|
+
var selSuggestion = this["suggestion_".concat(id)];
|
|
193
|
+
|
|
194
|
+
if (isPopupOpen) {
|
|
195
|
+
this.optionsContainer && (0, _Common.scrollTo)(this.optionsContainer, selSuggestion);
|
|
196
|
+
}
|
|
197
|
+
|
|
183
198
|
if (!prevProps.isPopupOpen && this.props.isPopupOpen) {
|
|
184
199
|
this.onSearchClear();
|
|
185
200
|
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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
|
-
// }
|
|
201
|
+
}
|
|
202
|
+
}, {
|
|
203
|
+
key: "handleKeyDown",
|
|
204
|
+
value: function handleKeyDown(e) {
|
|
205
|
+
var keyCode = e.keyCode;
|
|
206
|
+
var _this$state2 = this.state,
|
|
207
|
+
selectedIndex = _this$state2.selectedIndex,
|
|
208
|
+
options = _this$state2.options;
|
|
209
|
+
var totalIndex = options.length;
|
|
210
|
+
var _this$props4 = this.props,
|
|
211
|
+
togglePopup = _this$props4.togglePopup,
|
|
212
|
+
onClick = _this$props4.onClick,
|
|
213
|
+
boxPosition = _this$props4.boxPosition,
|
|
214
|
+
isPopupReady = _this$props4.isPopupReady,
|
|
215
|
+
isNextOptions = _this$props4.isNextOptions,
|
|
216
|
+
getNextOptions = _this$props4.getNextOptions,
|
|
217
|
+
onTogglePopup = _this$props4.onTogglePopup,
|
|
218
|
+
isPopupOpen = _this$props4.isPopupOpen;
|
|
219
|
+
|
|
220
|
+
if (isPopupReady && (keyCode === 38 || keyCode === 40) && e.preventDefault) {
|
|
221
|
+
e.preventDefault(); //prevent body scroll
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
if (isPopupReady) {
|
|
225
|
+
switch (keyCode) {
|
|
226
|
+
case 40:
|
|
227
|
+
if (selectedIndex === totalIndex - 1) {
|
|
228
|
+
this.setState({
|
|
229
|
+
selectedIndex: 0
|
|
230
|
+
});
|
|
231
|
+
} else {
|
|
232
|
+
if (selectedIndex === totalIndex - 3) {
|
|
233
|
+
isNextOptions && getNextOptions && getNextOptions();
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
this.setState({
|
|
237
|
+
selectedIndex: selectedIndex + 1
|
|
238
|
+
});
|
|
239
|
+
}
|
|
228
240
|
|
|
241
|
+
break;
|
|
242
|
+
|
|
243
|
+
case 38:
|
|
244
|
+
if (selectedIndex === 0) {
|
|
245
|
+
this.setState({
|
|
246
|
+
selectedIndex: totalIndex - 1
|
|
247
|
+
});
|
|
248
|
+
} else {
|
|
249
|
+
this.setState({
|
|
250
|
+
selectedIndex: selectedIndex - 1
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
break;
|
|
255
|
+
|
|
256
|
+
case 13:
|
|
257
|
+
onClick && onClick(options[selectedIndex].name, e);
|
|
258
|
+
onTogglePopup && onTogglePopup(isPopupOpen);
|
|
259
|
+
togglePopup(e, boxPosition);
|
|
260
|
+
break;
|
|
261
|
+
|
|
262
|
+
default:
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
} else {
|
|
266
|
+
if (keyCode === 13 || keyCode === 40) {
|
|
267
|
+
togglePopup(e, boxPosition);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
229
271
|
}, {
|
|
230
272
|
key: "searchList",
|
|
231
273
|
value: function searchList(value) {
|
|
232
|
-
var _this$
|
|
233
|
-
options = _this$
|
|
234
|
-
keyName = _this$
|
|
274
|
+
var _this$props5 = this.props,
|
|
275
|
+
options = _this$props5.options,
|
|
276
|
+
keyName = _this$props5.keyName;
|
|
235
277
|
var foptions = options.filter(function (dept) {
|
|
236
278
|
return dept[keyName].toLowerCase().indexOf(value.toLowerCase()) != -1;
|
|
237
279
|
});
|
|
@@ -243,7 +285,7 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
243
285
|
var foptions = this.searchList(value);
|
|
244
286
|
this.setState({
|
|
245
287
|
searchString: value,
|
|
246
|
-
|
|
288
|
+
selectedIndex: -1,
|
|
247
289
|
options: foptions
|
|
248
290
|
});
|
|
249
291
|
}
|
|
@@ -255,18 +297,20 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
255
297
|
searchString: '',
|
|
256
298
|
options: foptions
|
|
257
299
|
});
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
300
|
+
}
|
|
301
|
+
}, {
|
|
302
|
+
key: "handleMouseEnter",
|
|
303
|
+
value: function handleMouseEnter(id, value, index, e) {
|
|
304
|
+
this.setState({
|
|
305
|
+
selectedIndex: index
|
|
306
|
+
});
|
|
307
|
+
}
|
|
264
308
|
}, {
|
|
265
309
|
key: "handleScroll",
|
|
266
310
|
value: function handleScroll(e) {
|
|
267
|
-
var _this$
|
|
268
|
-
isNextOptions = _this$
|
|
269
|
-
getNextOptions = _this$
|
|
311
|
+
var _this$props6 = this.props,
|
|
312
|
+
isNextOptions = _this$props6.isNextOptions,
|
|
313
|
+
getNextOptions = _this$props6.getNextOptions;
|
|
270
314
|
|
|
271
315
|
if (e.target.scrollTop + e.target.offsetHeight > e.target.scrollHeight - 1) {
|
|
272
316
|
isNextOptions && getNextOptions && getNextOptions(e);
|
|
@@ -285,56 +329,58 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
285
329
|
}, {
|
|
286
330
|
key: "render",
|
|
287
331
|
value: function render() {
|
|
288
|
-
var
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
_this$
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
_this$
|
|
337
|
-
|
|
332
|
+
var _this3 = this;
|
|
333
|
+
|
|
334
|
+
var _this$state3 = this.state,
|
|
335
|
+
options = _this$state3.options,
|
|
336
|
+
selectedIndex = _this$state3.selectedIndex;
|
|
337
|
+
var _this$props7 = this.props,
|
|
338
|
+
value = _this$props7.value,
|
|
339
|
+
removeClose = _this$props7.removeClose,
|
|
340
|
+
boxSize = _this$props7.boxSize,
|
|
341
|
+
keyName = _this$props7.keyName,
|
|
342
|
+
idName = _this$props7.idName,
|
|
343
|
+
title = _this$props7.title,
|
|
344
|
+
isSearch = _this$props7.isSearch,
|
|
345
|
+
isArrow = _this$props7.isArrow,
|
|
346
|
+
placeHolderText = _this$props7.placeHolderText,
|
|
347
|
+
className = _this$props7.className,
|
|
348
|
+
right = _this$props7.right,
|
|
349
|
+
left = _this$props7.left,
|
|
350
|
+
top = _this$props7.top,
|
|
351
|
+
bottom = _this$props7.bottom,
|
|
352
|
+
isOpen = _this$props7.isPopupOpen,
|
|
353
|
+
isPopupReady = _this$props7.isPopupReady,
|
|
354
|
+
position = _this$props7.position,
|
|
355
|
+
getTargetRef = _this$props7.getTargetRef,
|
|
356
|
+
getContainerRef = _this$props7.getContainerRef,
|
|
357
|
+
dataId = _this$props7.dataId,
|
|
358
|
+
searchBoxSize = _this$props7.searchBoxSize,
|
|
359
|
+
searchEmptyHint = _this$props7.searchEmptyHint,
|
|
360
|
+
searchErrorText = _this$props7.searchErrorText,
|
|
361
|
+
activeStyle = _this$props7.activeStyle,
|
|
362
|
+
_this$props7$showOnHo = _this$props7.showOnHover,
|
|
363
|
+
showOnHover = _this$props7$showOnHo === void 0 ? false : _this$props7$showOnHo,
|
|
364
|
+
isDisabled = _this$props7.isDisabled,
|
|
365
|
+
showIconOnHover = _this$props7.showIconOnHover,
|
|
366
|
+
isReadOnly = _this$props7.isReadOnly,
|
|
367
|
+
hoverStyle = _this$props7.hoverStyle,
|
|
368
|
+
isEditable = _this$props7.isEditable,
|
|
369
|
+
needTick = _this$props7.needTick,
|
|
370
|
+
dataTitle = _this$props7.dataTitle,
|
|
371
|
+
isDataLoaded = _this$props7.isDataLoaded,
|
|
372
|
+
children = _this$props7.children,
|
|
373
|
+
targetAlign = _this$props7.targetAlign,
|
|
374
|
+
needResponsive = _this$props7.needResponsive,
|
|
375
|
+
arrowIconPosition = _this$props7.arrowIconPosition,
|
|
376
|
+
statusColor = _this$props7.statusColor,
|
|
377
|
+
_this$props7$needExte = _this$props7.needExternalPopupState,
|
|
378
|
+
needExternalPopupState = _this$props7$needExte === void 0 ? false : _this$props7$needExte,
|
|
379
|
+
_this$props7$isPopupA = _this$props7.isPopupActive,
|
|
380
|
+
isPopupActive = _this$props7$isPopupA === void 0 ? false : _this$props7$isPopupA,
|
|
381
|
+
needMultiLineText = _this$props7.needMultiLineText,
|
|
382
|
+
_this$props7$a11y = _this$props7.a11y,
|
|
383
|
+
a11y = _this$props7$a11y === void 0 ? {} : _this$props7$a11y;
|
|
338
384
|
var _a11y$tabIndex = a11y.tabIndex,
|
|
339
385
|
tabIndex = _a11y$tabIndex === void 0 ? 0 : _a11y$tabIndex,
|
|
340
386
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
@@ -351,11 +397,12 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
351
397
|
tagName: "button",
|
|
352
398
|
alignBox: "row",
|
|
353
399
|
className: "".concat(_StatusDropdownModule["default"].container, " ").concat(containerClass, " ").concat(_semanticButtonModule["default"].buttonReset),
|
|
354
|
-
|
|
400
|
+
onMouseDown: !showOnHover && !isDisabled && !isReadOnly && isEditable ? this.handleTogglePopup : null,
|
|
355
401
|
eleRef: getTargetRef,
|
|
356
402
|
align: targetAlign,
|
|
357
403
|
isCover: false,
|
|
358
404
|
dataId: dataId,
|
|
405
|
+
onClick: removeClose,
|
|
359
406
|
disabled: isDisabled || isReadOnly ? true : false,
|
|
360
407
|
"aria-haspopup": isSearch ? 'listbox' : 'menu',
|
|
361
408
|
"aria-expanded": isPopupReady && isEditable ? true : false,
|
|
@@ -363,7 +410,15 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
363
410
|
"aria-labelledby": ariaLabelledby,
|
|
364
411
|
"aria-label": ariaLabel,
|
|
365
412
|
"aria-disabled": isDisabled || isReadOnly
|
|
366
|
-
},
|
|
413
|
+
}, isEditable ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
414
|
+
className: _StatusDropdownModule["default"].hiddenInput
|
|
415
|
+
}, /*#__PURE__*/_react["default"].createElement(_TextBox["default"], {
|
|
416
|
+
type: "text",
|
|
417
|
+
inputRef: this.inputRef,
|
|
418
|
+
onKeyDown: this.handleKeyDown,
|
|
419
|
+
needAppearance: false,
|
|
420
|
+
placeHolder: placeHolderText
|
|
421
|
+
})) : null, children ? children : /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
367
422
|
className: "".concat(_StatusDropdownModule["default"].value, " toggleDropText"),
|
|
368
423
|
shrink: true,
|
|
369
424
|
tagName: "span",
|
|
@@ -395,25 +450,17 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
395
450
|
customDropBoxWrap: _StatusDropdownModule["default"].dropBoxContainer
|
|
396
451
|
},
|
|
397
452
|
needResponsive: needResponsive,
|
|
398
|
-
isResponsivePadding: true
|
|
399
|
-
tabindex: 0,
|
|
400
|
-
needFocusScope: true,
|
|
401
|
-
onClose: _this2.handleTogglePopup
|
|
453
|
+
isResponsivePadding: true
|
|
402
454
|
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, isSearch ? /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
403
455
|
className: _StatusDropdownModule["default"].search
|
|
404
456
|
}, /*#__PURE__*/_react["default"].createElement(_TextBoxIcon["default"], {
|
|
405
457
|
placeHolder: placeHolderText,
|
|
406
|
-
onChange:
|
|
458
|
+
onChange: _this3.handleChange,
|
|
407
459
|
value: searchString,
|
|
408
|
-
onClear:
|
|
460
|
+
onClear: _this3.onSearchClear,
|
|
409
461
|
size: searchBoxSize,
|
|
410
|
-
inputRef:
|
|
411
|
-
,
|
|
412
|
-
customProps: {
|
|
413
|
-
TextBoxProps: {
|
|
414
|
-
'data-a11y-autofocus': true
|
|
415
|
-
}
|
|
416
|
-
},
|
|
462
|
+
inputRef: _this3.searchInputRef,
|
|
463
|
+
onKeyDown: _this3.handleKeyDown,
|
|
417
464
|
a11y: {
|
|
418
465
|
ariaHaspopup: isSearch ? 'listbox' : 'menu',
|
|
419
466
|
ariaExpanded: isPopupReady,
|
|
@@ -436,12 +483,11 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
436
483
|
dataId: "".concat(dataId, "_list"),
|
|
437
484
|
preventParentScroll: "vertical",
|
|
438
485
|
className: "".concat(tabletMode ? _StatusDropdownModule["default"].responsivemaxHgt : _StatusDropdownModule["default"].maxHgt),
|
|
439
|
-
eleRef:
|
|
440
|
-
onScroll:
|
|
486
|
+
eleRef: _this3.scrollContentRef,
|
|
487
|
+
onScroll: _this3.handleScroll,
|
|
441
488
|
role: isSearch ? 'listbox' : 'menu',
|
|
442
|
-
"aria-labelledby": ariaTitleId
|
|
443
|
-
|
|
444
|
-
"data-scroll": "true"
|
|
489
|
+
"aria-labelledby": ariaTitleId,
|
|
490
|
+
tabindex: "-1"
|
|
445
491
|
}, options.length != 0 && isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, options.map(function (item, i) {
|
|
446
492
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
447
493
|
key: i
|
|
@@ -450,29 +496,28 @@ var StatusDropdown = /*#__PURE__*/function (_React$Component) {
|
|
|
450
496
|
value: item[keyName],
|
|
451
497
|
id: item[idName],
|
|
452
498
|
active: value === item[keyName],
|
|
453
|
-
onClick:
|
|
454
|
-
index: i
|
|
455
|
-
,
|
|
499
|
+
onClick: _this3.onSelect.bind(_this3, item),
|
|
500
|
+
index: i,
|
|
501
|
+
highlight: selectedIndex === i,
|
|
456
502
|
needTick: needTick,
|
|
457
|
-
needBorder: false
|
|
458
|
-
,
|
|
459
|
-
getRef:
|
|
503
|
+
needBorder: false,
|
|
504
|
+
onMouseEnter: _this3.handleMouseEnter,
|
|
505
|
+
getRef: _this3.itemRef,
|
|
460
506
|
bulletColor: item[statusColor],
|
|
461
507
|
title: item[keyName],
|
|
462
508
|
needMultiLineText: needMultiLineText,
|
|
463
509
|
a11y: {
|
|
464
510
|
role: isSearch ? 'option' : 'menuitem',
|
|
465
511
|
ariaSelected: value === item[keyName],
|
|
466
|
-
'data-a11y-list-active':
|
|
467
|
-
}
|
|
468
|
-
autoHover: true
|
|
512
|
+
'data-a11y-list-active': selectedIndex === i
|
|
513
|
+
}
|
|
469
514
|
}));
|
|
470
515
|
})) : isDataLoaded ? /*#__PURE__*/_react["default"].createElement(_CommonEmptyState["default"], {
|
|
471
516
|
className: _StatusDropdownModule["default"].svgWrapper,
|
|
472
517
|
title: searchErrorText || 'No results',
|
|
473
518
|
description: searchEmptyHint,
|
|
474
519
|
size: "small",
|
|
475
|
-
getEmptyState:
|
|
520
|
+
getEmptyState: _this3.emptySearchSVG
|
|
476
521
|
}) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
477
522
|
className: _StatusDropdownModule["default"].loader
|
|
478
523
|
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null)))));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = DotWrapper;
|
|
7
|
+
|
|
8
|
+
var _react = require("react");
|
|
9
|
+
|
|
10
|
+
var _dynamicImports = require("./libraryChunks/dynamicImports");
|
|
11
|
+
|
|
12
|
+
require("@zohodesk/components/assets/Contrast/lightContrastLightness.module.css");
|
|
13
|
+
|
|
14
|
+
require("@zohodesk/components/assets/Contrast/darkContrastLightness.module.css");
|
|
15
|
+
|
|
16
|
+
require("@zohodesk/components/assets/Contrast/pureDarkContrastLightness.module.css");
|
|
17
|
+
|
|
18
|
+
require("@zohodesk/variables/assets/colorVariables.module.css");
|
|
19
|
+
|
|
20
|
+
require("@zohodesk/variables/assets/dotVariables.module.css");
|
|
21
|
+
|
|
22
|
+
require("@zohodesk/components/es/common/basic.module.css");
|
|
23
|
+
|
|
24
|
+
require("@zohodesk/variables/lib/fontFamilyVariables.module.css");
|
|
25
|
+
|
|
26
|
+
require("@zohodesk/components/lib/common/boxShadow.module.css");
|
|
27
|
+
|
|
28
|
+
require("../../common/dot_boxShadow.module.css");
|
|
29
|
+
|
|
30
|
+
var _propTypes = require("./props/propTypes");
|
|
31
|
+
|
|
32
|
+
var _defaultProps = require("./props/defaultProps");
|
|
33
|
+
|
|
34
|
+
function DotWrapper(props) {
|
|
35
|
+
var $ui_appearance = props.$ui_appearance,
|
|
36
|
+
$ui_theme = props.$ui_theme,
|
|
37
|
+
$ui_library = props.$ui_library,
|
|
38
|
+
$ui_baseZoomSize = props.$ui_baseZoomSize,
|
|
39
|
+
$ui_baseFontSize = props.$ui_baseFontSize,
|
|
40
|
+
$method_wrapperRef = props.$method_wrapperRef;
|
|
41
|
+
(0, _react.useEffect)(function () {
|
|
42
|
+
(0, _dynamicImports.getAppearance)($ui_appearance, $ui_library);
|
|
43
|
+
}, [$ui_appearance, $ui_library]);
|
|
44
|
+
(0, _react.useEffect)(function () {
|
|
45
|
+
(0, _dynamicImports.getTheme)($ui_appearance, $ui_theme, $ui_library);
|
|
46
|
+
}, [$ui_appearance, $ui_theme, $ui_library]);
|
|
47
|
+
(0, _react.useEffect)(function () {
|
|
48
|
+
$ui_baseZoomSize && (0, _dynamicImports.getZoomSize)();
|
|
49
|
+
|
|
50
|
+
if ($method_wrapperRef()) {
|
|
51
|
+
$method_wrapperRef().style.setProperty('--zd_baseSize', $ui_baseZoomSize);
|
|
52
|
+
}
|
|
53
|
+
}, [$ui_baseZoomSize]);
|
|
54
|
+
(0, _react.useEffect)(function () {
|
|
55
|
+
$ui_baseFontSize && (0, _dynamicImports.getFontSize)();
|
|
56
|
+
|
|
57
|
+
if ($method_wrapperRef()) {
|
|
58
|
+
$method_wrapperRef().style.setProperty('--zd_baseFontSize', $ui_baseFontSize);
|
|
59
|
+
}
|
|
60
|
+
}, [$ui_baseFontSize]);
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
DotWrapper.propTypes = _propTypes.propTypes;
|
|
65
|
+
DotWrapper.defaultProps = _defaultProps.defaultProps;
|