@zohodesk/dot 1.0.0-temp-112 → 1.0.0-temp-114
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 +1173 -1176
- package/assets/Appearance/dark/mode/dotDarkMode.module.css +1 -1
- package/assets/Appearance/pureDark/mode/dotPureDarkMode.module.css +1 -1
- package/css_error.log +0 -0
- package/dubFinder.js +96 -96
- package/es/ActionButton/ActionButton.module.css +136 -136
- package/es/AlphabeticList/AlphabeticList.module.css +57 -57
- package/es/Attachment/Attachment.module.css +157 -157
- package/es/AttachmentViewer/AttachmentViewer.module.css +354 -354
- package/es/ChannelIcon/ChannelIcon.module.css +217 -217
- package/es/Drawer/Drawer.js +0 -0
- package/es/Drawer/Drawer.module.css +150 -150
- package/es/ExternalLink/ExternalLink.js +0 -0
- package/es/ExternalLink/ExternalLink.module.css +3 -3
- package/es/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/es/FlipCard/FlipCard.module.css +44 -44
- package/es/FormAction/FormAction.module.css +82 -82
- package/es/FreezeLayer/FreezeLayer.module.css +42 -42
- package/es/IconButton/IconButton.module.css +22 -22
- package/es/Image/Image.module.css +10 -10
- package/es/ImportantNotes/ImportantNotes.module.css +20 -20
- package/es/Link/Link.js +0 -0
- package/es/Link/Link.module.css +3 -3
- package/es/Loader/Loader.module.css +46 -46
- package/es/Message/Message.module.css +102 -102
- package/es/MessageBanner/MessageBanner.module.css +46 -46
- package/es/NewStar/NewStar.module.css +110 -110
- package/es/PlusIcon/PlusIcon.js +0 -0
- package/es/PlusIcon/PlusIcon.module.css +16 -16
- package/es/ToastMessage/ToastMessage.js +0 -0
- package/es/ToastMessage/ToastMessage.module.css +328 -328
- package/es/Upload/Upload.module.css +125 -125
- package/es/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/es/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/es/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/es/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/es/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/es/avatar/AvatarStatus/AvatarStatus.js +0 -0
- package/es/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/es/avatar/AvatarThread/AvatarThread.module.css +166 -166
- package/es/avatar/AvatarUser/AvatarUser.js +0 -0
- package/es/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/es/common/dot_animation.module.css +26 -26
- package/es/common/dot_common.module.css +3 -3
- package/es/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/es/deprecated/utils/KeyboardApi.js +25 -25
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +8 -4
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +101 -101
- package/es/emptystate/CommonEmptyState/CommonEmptyState.js +0 -0
- package/es/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/es/emptystate/EditionPage/EditionPage.css +43 -43
- package/es/errorstate/EmptyStates.module.css +87 -87
- package/es/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/es/errorstate/LinkText/LinkText.module.css +6 -6
- package/es/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/es/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/es/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/es/errorstate/WillBack/WillBack.module.css +34 -34
- package/es/form/fields/CheckBoxField/CheckBoxField.js +2 -3
- package/es/form/fields/CurrencyField/CurrencyField.js +8 -43
- package/es/form/fields/CurrencyField/props/defaultProps.js +0 -1
- package/es/form/fields/DateField/DateField.js +8 -93
- package/es/form/fields/DateField/props/defaultProps.js +0 -1
- package/es/form/fields/Fields.module.css +183 -248
- package/es/form/fields/MultiSelectField/MultiSelectField.js +9 -91
- package/es/form/fields/MultiSelectField/props/defaultProps.js +0 -1
- package/es/form/fields/PhoneField/PhoneField.js +1 -3
- package/es/form/fields/PhoneField/props/defaultProps.js +1 -2
- package/es/form/fields/RadioField/RadioField.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +12 -99
- package/es/form/fields/SelectField/props/defaultProps.js +0 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/es/form/fields/TextBoxField/TextBoxField.js +8 -59
- package/es/form/fields/TextBoxField/props/defaultProps.js +0 -1
- package/es/form/fields/TextEditor/TextEditor.module.css +666 -666
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
- package/es/form/fields/TextareaField/TextareaField.js +12 -58
- package/es/form/fields/TextareaField/props/defaultProps.js +0 -1
- package/es/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/es/form/layout/Field/Field.js +0 -0
- package/es/form/layout/Field/Field.module.css +22 -22
- package/es/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/es/form/layout/Section/Section.js +0 -0
- package/es/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/es/layout/SubtabLayout/SubtabLayout.module.css +146 -146
- package/es/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/es/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/es/list/Comment/Comment.module.css +29 -29
- package/es/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/es/list/Dot/Dot.module.css +15 -15
- package/es/list/DotNew/DotNew.module.css +22 -22
- package/es/list/GridStencils/GridStencils.module.css +146 -146
- package/es/list/Icons/Icons.module.css +16 -16
- package/es/list/ListLayout/ListLayout.js +1 -0
- package/es/list/ListLayout/ListLayout.module.css +57 -57
- package/es/list/ListStencils/ListStencils.module.css +67 -67
- package/es/list/SecondaryText/SecondaryText.module.css +136 -136
- package/es/list/SecondaryText/Website.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.js +0 -0
- package/es/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/es/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/es/list/Subject/Subject.module.css +27 -27
- package/es/list/TagNew/TagNew.module.css +115 -115
- package/es/list/Thread/Thread.module.css +42 -42
- package/es/list/UserTime/UserTime.module.css +58 -58
- package/es/list/listCommon.module.css +60 -60
- package/es/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
- package/es/list/status/StatusListItem/StatusListItem.js +0 -0
- package/es/list/status/StatusListItem/StatusListItem.module.css +104 -104
- package/es/lookup/EmptyPage/EmptyPage.js +0 -0
- package/es/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/es/lookup/Lookup/Lookup.js +0 -0
- package/es/lookup/Lookup/Lookup.module.css +26 -26
- package/es/lookup/Section/LookupSection.module.css +8 -8
- package/es/lookup/header/Close/LookupClose.module.css +15 -15
- package/es/lookup/header/Search/LookupSearch.module.css +57 -57
- package/es/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/es/lookup/header/Title/LookupTitle.module.css +20 -20
- package/es/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
- package/es/lookup/header/lookupHeaderCommon.module.css +41 -41
- package/es/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/es/setup/header/Button/HeaderButton.module.css +5 -5
- package/es/setup/header/Link/HeaderLink.module.css +21 -21
- package/es/setup/header/Search/Search.module.css +68 -68
- package/es/setup/header/Views/Views.module.css +37 -37
- package/es/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/es/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/es/setup/helptips/Link/Link.js +0 -0
- package/es/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/es/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/es/setup/helptips/Title/Title.js +0 -0
- package/es/setup/table/TableData/SetupTableData.module.css +44 -44
- package/es/setup/table/TableData/Tablehover.module.css +6 -6
- package/es/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/es/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/es/setup/table/Text/TableText.module.css +37 -37
- package/es/setup/table/Text/Text.js +0 -0
- package/es/svg/PlusIcon.js +1 -1
- package/es/svg/SnippetIcon.js +2 -2
- package/es/version2/AlertClose/AlertClose.module.css +42 -42
- package/es/version2/GlobalNotification/GlobalNotification.module.css +124 -124
- package/es/version2/alertIcons/AlertIcons.module.css +67 -67
- package/es/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/es/version2/lookup/AlertHeader/AlertHeaderNew.module.css +86 -86
- package/es/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/es/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/es/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -106
- package/es/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/lib/ActionButton/ActionButton.js +1 -3
- package/lib/ActionButton/ActionButton.module.css +136 -136
- package/lib/AlphabeticList/AlphabeticList.js +1 -3
- package/lib/AlphabeticList/AlphabeticList.module.css +57 -57
- package/lib/Attachment/Attachment.js +1 -3
- package/lib/Attachment/Attachment.module.css +157 -157
- package/lib/AttachmentViewer/AttachmentImage.js +1 -3
- package/lib/AttachmentViewer/AttachmentViewer.js +1 -3
- package/lib/AttachmentViewer/AttachmentViewer.module.css +354 -354
- package/lib/AttachmentViewer/utils.js +1 -4
- package/lib/ChannelIcon/ChannelIcon.js +1 -3
- package/lib/ChannelIcon/ChannelIcon.module.css +217 -217
- package/lib/Drawer/Drawer.js +1 -3
- package/lib/Drawer/Drawer.module.css +150 -150
- package/lib/ExternalLink/ExternalLink.js +1 -3
- package/lib/ExternalLink/ExternalLink.module.css +3 -3
- package/lib/ExternalLink/__tests__/ExternalLink.spec.js +0 -0
- package/lib/FlipCard/FlipCard.js +1 -3
- package/lib/FlipCard/FlipCard.module.css +44 -44
- package/lib/FormAction/FormAction.js +1 -3
- package/lib/FormAction/FormAction.module.css +82 -82
- package/lib/FreezeLayer/FreezeLayer.js +1 -3
- package/lib/FreezeLayer/FreezeLayer.module.css +42 -42
- package/lib/IconButton/IconButton.js +1 -3
- package/lib/IconButton/IconButton.module.css +22 -22
- package/lib/IconButton/props/propTypes.js +1 -4
- package/lib/Image/Image.js +1 -3
- package/lib/Image/Image.module.css +10 -10
- package/lib/ImportantNotes/ImportantNotes.js +1 -3
- package/lib/ImportantNotes/ImportantNotes.module.css +20 -20
- package/lib/Link/Link.js +1 -3
- package/lib/Link/Link.module.css +3 -3
- package/lib/Loader/Loader.js +1 -3
- package/lib/Loader/Loader.module.css +46 -46
- package/lib/Message/Message.js +1 -3
- package/lib/Message/Message.module.css +102 -102
- package/lib/MessageBanner/MessageBanner.js +1 -3
- package/lib/MessageBanner/MessageBanner.module.css +46 -46
- package/lib/NewStar/NewStar.js +1 -3
- package/lib/NewStar/NewStar.module.css +110 -110
- package/lib/PlusIcon/PlusIcon.js +1 -3
- package/lib/PlusIcon/PlusIcon.module.css +16 -16
- package/lib/ToastMessage/ToastMessage.js +1 -1
- package/lib/ToastMessage/ToastMessage.module.css +328 -328
- package/lib/Upload/Upload.js +1 -3
- package/lib/Upload/Upload.module.css +125 -125
- package/lib/actions/AutoClose.js +1 -1
- package/lib/alert/AlertHeader/AlertHeader.js +1 -3
- package/lib/alert/AlertHeader/AlertHeader.module.css +80 -80
- package/lib/alert/AlertLookup/AlertLookup.js +1 -3
- package/lib/alert/AlertLookup/AlertLookup.module.css +26 -26
- package/lib/avatar/AvatarClose/AvatarClose.js +1 -3
- package/lib/avatar/AvatarClose/AvatarClose.module.css +37 -37
- package/lib/avatar/AvatarCollision/AvatarCollision.js +1 -3
- package/lib/avatar/AvatarCollision/AvatarCollision.module.css +69 -69
- package/lib/avatar/AvatarIcon/AvatarIcon.js +1 -3
- package/lib/avatar/AvatarIcon/AvatarIcon.module.css +58 -58
- package/lib/avatar/AvatarStatus/AvatarStatus.js +1 -3
- package/lib/avatar/AvatarStatus/AvatarStatus.module.css +146 -146
- package/lib/avatar/AvatarThread/AvatarThread.js +1 -3
- package/lib/avatar/AvatarThread/AvatarThread.module.css +166 -166
- package/lib/avatar/AvatarUser/AvatarUser.js +2 -5
- package/lib/avatar/AvatarUser/AvatarUser.module.css +171 -171
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +1 -3
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.module.css +23 -23
- package/lib/common/dot_animation.module.css +26 -26
- package/lib/common/dot_common.module.css +3 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +1 -3
- package/lib/deprecated/SelectDropdown/SelectDropdown.module.css +56 -56
- package/lib/deprecated/utils/KeyboardApi.js +26 -29
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +10 -8
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +101 -101
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +1 -3
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.module.css +85 -85
- package/lib/emptystate/EditionPage/EditionPage.css +43 -43
- package/lib/emptystate/EditionPage/EditionPage.js +1 -3
- package/lib/errorstate/EmptyStates.module.css +87 -87
- package/lib/errorstate/Inconvenience/Inconvenience.js +1 -3
- package/lib/errorstate/Inconvenience/Inconvenience.module.css +7 -7
- package/lib/errorstate/LinkText/LinkText.js +1 -3
- package/lib/errorstate/LinkText/LinkText.module.css +6 -6
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +1 -3
- package/lib/errorstate/NoRequestFound/NoRequestFound.module.css +3 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +1 -3
- package/lib/errorstate/PermissionPlay/PermissionPlay.module.css +34 -34
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -3
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.module.css +3 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +1 -3
- package/lib/errorstate/UnableToProcess/UnableToProcess.module.css +3 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -3
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.module.css +3 -3
- package/lib/errorstate/WillBack/WillBack.js +1 -3
- package/lib/errorstate/WillBack/WillBack.module.css +34 -34
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +3 -6
- package/lib/form/fields/CheckBoxField/props/defaultProps.js +1 -4
- package/lib/form/fields/CheckBoxField/props/propTypes.js +1 -4
- package/lib/form/fields/CurrencyField/CurrencyField.js +42 -79
- package/lib/form/fields/CurrencyField/props/defaultProps.js +1 -5
- package/lib/form/fields/CurrencyField/props/propTypes.js +1 -4
- package/lib/form/fields/DateField/DateField.js +41 -131
- package/lib/form/fields/DateField/props/defaultProps.js +1 -4
- package/lib/form/fields/DateField/props/propTypes.js +1 -4
- package/lib/form/fields/FieldContainer/FieldContainer.js +1 -3
- package/lib/form/fields/FieldContainer/props/defaultProps.js +1 -4
- package/lib/form/fields/FieldContainer/props/propTypes.js +1 -4
- package/lib/form/fields/Fields.module.css +183 -248
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +53 -138
- package/lib/form/fields/MultiSelectField/props/defaultProps.js +1 -4
- package/lib/form/fields/MultiSelectField/props/propTypes.js +1 -4
- package/lib/form/fields/PhoneField/PhoneField.js +2 -6
- package/lib/form/fields/PhoneField/props/defaultProps.js +1 -2
- package/lib/form/fields/RadioField/RadioField.js +2 -4
- package/lib/form/fields/SelectField/SelectField.js +61 -153
- package/lib/form/fields/SelectField/props/defaultProps.js +2 -6
- package/lib/form/fields/SelectField/props/propTypes.js +1 -4
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +1 -3
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.module.css +107 -107
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +1 -1
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.module.css +9 -9
- package/lib/form/fields/TagsMultiSelectField/props/defaultProps.js +1 -4
- package/lib/form/fields/TagsMultiSelectField/props/propTypes.js +1 -4
- package/lib/form/fields/TextBoxField/TextBoxField.js +44 -97
- package/lib/form/fields/TextBoxField/props/defaultProps.js +2 -6
- package/lib/form/fields/TextBoxField/props/propTypes.js +1 -4
- package/lib/form/fields/TextEditor/TextEditor.js +2 -4
- package/lib/form/fields/TextEditor/TextEditor.module.css +666 -666
- package/lib/form/fields/TextEditorField/TextEditorField.js +1 -3
- package/lib/form/fields/TextEditorField/props/defaultProps.js +1 -4
- package/lib/form/fields/TextEditorField/props/propTypes.js +1 -4
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +2 -5
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.module.css +36 -36
- package/lib/form/fields/TextareaField/TextareaField.js +45 -92
- package/lib/form/fields/TextareaField/props/defaultProps.js +1 -4
- package/lib/form/fields/TextareaField/props/propTypes.js +1 -4
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +1 -3
- package/lib/form/fields/ValidationMessage/ValidationMessage.module.css +27 -27
- package/lib/form/layout/Field/Field.js +1 -3
- package/lib/form/layout/Field/Field.module.css +22 -22
- package/lib/form/layout/Section/ModuleFormSection.module.css +3 -3
- package/lib/form/layout/Section/Section.js +1 -3
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +1 -3
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.module.css +152 -152
- package/lib/layout/SubtabLayout/SubtabLayout.js +1 -3
- package/lib/layout/SubtabLayout/SubtabLayout.module.css +146 -146
- package/lib/list/AvatarFlip/AvatarFlip.js +1 -3
- package/lib/list/AvatarFlip/AvatarFlip.module.css +3 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.js +1 -3
- package/lib/list/BluePrintStatus/BluePrintStatus.module.css +17 -17
- package/lib/list/Comment/Comment.js +1 -3
- package/lib/list/Comment/Comment.module.css +29 -29
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +1 -3
- package/lib/list/DepartmentDropDown/DepartmentDropDown.module.css +9 -9
- package/lib/list/DepartmentDropDown/props/propTypes.js +1 -4
- package/lib/list/Dot/Dot.js +1 -3
- package/lib/list/Dot/Dot.module.css +15 -15
- package/lib/list/DotNew/DotNew.js +1 -3
- package/lib/list/DotNew/DotNew.module.css +22 -22
- package/lib/list/GridStencils/GridStencils.js +1 -3
- package/lib/list/GridStencils/GridStencils.module.css +146 -146
- package/lib/list/Icons/AddNewIcon.js +1 -3
- package/lib/list/Icons/CompleteIcon.js +1 -3
- package/lib/list/Icons/DeleteIcon.js +1 -3
- package/lib/list/Icons/EditIcon.js +1 -3
- package/lib/list/Icons/FloatingIcons.js +1 -3
- package/lib/list/Icons/Icons.module.css +16 -16
- package/lib/list/Icons/ReadUnreadIcon.js +1 -3
- package/lib/list/Icons/SmartIcon.js +1 -3
- package/lib/list/ListLayout/ListLayout.js +2 -3
- package/lib/list/ListLayout/ListLayout.module.css +57 -57
- package/lib/list/ListLayout/props/propTypes.js +1 -4
- package/lib/list/ListStencils/ListStencils.js +1 -3
- package/lib/list/ListStencils/ListStencils.module.css +67 -67
- package/lib/list/SecondaryText/AccountName.js +1 -3
- package/lib/list/SecondaryText/ContactName.js +1 -3
- package/lib/list/SecondaryText/DepartmentText.js +1 -3
- package/lib/list/SecondaryText/Email.js +1 -3
- package/lib/list/SecondaryText/HappinessRating.js +1 -3
- package/lib/list/SecondaryText/PhoneNumber.js +1 -3
- package/lib/list/SecondaryText/PriorityText.js +1 -3
- package/lib/list/SecondaryText/SecondaryText.js +1 -3
- package/lib/list/SecondaryText/SecondaryText.module.css +136 -136
- package/lib/list/SecondaryText/StatusText.js +1 -3
- package/lib/list/SecondaryText/TicketId.js +1 -3
- package/lib/list/SecondaryText/Website.js +1 -3
- package/lib/list/SecondryPanel/SecondryPanel.js +1 -3
- package/lib/list/SecondryPanel/SecondryPanel.module.css +5 -5
- package/lib/list/SentimentStatus/SentimentStatus.js +1 -3
- package/lib/list/SentimentStatus/SentimentStatus.module.css +12 -12
- package/lib/list/Subject/Subject.js +1 -3
- package/lib/list/Subject/Subject.module.css +27 -27
- package/lib/list/TagNew/TagNew.js +1 -3
- package/lib/list/TagNew/TagNew.module.css +115 -115
- package/lib/list/Thread/Thread.js +1 -3
- package/lib/list/Thread/Thread.module.css +42 -42
- package/lib/list/UserTime/UserTime.js +1 -3
- package/lib/list/UserTime/UserTime.module.css +58 -58
- package/lib/list/listCommon.module.css +60 -60
- package/lib/list/status/StatusDropdown/StatusDropdown.js +1 -3
- package/lib/list/status/StatusDropdown/StatusDropdown.module.css +92 -92
- package/lib/list/status/StatusDropdown/props/propTypes.js +1 -4
- package/lib/list/status/StatusListItem/StatusListItem.js +1 -3
- package/lib/list/status/StatusListItem/StatusListItem.module.css +104 -104
- package/lib/lookup/EmptyPage/EmptyPage.js +1 -3
- package/lib/lookup/EmptyPage/LookupEmptyPage.module.css +12 -12
- package/lib/lookup/Lookup/Lookup.js +2 -5
- package/lib/lookup/Lookup/Lookup.module.css +26 -26
- package/lib/lookup/Section/LookupSection.module.css +8 -8
- package/lib/lookup/Section/Section.js +1 -3
- package/lib/lookup/header/Close/Close.js +1 -3
- package/lib/lookup/header/Close/LookupClose.module.css +15 -15
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +2 -5
- package/lib/lookup/header/Search/LookupSearch.module.css +57 -57
- package/lib/lookup/header/Search/Search.js +1 -3
- package/lib/lookup/header/TicketHeader/TicketHeader.js +2 -5
- package/lib/lookup/header/TicketHeader/TicketHeader.module.css +22 -22
- package/lib/lookup/header/Title/LookupTitle.module.css +20 -20
- package/lib/lookup/header/Title/Title.js +1 -3
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +1 -3
- package/lib/lookup/header/ViewDropDown/ViewDropDown.module.css +50 -50
- package/lib/lookup/header/lookupHeaderCommon.module.css +41 -41
- package/lib/lookup/header/lookupHeaderCommonResponsive.module.css +24 -24
- package/lib/setup/header/Button/Button.js +1 -3
- package/lib/setup/header/Button/HeaderButton.module.css +5 -5
- package/lib/setup/header/Link/HeaderLink.module.css +21 -21
- package/lib/setup/header/Link/Link.js +1 -3
- package/lib/setup/header/Search/Search.js +1 -3
- package/lib/setup/header/Search/Search.module.css +68 -68
- package/lib/setup/header/Views/Views.js +1 -3
- package/lib/setup/header/Views/Views.module.css +37 -37
- package/lib/setup/helptips/Description/Description.js +1 -3
- package/lib/setup/helptips/Description/HelpTipsDescription.module.css +6 -6
- package/lib/setup/helptips/Link/HelpTipsLink.module.css +7 -7
- package/lib/setup/helptips/Link/Link.js +1 -3
- package/lib/setup/helptips/ListGroup/ListGroup.js +1 -3
- package/lib/setup/helptips/ListGroup/ListGroup.module.css +22 -22
- package/lib/setup/helptips/Title/HelpTipsTitle.module.css +5 -5
- package/lib/setup/helptips/Title/Title.js +1 -3
- package/lib/setup/table/Table/Table.js +1 -3
- package/lib/setup/table/TableBody/TableBody.js +1 -3
- package/lib/setup/table/TableData/SetupTableData.module.css +44 -44
- package/lib/setup/table/TableData/TableData.js +1 -3
- package/lib/setup/table/TableData/Tablehover.module.css +6 -6
- package/lib/setup/table/TableHead/SetupTableHead.module.css +12 -12
- package/lib/setup/table/TableHead/TableHead.js +1 -3
- package/lib/setup/table/TableRow/SetupTableRow.module.css +14 -14
- package/lib/setup/table/TableRow/TableRow.js +1 -3
- package/lib/setup/table/Text/TableText.module.css +37 -37
- package/lib/setup/table/Text/Text.js +1 -3
- package/lib/svg/PlusIcon.js +2 -4
- package/lib/svg/SnippetIcon.js +3 -5
- package/lib/svg/TemplateIcon.js +1 -3
- package/lib/version2/AlertClose/AlertClose.js +1 -3
- package/lib/version2/AlertClose/AlertClose.module.css +42 -42
- package/lib/version2/GlobalNotification/GlobalNotification.js +1 -3
- package/lib/version2/GlobalNotification/GlobalNotification.module.css +124 -124
- package/lib/version2/alertIcons/AlarmAlertIcon.js +1 -3
- package/lib/version2/alertIcons/AlertIcons.js +1 -3
- package/lib/version2/alertIcons/AlertIcons.module.css +67 -67
- package/lib/version2/alertIcons/DangerAlertIcon.js +1 -3
- package/lib/version2/alertIcons/ErrorAlertIcon.js +1 -3
- package/lib/version2/alertIcons/InfoAlertIcon.js +1 -3
- package/lib/version2/alertIcons/NotificationAlertIcon.js +1 -3
- package/lib/version2/alertIcons/SuccessAlertIcon.js +1 -3
- package/lib/version2/alertIcons/WarningAlertIcon.js +1 -3
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +1 -3
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -3
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -3
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -3
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -3
- package/lib/version2/errorstate/V2_ErrorStates.module.css +46 -46
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -3
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +1 -3
- package/lib/version2/lookup/AlertHeader/AlertHeaderNew.module.css +86 -86
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +1 -3
- package/lib/version2/lookup/AlertLookup/AlertLookupNew.module.css +43 -43
- package/lib/version2/lookup/alertLookupCommonNew.module.css +32 -32
- package/lib/version2/notification/DesktopNotification/DesktopNotification.module.css +106 -106
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +1 -3
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.module.css +136 -136
- package/package.json +93 -93
|
@@ -13,17 +13,14 @@ var _TextBox = _interopRequireDefault(require("@zohodesk/components/lib/TextBox/
|
|
|
13
13
|
var _ValidationMessage = _interopRequireDefault(require("../ValidationMessage/ValidationMessage"));
|
|
14
14
|
var _IdProvider = require("@zohodesk/components/lib/Provider/IdProvider");
|
|
15
15
|
var _FieldContainer = _interopRequireDefault(require("../FieldContainer/FieldContainer"));
|
|
16
|
-
var _RippleEffect = _interopRequireDefault(require("@zohodesk/components/lib/RippleEffect/RippleEffect"));
|
|
17
16
|
var _FieldsModule = _interopRequireDefault(require("../Fields.module.css"));
|
|
18
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
18
|
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); }
|
|
20
19
|
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; }
|
|
21
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
21
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
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,
|
|
22
|
+
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); } }
|
|
24
23
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
26
|
-
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); }
|
|
27
24
|
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); }
|
|
28
25
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -39,11 +36,8 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
39
36
|
_classCallCheck(this, CurrencyField);
|
|
40
37
|
_this = _super.call(this, props);
|
|
41
38
|
_this.state = {
|
|
42
|
-
isActive: false
|
|
43
|
-
isFocused: false
|
|
39
|
+
isActive: false
|
|
44
40
|
};
|
|
45
|
-
_this.handleParentClick = _this.handleParentClick.bind(_assertThisInitialized(_this));
|
|
46
|
-
_this.handleFocusToggle = _this.handleFocusToggle.bind(_assertThisInitialized(_this));
|
|
47
41
|
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
48
42
|
_this.handleGetRef = _this.handleGetRef.bind(_assertThisInitialized(_this));
|
|
49
43
|
_this.getNextId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
|
|
@@ -68,31 +62,10 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
68
62
|
this.textBox = el;
|
|
69
63
|
getRef && getRef(el, id);
|
|
70
64
|
}
|
|
71
|
-
}, {
|
|
72
|
-
key: "handleParentClick",
|
|
73
|
-
value: function handleParentClick() {
|
|
74
|
-
var needFieldStyle = this.props.needFieldStyle;
|
|
75
|
-
if (needFieldStyle) {
|
|
76
|
-
this.textBox.focus();
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}, {
|
|
80
|
-
key: "handleFocusToggle",
|
|
81
|
-
value: function handleFocusToggle(value) {
|
|
82
|
-
var needFieldStyle = this.props.needFieldStyle;
|
|
83
|
-
if (needFieldStyle) {
|
|
84
|
-
this.setState({
|
|
85
|
-
isFocused: value
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
65
|
}, {
|
|
90
66
|
key: "onFocus",
|
|
91
67
|
value: function onFocus() {
|
|
92
|
-
var
|
|
93
|
-
onFocus = _this$props3.onFocus,
|
|
94
|
-
needFieldStyle = _this$props3.needFieldStyle;
|
|
95
|
-
needFieldStyle && this.handleFocusToggle(true);
|
|
68
|
+
var onFocus = this.props.onFocus;
|
|
96
69
|
this.setState({
|
|
97
70
|
isActive: true
|
|
98
71
|
});
|
|
@@ -101,10 +74,7 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
101
74
|
}, {
|
|
102
75
|
key: "onBlur",
|
|
103
76
|
value: function onBlur() {
|
|
104
|
-
var
|
|
105
|
-
onBlur = _this$props4.onBlur,
|
|
106
|
-
needFieldStyle = _this$props4.needFieldStyle;
|
|
107
|
-
needFieldStyle && this.handleFocusToggle(false);
|
|
77
|
+
var onBlur = this.props.onBlur;
|
|
108
78
|
this.setState({
|
|
109
79
|
isActive: false
|
|
110
80
|
});
|
|
@@ -113,41 +83,40 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
113
83
|
}, {
|
|
114
84
|
key: "render",
|
|
115
85
|
value: function render() {
|
|
116
|
-
var _this$
|
|
117
|
-
labelName = _this$
|
|
118
|
-
id = _this$
|
|
119
|
-
textBoxSize = _this$
|
|
120
|
-
textBoxVariant = _this$
|
|
121
|
-
textBoxType = _this$
|
|
122
|
-
isMandatory = _this$
|
|
123
|
-
validationMessage = _this$
|
|
124
|
-
validationPalette = _this$
|
|
125
|
-
maxLength = _this$
|
|
126
|
-
isReadOnly = _this$
|
|
127
|
-
value = _this$
|
|
128
|
-
errorType = _this$
|
|
129
|
-
isDisabled = _this$
|
|
130
|
-
title = _this$
|
|
131
|
-
dataId = _this$
|
|
132
|
-
validationRuleMessage = _this$
|
|
133
|
-
validationRulePalette = _this$
|
|
134
|
-
onKeyDown = _this$
|
|
135
|
-
placeHolder = _this$
|
|
136
|
-
infoText = _this$
|
|
137
|
-
borderColor = _this$
|
|
138
|
-
fieldSize = _this$
|
|
139
|
-
labelPalette = _this$
|
|
140
|
-
labelCustomClass = _this$
|
|
141
|
-
htmlId = _this$
|
|
142
|
-
lockedInfoText = _this$
|
|
143
|
-
isLocked = _this$
|
|
144
|
-
needReadOnlyStyle = _this$
|
|
145
|
-
isClickable = _this$
|
|
146
|
-
userCurrencyType = _this$
|
|
147
|
-
customProps = _this$
|
|
148
|
-
formatCurrency = _this$
|
|
149
|
-
renderLabelProps = _this$
|
|
150
|
-
needFieldStyle = _this$props5.needFieldStyle;
|
|
86
|
+
var _this$props3 = this.props,
|
|
87
|
+
labelName = _this$props3.labelName,
|
|
88
|
+
id = _this$props3.id,
|
|
89
|
+
textBoxSize = _this$props3.textBoxSize,
|
|
90
|
+
textBoxVariant = _this$props3.textBoxVariant,
|
|
91
|
+
textBoxType = _this$props3.textBoxType,
|
|
92
|
+
isMandatory = _this$props3.isMandatory,
|
|
93
|
+
validationMessage = _this$props3.validationMessage,
|
|
94
|
+
validationPalette = _this$props3.validationPalette,
|
|
95
|
+
maxLength = _this$props3.maxLength,
|
|
96
|
+
isReadOnly = _this$props3.isReadOnly,
|
|
97
|
+
value = _this$props3.value,
|
|
98
|
+
errorType = _this$props3.errorType,
|
|
99
|
+
isDisabled = _this$props3.isDisabled,
|
|
100
|
+
title = _this$props3.title,
|
|
101
|
+
dataId = _this$props3.dataId,
|
|
102
|
+
validationRuleMessage = _this$props3.validationRuleMessage,
|
|
103
|
+
validationRulePalette = _this$props3.validationRulePalette,
|
|
104
|
+
onKeyDown = _this$props3.onKeyDown,
|
|
105
|
+
placeHolder = _this$props3.placeHolder,
|
|
106
|
+
infoText = _this$props3.infoText,
|
|
107
|
+
borderColor = _this$props3.borderColor,
|
|
108
|
+
fieldSize = _this$props3.fieldSize,
|
|
109
|
+
labelPalette = _this$props3.labelPalette,
|
|
110
|
+
labelCustomClass = _this$props3.labelCustomClass,
|
|
111
|
+
htmlId = _this$props3.htmlId,
|
|
112
|
+
lockedInfoText = _this$props3.lockedInfoText,
|
|
113
|
+
isLocked = _this$props3.isLocked,
|
|
114
|
+
needReadOnlyStyle = _this$props3.needReadOnlyStyle,
|
|
115
|
+
isClickable = _this$props3.isClickable,
|
|
116
|
+
userCurrencyType = _this$props3.userCurrencyType,
|
|
117
|
+
customProps = _this$props3.customProps,
|
|
118
|
+
formatCurrency = _this$props3.formatCurrency,
|
|
119
|
+
renderLabelProps = _this$props3.renderLabelProps;
|
|
151
120
|
var _customProps$LabelPro = customProps.LabelProps,
|
|
152
121
|
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
|
|
153
122
|
_customProps$TextBoxP = customProps.TextBoxProps,
|
|
@@ -164,15 +133,9 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
164
133
|
formatValue = value;
|
|
165
134
|
}
|
|
166
135
|
var uniqueId = htmlId ? htmlId : this.getNextId();
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
isActive: isFocused,
|
|
171
|
-
isNeedEffect: !isReadOnly && !isDisabled && needFieldStyle ? true : false
|
|
172
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
173
|
-
className: "".concat(needFieldStyle ? _FieldsModule["default"].highlightSpace : '', " ").concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
174
|
-
"data-title": isDisabled ? title : null,
|
|
175
|
-
onClick: this.handleParentClick
|
|
136
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
137
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
138
|
+
"data-title": isDisabled ? title : null
|
|
176
139
|
}, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
|
|
177
140
|
infoText: infoText,
|
|
178
141
|
isLocked: isLocked,
|
|
@@ -220,7 +183,7 @@ var CurrencyField = /*#__PURE__*/function (_PureComponent) {
|
|
|
220
183
|
type: errorType,
|
|
221
184
|
htmlFor: uniqueId,
|
|
222
185
|
dataId: "".concat(dataId, "_ValidationRuleMessage")
|
|
223
|
-
}, ValidationMessageProps2))))
|
|
186
|
+
}, ValidationMessageProps2))));
|
|
224
187
|
}
|
|
225
188
|
}]);
|
|
226
189
|
return CurrencyField;
|
|
@@ -5,12 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultProps = void 0;
|
|
7
7
|
var _FieldCommonDefaultProps = require("../../props/FieldCommonDefaultProps");
|
|
8
|
-
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); }
|
|
9
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
-
function _defineProperty(obj, key, value) {
|
|
12
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
|
-
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); }
|
|
10
|
+
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; }
|
|
14
11
|
var defaultProps = _objectSpread({
|
|
15
12
|
errorType: 'primary',
|
|
16
13
|
textBoxSize: 'xmedium',
|
|
@@ -23,7 +20,6 @@ var defaultProps = _objectSpread({
|
|
|
23
20
|
isClickable: false,
|
|
24
21
|
needReadOnlyStyle: true,
|
|
25
22
|
customProps: {},
|
|
26
|
-
// needFieldStyle:true,
|
|
27
23
|
formatCurrency: function formatCurrency() {}
|
|
28
24
|
}, (0, _FieldCommonDefaultProps.FieldCommonDefaultProps)());
|
|
29
25
|
exports.defaultProps = defaultProps;
|
|
@@ -7,12 +7,9 @@ exports.propTypes = void 0;
|
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
8
|
var _FieldCommonPropTypes = require("../../props/FieldCommonPropTypes");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
-
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); }
|
|
11
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) {
|
|
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); }
|
|
12
|
+
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; }
|
|
16
13
|
var propTypes = _objectSpread({
|
|
17
14
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
18
15
|
errorType: _propTypes["default"].oneOf(['primary', 'secondary']),
|
|
@@ -13,17 +13,14 @@ var _DateWidget = _interopRequireDefault(require("@zohodesk/components/lib/DateT
|
|
|
13
13
|
var _ValidationMessage = _interopRequireDefault(require("../ValidationMessage/ValidationMessage"));
|
|
14
14
|
var _IdProvider = require("@zohodesk/components/lib/Provider/IdProvider");
|
|
15
15
|
var _FieldContainer = _interopRequireDefault(require("../FieldContainer/FieldContainer"));
|
|
16
|
-
var _RippleEffect = _interopRequireDefault(require("@zohodesk/components/lib/RippleEffect/RippleEffect"));
|
|
17
16
|
var _FieldsModule = _interopRequireDefault(require("../Fields.module.css"));
|
|
18
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
18
|
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); }
|
|
20
19
|
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; }
|
|
21
20
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
22
21
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
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,
|
|
22
|
+
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); } }
|
|
24
23
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
26
|
-
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); }
|
|
27
24
|
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); }
|
|
28
25
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
29
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
@@ -43,17 +40,6 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
43
40
|
_this.handleLabelClick = _this.handleLabelClick.bind(_assertThisInitialized(_this));
|
|
44
41
|
_this.getNextId = (0, _IdProvider.getUniqueId)(_assertThisInitialized(_this));
|
|
45
42
|
_this.openPopup = _this.openPopup.bind(_assertThisInitialized(_this));
|
|
46
|
-
_this.handleParentClick = _this.handleParentClick.bind(_assertThisInitialized(_this));
|
|
47
|
-
_this.handleFocusToggle = _this.handleFocusToggle.bind(_assertThisInitialized(_this));
|
|
48
|
-
_this.handleFocus = _this.handleFocus.bind(_assertThisInitialized(_this));
|
|
49
|
-
_this.handleBlur = _this.handleBlur.bind(_assertThisInitialized(_this));
|
|
50
|
-
_this.getPopupHandlers = _this.getPopupHandlers.bind(_assertThisInitialized(_this));
|
|
51
|
-
_this.handleDropBoxOpen = _this.handleDropBoxOpen.bind(_assertThisInitialized(_this));
|
|
52
|
-
_this.handleDropBoxClose = _this.handleDropBoxClose.bind(_assertThisInitialized(_this));
|
|
53
|
-
_this.state = {
|
|
54
|
-
isFocused: false,
|
|
55
|
-
isPopupOpen: false
|
|
56
|
-
};
|
|
57
43
|
return _this;
|
|
58
44
|
}
|
|
59
45
|
_createClass(DateField, [{
|
|
@@ -107,103 +93,42 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
107
93
|
this.dateField.focus();
|
|
108
94
|
}
|
|
109
95
|
}
|
|
110
|
-
}, {
|
|
111
|
-
key: "handleParentClick",
|
|
112
|
-
value: function handleParentClick(e) {
|
|
113
|
-
var needFieldStyle = this.props.needFieldStyle;
|
|
114
|
-
if (needFieldStyle) {
|
|
115
|
-
this.dateField.focus();
|
|
116
|
-
this.togglePopup(e);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}, {
|
|
120
|
-
key: "handleFocusToggle",
|
|
121
|
-
value: function handleFocusToggle(value) {
|
|
122
|
-
this.setState({
|
|
123
|
-
isFocused: value
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}, {
|
|
127
|
-
key: "handleFocus",
|
|
128
|
-
value: function handleFocus(e) {
|
|
129
|
-
var _this$props3 = this.props,
|
|
130
|
-
onFocus = _this$props3.onFocus,
|
|
131
|
-
needFieldStyle = _this$props3.needFieldStyle;
|
|
132
|
-
needFieldStyle && this.handleFocusToggle(true);
|
|
133
|
-
onFocus && onFocus(e);
|
|
134
|
-
}
|
|
135
|
-
}, {
|
|
136
|
-
key: "handleBlur",
|
|
137
|
-
value: function handleBlur(e) {
|
|
138
|
-
var _this$props4 = this.props,
|
|
139
|
-
onBlur = _this$props4.onBlur,
|
|
140
|
-
needFieldStyle = _this$props4.needFieldStyle;
|
|
141
|
-
needFieldStyle && this.handleFocusToggle(false);
|
|
142
|
-
onBlur && onBlur(e);
|
|
143
|
-
}
|
|
144
|
-
}, {
|
|
145
|
-
key: "getPopupHandlers",
|
|
146
|
-
value: function getPopupHandlers(methods) {
|
|
147
|
-
var togglePopup = methods.togglePopup;
|
|
148
|
-
this.togglePopup = togglePopup;
|
|
149
|
-
}
|
|
150
|
-
}, {
|
|
151
|
-
key: "handleDropBoxOpen",
|
|
152
|
-
value: function handleDropBoxOpen() {
|
|
153
|
-
var isPopupOpen = this.state.isPopupOpen;
|
|
154
|
-
if (isPopupOpen == false) {
|
|
155
|
-
this.setState({
|
|
156
|
-
isPopupOpen: true
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}, {
|
|
161
|
-
key: "handleDropBoxClose",
|
|
162
|
-
value: function handleDropBoxClose() {
|
|
163
|
-
var isPopupOpen = this.state.isPopupOpen;
|
|
164
|
-
if (isPopupOpen) {
|
|
165
|
-
this.setState({
|
|
166
|
-
isPopupOpen: false
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
96
|
}, {
|
|
171
97
|
key: "render",
|
|
172
98
|
value: function render() {
|
|
173
|
-
var _this$
|
|
174
|
-
labelName = _this$
|
|
175
|
-
isMandatory = _this$
|
|
176
|
-
isDateTime = _this$
|
|
177
|
-
validationMessage = _this$
|
|
178
|
-
validationPalette = _this$
|
|
179
|
-
textBoxSize = _this$
|
|
180
|
-
textBoxVariant = _this$
|
|
181
|
-
isReadOnly = _this$
|
|
182
|
-
value = _this$
|
|
183
|
-
errorType = _this$
|
|
184
|
-
isDisabled = _this$
|
|
185
|
-
title = _this$
|
|
186
|
-
popupGroup = _this$
|
|
187
|
-
dataId = _this$
|
|
188
|
-
validationRuleMessage = _this$
|
|
189
|
-
validationRulePalette = _this$
|
|
190
|
-
onKeyDown = _this$
|
|
191
|
-
infoText = _this$
|
|
192
|
-
borderColor = _this$
|
|
193
|
-
fieldSize = _this$
|
|
194
|
-
datePattern = _this$
|
|
195
|
-
isLocked = _this$
|
|
196
|
-
lockedInfoText = _this$
|
|
197
|
-
lockedValueText = _this$
|
|
198
|
-
labelPalette = _this$
|
|
199
|
-
labelCustomClass = _this$
|
|
200
|
-
htmlId = _this$
|
|
201
|
-
timeZone = _this$
|
|
202
|
-
i18nKeys = _this$
|
|
203
|
-
iconOnHover = _this$
|
|
204
|
-
customProps = _this$
|
|
205
|
-
renderLabelProps = _this$
|
|
206
|
-
needFieldStyle = _this$props5.needFieldStyle;
|
|
99
|
+
var _this$props3 = this.props,
|
|
100
|
+
labelName = _this$props3.labelName,
|
|
101
|
+
isMandatory = _this$props3.isMandatory,
|
|
102
|
+
isDateTime = _this$props3.isDateTime,
|
|
103
|
+
validationMessage = _this$props3.validationMessage,
|
|
104
|
+
validationPalette = _this$props3.validationPalette,
|
|
105
|
+
textBoxSize = _this$props3.textBoxSize,
|
|
106
|
+
textBoxVariant = _this$props3.textBoxVariant,
|
|
107
|
+
isReadOnly = _this$props3.isReadOnly,
|
|
108
|
+
value = _this$props3.value,
|
|
109
|
+
errorType = _this$props3.errorType,
|
|
110
|
+
isDisabled = _this$props3.isDisabled,
|
|
111
|
+
title = _this$props3.title,
|
|
112
|
+
popupGroup = _this$props3.popupGroup,
|
|
113
|
+
dataId = _this$props3.dataId,
|
|
114
|
+
validationRuleMessage = _this$props3.validationRuleMessage,
|
|
115
|
+
validationRulePalette = _this$props3.validationRulePalette,
|
|
116
|
+
onKeyDown = _this$props3.onKeyDown,
|
|
117
|
+
infoText = _this$props3.infoText,
|
|
118
|
+
borderColor = _this$props3.borderColor,
|
|
119
|
+
fieldSize = _this$props3.fieldSize,
|
|
120
|
+
datePattern = _this$props3.datePattern,
|
|
121
|
+
isLocked = _this$props3.isLocked,
|
|
122
|
+
lockedInfoText = _this$props3.lockedInfoText,
|
|
123
|
+
lockedValueText = _this$props3.lockedValueText,
|
|
124
|
+
labelPalette = _this$props3.labelPalette,
|
|
125
|
+
labelCustomClass = _this$props3.labelCustomClass,
|
|
126
|
+
htmlId = _this$props3.htmlId,
|
|
127
|
+
timeZone = _this$props3.timeZone,
|
|
128
|
+
i18nKeys = _this$props3.i18nKeys,
|
|
129
|
+
iconOnHover = _this$props3.iconOnHover,
|
|
130
|
+
customProps = _this$props3.customProps,
|
|
131
|
+
renderLabelProps = _this$props3.renderLabelProps;
|
|
207
132
|
var _customProps$LabelPro = customProps.LabelProps,
|
|
208
133
|
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro,
|
|
209
134
|
_customProps$DateWidg = customProps.DateWidgetProps,
|
|
@@ -213,18 +138,9 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
213
138
|
_customProps$Validati2 = customProps.ValidationMessageProps2,
|
|
214
139
|
ValidationMessageProps2 = _customProps$Validati2 === void 0 ? {} : _customProps$Validati2;
|
|
215
140
|
var getAriaId = htmlId ? htmlId : this.getNextId();
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
var isActive = isPopupOpen || isFocused;
|
|
220
|
-
return /*#__PURE__*/_react["default"].createElement(_RippleEffect["default"], {
|
|
221
|
-
hoverType: "bg",
|
|
222
|
-
isActive: isFocused,
|
|
223
|
-
isNeedEffect: !isReadOnly && !isDisabled && needFieldStyle ? true : false
|
|
224
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
225
|
-
className: " ".concat(needFieldStyle ? _FieldsModule["default"].highlightSpace : '', " ").concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : '', " ").concat(_FieldsModule["default"].hover),
|
|
226
|
-
"data-title": isDisabled ? title : null,
|
|
227
|
-
onClick: this.handleParentClick
|
|
141
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
142
|
+
className: "".concat(_FieldsModule["default"].container, " ").concat(isDisabled ? _FieldsModule["default"].disabled : isReadOnly ? _FieldsModule["default"].readonly : ''),
|
|
143
|
+
"data-title": isDisabled ? title : null
|
|
228
144
|
}, labelName && /*#__PURE__*/_react["default"].createElement(_FieldContainer["default"], {
|
|
229
145
|
infoText: infoText,
|
|
230
146
|
isLocked: isLocked,
|
|
@@ -236,12 +152,12 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
236
152
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
237
153
|
palette: isMandatory ? 'mandatory' : isDisabled ? 'primary' : labelPalette,
|
|
238
154
|
onClick: isDisabled || isReadOnly ? null : this.handleLabelClick,
|
|
239
|
-
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''
|
|
155
|
+
customClass: "".concat(_FieldsModule["default"].fieldLabel, " ").concat(labelCustomClass, " ").concat(isMandatory ? _FieldsModule["default"].labelMandatory : ''),
|
|
240
156
|
dataId: isDisabled ? "".concat(dataId, "_label_disabled") : isMandatory ? "".concat(dataId, "_label_mandatory") : "".concat(dataId, "_label")
|
|
241
157
|
}, LabelProps, {
|
|
242
158
|
id: labelName
|
|
243
159
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
244
|
-
className: "".concat(
|
|
160
|
+
className: "".concat(_FieldsModule["default"].fieldContainer, " ").concat(labelName ? _FieldsModule["default"]["fieldMargin_".concat(fieldSize)] : '')
|
|
245
161
|
}, isLocked && lockedValueText ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
246
162
|
className: _FieldsModule["default"].lockText
|
|
247
163
|
}, lockedValueText) : /*#__PURE__*/_react["default"].createElement(_DateWidget["default"], _extends({
|
|
@@ -251,8 +167,6 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
251
167
|
onSelect: this.handleChange,
|
|
252
168
|
timeZone: timeZone,
|
|
253
169
|
getRef: this.handleGetRef,
|
|
254
|
-
onFocus: this.handleFocus,
|
|
255
|
-
onBlur: this.handleBlur,
|
|
256
170
|
isReadOnly: isReadOnly,
|
|
257
171
|
value: value,
|
|
258
172
|
popupGroup: popupGroup,
|
|
@@ -264,11 +178,7 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
264
178
|
isEditable: true,
|
|
265
179
|
htmlId: getAriaId,
|
|
266
180
|
i18nKeys: i18nKeys,
|
|
267
|
-
iconOnHover: iconOnHover
|
|
268
|
-
getPopupHandlers: this.getPopupHandlers,
|
|
269
|
-
onDropBoxOpen: this.handleDropBoxOpen,
|
|
270
|
-
onDropBoxClose: this.handleDropBoxClose,
|
|
271
|
-
highlightPosition: needFieldStyle ? true : false
|
|
181
|
+
iconOnHover: iconOnHover
|
|
272
182
|
}, DateWidgetProps, {
|
|
273
183
|
a11y: {
|
|
274
184
|
ariaLabelledby: labelName
|
|
@@ -285,7 +195,7 @@ var DateField = /*#__PURE__*/function (_PureComponent) {
|
|
|
285
195
|
type: errorType,
|
|
286
196
|
htmlFor: getAriaId,
|
|
287
197
|
dataId: "".concat(dataId, "_ValidationRuleMessage")
|
|
288
|
-
}, ValidationMessageProps2))))
|
|
198
|
+
}, ValidationMessageProps2))));
|
|
289
199
|
}
|
|
290
200
|
}]);
|
|
291
201
|
return DateField;
|
|
@@ -5,12 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultProps = void 0;
|
|
7
7
|
var _FieldCommonDefaultProps = require("../../props/FieldCommonDefaultProps");
|
|
8
|
-
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); }
|
|
9
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
-
function _defineProperty(obj, key, value) {
|
|
12
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
|
-
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); }
|
|
10
|
+
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; }
|
|
14
11
|
var defaultProps = _objectSpread({
|
|
15
12
|
errorType: 'primary',
|
|
16
13
|
openPopupOnMount: false,
|
|
@@ -7,12 +7,9 @@ exports.propTypes = void 0;
|
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
8
|
var _FieldCommonPropTypes = require("../../props/FieldCommonPropTypes");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
-
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); }
|
|
11
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) {
|
|
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); }
|
|
12
|
+
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; }
|
|
16
13
|
var propTypes = _objectSpread({
|
|
17
14
|
borderColor: _propTypes["default"].oneOf(['transparent', 'default']),
|
|
18
15
|
datePattern: _propTypes["default"].string,
|
|
@@ -15,10 +15,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
15
|
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); }
|
|
16
16
|
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; }
|
|
17
17
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
18
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target,
|
|
18
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
19
19
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
|
-
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); }
|
|
22
20
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
23
21
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
22
|
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); }; }
|
|
@@ -5,12 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.defaultProps = void 0;
|
|
7
7
|
var _FieldCommonDefaultProps = require("../../props/FieldCommonDefaultProps");
|
|
8
|
-
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); }
|
|
9
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11
|
-
function _defineProperty(obj, key, value) {
|
|
12
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
|
-
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); }
|
|
10
|
+
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; }
|
|
14
11
|
var defaultProps = _objectSpread(_objectSpread({}, (0, _FieldCommonDefaultProps.FieldCommonDefaultProps)()), {}, {
|
|
15
12
|
renderProps: {},
|
|
16
13
|
alignContainer: 'vertical'
|
|
@@ -7,12 +7,9 @@ exports.propTypes = void 0;
|
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
8
|
var _FieldCommonPropTypes = require("../../props/FieldCommonPropTypes");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
-
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); }
|
|
11
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
-
function _defineProperty(obj, key, value) {
|
|
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); }
|
|
12
|
+
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; }
|
|
16
13
|
var propTypes = _objectSpread(_objectSpread({}, (0, _FieldCommonPropTypes.FieldCommonPropTypes)()), {}, {
|
|
17
14
|
children: _propTypes["default"].node,
|
|
18
15
|
alignContainer: _propTypes["default"].oneOf('vertical', 'baseline'),
|