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