@zohodesk/dot 1.0.0-temp-88 → 1.0.0-temp.30
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 +26 -1
- package/es/ExternalLink/ExternalLink.js +1 -1
- package/es/FlipCard/FlipCard.js +1 -1
- package/es/Link/Link.js +1 -1
- package/es/Message/Message.js +1 -1
- package/es/Provider.js +5 -105
- package/es/ToastMessage/ToastMessage.js +1 -1
- package/es/alert/AlertLookup/AlertLookup.js +12 -5
- package/es/alert/AlertLookup/docs/AlertLookup__default.docs.js +4 -3
- package/es/avatar/AvatarClose/AvatarClose.js +1 -1
- package/es/avatar/AvatarCollision/AvatarCollision.js +1 -1
- package/es/avatar/AvatarIcon/AvatarIcon.js +1 -1
- package/es/avatar/AvatarStatus/AvatarStatus.js +1 -1
- package/es/avatar/AvatarThread/AvatarThread.js +1 -1
- package/es/avatar/AvatarUser/AvatarUser.js +1 -1
- package/es/avatar/AvatarWithTeam/AvatarWithTeam.js +1 -1
- package/es/docs/formDocs.js +5 -1
- package/es/docs/generalDocs.js +5 -2
- package/es/dropdown/ToggleDropDown/ToggleDropDown.js +4 -5
- package/es/dropdown/ToggleDropDown/ToggleDropDown.module.css +3 -2
- package/es/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +3 -3
- package/es/emptystate/EditionPage/EditionPage.js +1 -1
- package/es/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/es/errorstate/NoRequestFound/NoRequestFound.js +1 -1
- package/es/errorstate/PermissionPlay/PermissionPlay.js +1 -1
- package/es/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +1 -1
- package/es/errorstate/UnableToProcess/UnableToProcess.js +1 -1
- package/es/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
- package/es/errorstate/WillBack/WillBack.js +1 -1
- package/es/form/fields/CheckBoxField/CheckBoxField.js +17 -29
- package/es/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +8 -1
- package/es/form/fields/CurrencyField/CurrencyField.js +17 -30
- package/es/form/fields/CurrencyField/docs/CurrencyField__default.docs.js +36 -0
- package/es/form/fields/DateField/DateField.js +17 -29
- package/es/form/fields/DateField/docs/DateField__default.docs.js +8 -1
- package/es/form/fields/FieldContainer/FieldContainer.js +82 -0
- package/es/form/fields/FieldContainer/docs/FieldContainer__default.docs.js +49 -0
- package/es/form/fields/MultiSelectField/MultiSelectField.js +17 -29
- package/es/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +8 -1
- package/es/form/fields/PhoneField/PhoneField.js +1 -1
- package/es/form/fields/RadioField/RadioField.js +1 -1
- package/es/form/fields/SelectField/SelectField.js +17 -29
- package/es/form/fields/SelectField/docs/SelectField__default.docs.js +8 -1
- package/es/form/fields/TagsMultiSelect/TagsMultiSelect.js +10 -7
- package/es/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +33 -29
- package/es/form/fields/TextBoxField/TextBoxField.js +19 -44
- package/es/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +28 -1
- package/es/form/fields/TextEditorField/TextEditorField.js +28 -45
- package/es/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +9 -2
- package/es/form/fields/TextEditorWrapper/TextEditorWrapper.js +1 -1
- package/es/form/fields/TextareaField/TextareaField.js +17 -29
- package/es/form/fields/TextareaField/docs/TextareaField__default.docs.js +8 -1
- package/es/form/fields/props/FieldCommonDefaultProps.js +10 -0
- package/es/form/fields/props/FieldCommonPropTypes.js +22 -0
- package/es/layout/SubtabLayout/SubtabLayout.js +1 -1
- package/es/list/GridStencils/GridStencils.module.css +7 -18
- package/es/list/ListLayout/ListLayout.js +1 -1
- package/es/list/SecondaryText/AccountName.js +35 -39
- package/es/list/SecondaryText/ContactName.js +19 -14
- package/es/list/SecondaryText/Email.js +1 -1
- package/es/list/SecondaryText/PhoneNumber.js +1 -1
- package/es/list/SecondaryText/SecondaryText.js +1 -1
- package/es/list/SecondaryText/SecondaryText.module.css +15 -30
- package/es/list/SecondaryText/TicketId.js +1 -1
- package/es/list/SecondaryText/docs/SecondaryText__default.docs.js +114 -0
- package/es/list/Subject/Subject.js +1 -1
- package/es/list/status/StatusDropdown/StatusDropdown.js +3 -2
- package/es/list/status/StatusListItem/StatusListItem.js +1 -1
- package/es/lookup/EmptyPage/EmptyPage.js +4 -4
- package/es/lookup/header/Search/Search.js +1 -1
- package/es/lookup/header/ViewDropDown/ViewDropDown.js +1 -1
- package/es/svg/PlusIcon.js +1 -1
- package/es/svg/SnippetIcon.js +1 -1
- package/es/svg/TemplateIcon.js +1 -1
- package/es/version2/GlobalNotification/GlobalNotification.js +1 -3
- package/es/version2/errorstate/Inconvenience/Inconvenience.js +1 -1
- package/es/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +1 -1
- package/es/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +1 -1
- package/es/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +1 -1
- package/es/version2/errorstate/UrlNotFound/UrlNotFound.js +1 -1
- package/es/version2/errorstate/WillBeRightBack/WillBeRightBack.js +1 -1
- package/es/version2/lookup/AlertLookup/AlertLookup.js +1 -1
- package/es/version2/notification/DesktopNotification/DesktopNotification.js +1 -1
- package/lib/ActionButton/ActionButton.js +2 -2
- package/lib/ActionButton/docs/ActionButton__default.docs.js +2 -2
- package/lib/AlphabeticList/AlphabeticList.js +2 -2
- package/lib/AlphabeticList/docs/AlphabeticList__default.docs.js +2 -2
- package/lib/AlphabeticList/docs/AlphabeticList__horizontal.docs.js +2 -2
- package/lib/Attachment/Attachment.js +2 -2
- package/lib/Attachment/docs/Attachment__default.docs.js +2 -2
- package/lib/AttachmentViewer/AttachmentImage.js +2 -2
- package/lib/AttachmentViewer/AttachmentViewer.js +2 -2
- package/lib/AttachmentViewer/docs/AttachmentViewer__default.docs.js +2 -2
- package/lib/ChannelIcon/ChannelIcon.js +2 -2
- package/lib/ChannelIcon/docs/ChannelIcon__default.docs.js +2 -2
- package/lib/Drawer/Drawer.js +2 -2
- package/lib/Drawer/docs/Drawer__default.docs.js +2 -2
- package/lib/Drawer/docs/Drawer__multiDrawer.docs.js +2 -2
- package/lib/Drawer/docs/Drawer__noFreeze.docs.js +2 -2
- package/lib/Drawer/docs/Drawer__withModal.docs.js +2 -2
- package/lib/ExternalLink/ExternalLink.js +3 -3
- package/lib/ExternalLink/docs/ExternalLink__default.docs.js +2 -2
- package/lib/FlipCard/FlipCard.js +3 -3
- package/lib/FlipCard/docs/FlipCard__default.docs.js +2 -2
- package/lib/FormAction/FormAction.js +2 -2
- package/lib/FormAction/docs/FormAction__default.docs.js +2 -2
- package/lib/FreezeLayer/FreezeLayer.js +2 -2
- package/lib/FreezeLayer/docs/FreezeLayer__dark.docs.js +2 -2
- package/lib/FreezeLayer/docs/FreezeLayer__default.docs.js +2 -2
- package/lib/IconButton/IconButton.js +2 -2
- package/lib/IconButton/docs/IconButton__default.docs.js +2 -2
- package/lib/Image/Image.js +2 -2
- package/lib/Image/docs/Image__default.docs.js +2 -2
- package/lib/ImportantNotes/ImportantNotes.js +2 -2
- package/lib/ImportantNotes/docs/ImportantNotes__default.docs.js +2 -2
- package/lib/Link/Link.js +3 -3
- package/lib/Link/docs/Link__default.docs.js +2 -2
- package/lib/Loader/Loader.js +2 -2
- package/lib/Loader/docs/Loader__default.docs.js +2 -2
- package/lib/Message/Message.js +3 -3
- package/lib/Message/docs/Message__default.docs.js +2 -2
- package/lib/MessageBanner/MessageBanner.js +2 -2
- package/lib/MessageBanner/docs/MessageBanner__default.docs.js +2 -2
- package/lib/NewStar/NewStar.js +2 -2
- package/lib/NewStar/docs/NewStar__default.docs.js +2 -2
- package/lib/PlusIcon/PlusIcon.js +2 -2
- package/lib/PlusIcon/docs/PlusIcon__default.docs.js +2 -2
- package/lib/Provider.js +8 -125
- package/lib/ToastMessage/ToastMessage.js +1 -1
- package/lib/ToastMessage/docs/ToastMessage__custom.docs.js +2 -2
- package/lib/ToastMessage/docs/ToastMessage__information.docs.js +2 -2
- package/lib/ToastMessage/docs/ToastMessage__primary.docs.js +2 -2
- package/lib/ToastMessage/docs/ToastMessage__secondary.docs.js +2 -2
- package/lib/ToastMessage/docs/ToastMessage__success.docs.js +2 -2
- package/lib/Upload/Upload.js +2 -2
- package/lib/Upload/docs/Upload__default.docs.js +2 -2
- package/lib/alert/AlertHeader/AlertHeader.js +2 -2
- package/lib/alert/AlertHeader/docs/AlertHeader__default.docs.js +2 -2
- package/lib/alert/AlertLookup/AlertLookup.js +14 -7
- package/lib/alert/AlertLookup/docs/AlertLookup__default.docs.js +6 -5
- package/lib/avatar/AvatarClose/AvatarClose.js +3 -3
- package/lib/avatar/AvatarClose/docs/AvatarClose__default.docs.js +2 -2
- package/lib/avatar/AvatarCollision/AvatarCollision.js +3 -3
- package/lib/avatar/AvatarCollision/docs/AvatarCollision__default.docs.js +2 -2
- package/lib/avatar/AvatarIcon/AvatarIcon.js +3 -3
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__palette.docs.js +2 -2
- package/lib/avatar/AvatarIcon/docs/AvatarIcon__size.docs.js +2 -2
- package/lib/avatar/AvatarStatus/AvatarStatus.js +3 -3
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__size.docs.js +2 -2
- package/lib/avatar/AvatarStatus/docs/AvatarStatus__state.docs.js +2 -2
- package/lib/avatar/AvatarThread/AvatarThread.js +3 -3
- package/lib/avatar/AvatarThread/docs/AvatarThread__default.docs.js +2 -2
- package/lib/avatar/AvatarUser/AvatarUser.js +3 -3
- package/lib/avatar/AvatarUser/docs/AvatarUser__default.docs.js +2 -2
- package/lib/avatar/AvatarWithTeam/AvatarWithTeam.js +3 -3
- package/lib/avatar/AvatarWithTeam/docs/AvatarWithTeam__default.docs.js +2 -2
- package/lib/deprecated/SelectDropdown/SelectDropdown.js +2 -2
- package/lib/deprecated/SelectDropdown/docs/SelectDropdown__default.docs.js +2 -2
- package/lib/docs/formDocs.js +32 -0
- package/lib/docs/generalDocs.js +8 -0
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.js +6 -5
- package/lib/dropdown/ToggleDropDown/ToggleDropDown.module.css +3 -2
- package/lib/dropdown/ToggleDropDown/docs/ToggleDropDown__default.docs.js +2 -2
- package/lib/emptystate/CommonEmptyState/CommonEmptyState.js +2 -2
- package/lib/emptystate/CommonEmptyState/docs/CommonEmptyState__default.docs.js +5 -5
- package/lib/emptystate/EditionPage/EditionPage.js +3 -3
- package/lib/emptystate/EditionPage/docs/EditionPage__default.docs.js +2 -2
- package/lib/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/lib/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +2 -2
- package/lib/errorstate/LinkText/LinkText.js +2 -2
- package/lib/errorstate/LinkText/docs/LinkText__default.docs.js +2 -2
- package/lib/errorstate/NoRequestFound/NoRequestFound.js +3 -3
- package/lib/errorstate/NoRequestFound/docs/NoRequestFound__default.docs.js +2 -2
- package/lib/errorstate/PermissionPlay/PermissionPlay.js +3 -3
- package/lib/errorstate/PermissionPlay/docs/PermissionPlay__default.docs.js +2 -2
- package/lib/errorstate/RequestUrlNotFound/RequestUrlNotFound.js +3 -3
- package/lib/errorstate/RequestUrlNotFound/docs/RequestUrlNotFound__default.docs.js +2 -2
- package/lib/errorstate/UnableToProcess/UnableToProcess.js +3 -3
- package/lib/errorstate/UnableToProcess/docs/UnableToProcess__default.docs.js +2 -2
- package/lib/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__insufficient.docs.js +2 -2
- package/lib/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__unauthorizedLogin.docs.js +2 -2
- package/lib/errorstate/WillBack/WillBack.js +3 -3
- package/lib/errorstate/WillBack/docs/WillBack__default.docs.js +2 -2
- package/lib/form/fields/CheckBoxField/CheckBoxField.js +26 -32
- package/lib/form/fields/CheckBoxField/docs/CheckBoxField__default.docs.js +10 -3
- package/lib/form/fields/CurrencyField/CurrencyField.js +26 -33
- package/lib/{list/SecondaryText/docs/ContactName__default.docs.js → form/fields/CurrencyField/docs/CurrencyField__default.docs.js} +31 -18
- package/lib/form/fields/DateField/DateField.js +26 -32
- package/lib/form/fields/DateField/docs/DateField__default.docs.js +10 -3
- package/lib/form/fields/FieldContainer/FieldContainer.js +136 -0
- package/lib/form/fields/FieldContainer/docs/FieldContainer__default.docs.js +104 -0
- package/lib/form/fields/MultiSelectField/MultiSelectField.js +26 -32
- package/lib/form/fields/MultiSelectField/docs/MultiSelectField__default.docs.js +10 -3
- package/lib/form/fields/PhoneField/PhoneField.js +3 -3
- package/lib/form/fields/PhoneField/docs/PhoneField__default.docs.js +2 -2
- package/lib/form/fields/RadioField/RadioField.js +3 -3
- package/lib/form/fields/SelectField/SelectField.js +26 -32
- package/lib/form/fields/SelectField/docs/SelectField__default.docs.js +10 -3
- package/lib/form/fields/TagsMultiSelect/TagsMultiSelect.js +12 -9
- package/lib/form/fields/TagsMultiSelect/docs/TagsMultiSelect__default.docs.js +2 -2
- package/lib/form/fields/TagsMultiSelectField/TagsMultiSelectField.js +37 -31
- package/lib/form/fields/TextBoxField/TextBoxField.js +28 -48
- package/lib/form/fields/TextBoxField/docs/TextBoxField__default.docs.js +37 -4
- package/lib/form/fields/TextEditor/TextEditor.js +2 -2
- package/lib/form/fields/TextEditorField/TextEditorField.js +36 -50
- package/lib/form/fields/TextEditorField/docs/TextEditorField__default.docs.js +11 -4
- package/lib/form/fields/TextEditorWrapper/TextEditorWrapper.js +3 -3
- package/lib/form/fields/TextareaField/TextareaField.js +26 -32
- package/lib/form/fields/TextareaField/docs/TextareaField__default.docs.js +10 -3
- package/lib/form/fields/ValidationMessage/ValidationMessage.js +2 -2
- package/lib/form/fields/ValidationMessage/docs/ValidationMessage__default.docs.js +2 -2
- package/lib/form/fields/props/FieldCommonDefaultProps.js +19 -0
- package/lib/form/fields/props/FieldCommonPropTypes.js +34 -0
- package/lib/form/layout/Field/Field.js +2 -2
- package/lib/form/layout/Field/docs/Field__default.docs.js +2 -2
- package/lib/form/layout/Section/Section.js +2 -2
- package/lib/form/layout/Section/docs/Section__default.docs.js +2 -2
- package/lib/layout/SetupDetailLayout/SetupDetailLayout.js +2 -2
- package/lib/layout/SetupDetailLayout/docs/SetupDetailLayout__default.docs.js +2 -2
- package/lib/layout/SubtabLayout/SubtabLayout.js +3 -3
- package/lib/layout/SubtabLayout/docs/SubtabLayout__default.docs.js +2 -2
- package/lib/list/AvatarFlip/AvatarFlip.js +2 -2
- package/lib/list/AvatarFlip/docs/AvatarFlip__default.docs.js +2 -2
- package/lib/list/BluePrintStatus/BluePrintStatus.js +2 -2
- package/lib/list/BluePrintStatus/docs/BluePrintStatus__default.docs.js +2 -2
- package/lib/list/Comment/Comment.js +2 -2
- package/lib/list/Comment/docs/Comment__default.docs.js +2 -2
- package/lib/list/DepartmentDropDown/DepartmentDropDown.js +2 -2
- package/lib/list/Dot/Dot.js +2 -2
- package/lib/list/DotNew/DotNew.js +2 -2
- package/lib/list/DotNew/docs/DotNew__default.docs.js +2 -2
- package/lib/list/GridStencils/GridStencils.js +2 -2
- package/lib/list/GridStencils/GridStencils.module.css +7 -18
- package/lib/list/GridStencils/docs/GridStencils__default.docs.js +2 -2
- package/lib/list/Icons/AddNewIcon.js +2 -2
- package/lib/list/Icons/CompleteIcon.js +2 -2
- package/lib/list/Icons/DeleteIcon.js +2 -2
- package/lib/list/Icons/EditIcon.js +2 -2
- package/lib/list/Icons/FloatingIcons.js +2 -2
- package/lib/list/Icons/ReadUnreadIcon.js +2 -2
- package/lib/list/Icons/SmartIcon.js +2 -2
- package/lib/list/Icons/docs/FloatingIcons__default.docs.js +2 -2
- package/lib/list/ListLayout/ListLayout.js +3 -3
- package/lib/list/ListLayout/docs/ListLayout__default.docs.js +2 -2
- package/lib/list/ListStencils/ListStencils.js +2 -2
- package/lib/list/ListStencils/docs/ListStencils__default.docs.js +2 -2
- package/lib/list/SecondaryText/AccountName.js +37 -41
- package/lib/list/SecondaryText/ContactName.js +21 -16
- package/lib/list/SecondaryText/DepartmentText.js +2 -2
- package/lib/list/SecondaryText/Email.js +3 -3
- package/lib/list/SecondaryText/HappinessRating.js +2 -2
- package/lib/list/SecondaryText/PhoneNumber.js +3 -3
- package/lib/list/SecondaryText/PriorityText.js +2 -2
- package/lib/list/SecondaryText/SecondaryText.js +3 -3
- package/lib/list/SecondaryText/SecondaryText.module.css +15 -30
- package/lib/list/SecondaryText/StatusText.js +2 -2
- package/lib/list/SecondaryText/TicketId.js +3 -3
- package/lib/list/SecondaryText/Website.js +2 -2
- package/lib/list/SecondaryText/docs/SecondaryText__default.docs.js +162 -0
- package/lib/list/SecondryPanel/SecondryPanel.js +2 -2
- package/lib/list/SecondryPanel/docs/SecondryPanel__default.docs.js +2 -2
- package/lib/list/SentimentStatus/SentimentStatus.js +2 -2
- package/lib/list/SentimentStatus/docs/SentimentStatus__default.docs.js +2 -2
- package/lib/list/Subject/Subject.js +3 -3
- package/lib/list/Subject/docs/Subject__default.docs.js +2 -2
- package/lib/list/TagNew/TagNew.js +2 -2
- package/lib/list/TagNew/docs/TagNew__default.docs.js +2 -2
- package/lib/list/Thread/Thread.js +2 -2
- package/lib/list/Thread/docs/Thread__default.docs.js +2 -2
- package/lib/list/UserTime/UserTime.js +2 -2
- package/lib/list/UserTime/docs/UserTime__default.docs.js +2 -2
- package/lib/list/status/StatusDropdown/StatusDropdown.js +5 -4
- package/lib/list/status/StatusDropdown/docs/StatusDropdown__default.docs.js +2 -2
- package/lib/list/status/StatusListItem/StatusListItem.js +3 -3
- package/lib/list/status/StatusListItem/docs/StatusListItem__default.docs.js +2 -2
- package/lib/lookup/EmptyPage/EmptyPage.js +6 -6
- package/lib/lookup/EmptyPage/docs/EmptyPage__account.docs.js +2 -2
- package/lib/lookup/EmptyPage/docs/EmptyPage__contact.docs.js +2 -2
- package/lib/lookup/EmptyPage/docs/EmptyPage__default.docs.js +2 -2
- package/lib/lookup/EmptyPage/docs/EmptyPage__product.docs.js +2 -2
- package/lib/lookup/Lookup/Lookup.js +2 -2
- package/lib/lookup/Lookup/docs/Lookup__contact.docs.js +2 -2
- package/lib/lookup/Lookup/docs/Lookup__default.docs.js +2 -2
- package/lib/lookup/Section/Section.js +2 -2
- package/lib/lookup/header/Close/Close.js +2 -2
- package/lib/lookup/header/Close/docs/Close__default.docs.js +2 -2
- package/lib/lookup/header/ModuleHeader/ModuleHeader.js +2 -2
- package/lib/lookup/header/ModuleHeader/docs/ModuleHeader__default.docs.js +2 -2
- package/lib/lookup/header/Search/Search.js +3 -3
- package/lib/lookup/header/Search/docs/Search__default.docs.js +2 -2
- package/lib/lookup/header/TicketHeader/TicketHeader.js +2 -2
- package/lib/lookup/header/TicketHeader/docs/TicketHeader__default.docs.js +2 -2
- package/lib/lookup/header/Title/Title.js +2 -2
- package/lib/lookup/header/Title/docs/Title__default.docs.js +2 -2
- package/lib/lookup/header/ViewDropDown/ViewDropDown.js +3 -3
- package/lib/lookup/header/ViewDropDown/docs/ViewDropDown__default.docs.js +2 -2
- package/lib/setup/header/Button/Button.js +2 -2
- package/lib/setup/header/Button/docs/Button__default.docs.js +2 -2
- package/lib/setup/header/Link/Link.js +2 -2
- package/lib/setup/header/Link/docs/Link__default.docs.js +2 -2
- package/lib/setup/header/Search/Search.js +2 -2
- package/lib/setup/header/Search/docs/Search__default.docs.js +2 -2
- package/lib/setup/header/Views/Views.js +2 -2
- package/lib/setup/header/Views/docs/Views__default.docs.js +2 -2
- package/lib/setup/helptips/Description/Description.js +2 -2
- package/lib/setup/helptips/Description/docs/Description__default.docs.js +2 -2
- package/lib/setup/helptips/Link/Link.js +2 -2
- package/lib/setup/helptips/Link/docs/Link__default.docs.js +2 -2
- package/lib/setup/helptips/ListGroup/ListGroup.js +2 -2
- package/lib/setup/helptips/ListGroup/docs/ListGroup__default.docs.js +2 -2
- package/lib/setup/helptips/Title/Title.js +2 -2
- package/lib/setup/helptips/Title/docs/Title__default.docs.js +2 -2
- package/lib/setup/table/Table/Table.js +2 -2
- package/lib/setup/table/Table/docs/Table__default.docs.js +2 -2
- package/lib/setup/table/TableBody/TableBody.js +2 -2
- package/lib/setup/table/TableData/TableData.js +2 -2
- package/lib/setup/table/TableHead/TableHead.js +2 -2
- package/lib/setup/table/TableRow/TableRow.js +2 -2
- package/lib/setup/table/Text/Text.js +2 -2
- package/lib/setup/table/Text/docs/Text__default.docs.js +2 -2
- package/lib/svg/PlusIcon.js +3 -3
- package/lib/svg/SnippetIcon.js +3 -3
- package/lib/svg/TemplateIcon.js +3 -3
- package/lib/svg/docs/SVG__default.docs.js +2 -2
- package/lib/version2/AlertClose/AlertClose.js +2 -2
- package/lib/version2/AlertClose/docs/AlertClose__default.docs.js +2 -2
- package/lib/version2/GlobalNotification/GlobalNotification.js +3 -3
- package/lib/version2/GlobalNotification/docs/GlobalNotification__default.docs.js +2 -2
- package/lib/version2/alertIcons/AlarmAlertIcon.js +2 -2
- package/lib/version2/alertIcons/AlertIcons.js +2 -2
- package/lib/version2/alertIcons/DangerAlertIcon.js +2 -2
- package/lib/version2/alertIcons/ErrorAlertIcon.js +2 -2
- package/lib/version2/alertIcons/InfoAlertIcon.js +2 -2
- package/lib/version2/alertIcons/NotificationAlertIcon.js +2 -2
- package/lib/version2/alertIcons/SuccessAlertIcon.js +2 -2
- package/lib/version2/alertIcons/WarningAlertIcon.js +2 -2
- package/lib/version2/alertIcons/docs/AlertIcons__default.docs.js +2 -2
- package/lib/version2/errorstate/Inconvenience/Inconvenience.js +3 -3
- package/lib/version2/errorstate/Inconvenience/docs/Inconvenience__default.docs.js +2 -2
- package/lib/version2/errorstate/OopsSomethingMiss/OopsSomethingMiss.js +3 -3
- package/lib/version2/errorstate/OopsSomethingMiss/docs/OopsSomethingMiss__default.docs.js +2 -2
- package/lib/version2/errorstate/UnableToProcessRequest/UnableToProcessRequest.js +3 -3
- package/lib/version2/errorstate/UnableToProcessRequest/docs/UnableToProcessRequest__default.docs.js +2 -2
- package/lib/version2/errorstate/UnauthorizedLogin/UnauthorizedLogin.js +3 -3
- package/lib/version2/errorstate/UnauthorizedLogin/docs/UnauthorizedLogin__default.docs.js +2 -2
- package/lib/version2/errorstate/UrlNotFound/UrlNotFound.js +3 -3
- package/lib/version2/errorstate/UrlNotFound/docs/UrlNotFound__default.docs.js +2 -2
- package/lib/version2/errorstate/WillBeRightBack/WillBeRightBack.js +3 -3
- package/lib/version2/errorstate/WillBeRightBack/docs/WillBeRightBack__default.docs.js +2 -2
- package/lib/version2/lookup/AlertHeader/AlertHeader.js +2 -2
- package/lib/version2/lookup/AlertHeader/docs/AlertHeader__default.docs.js +2 -2
- package/lib/version2/lookup/AlertLookup/AlertLookup.js +3 -3
- package/lib/version2/lookup/AlertLookup/docs/AlertLookup__default.docs.js +2 -2
- package/lib/version2/notification/DesktopNotification/DesktopNotification.js +1 -1
- package/lib/version2/notification/DesktopNotification/docs/DesktopNotification__default.docs.js +2 -2
- package/lib/version2/notification/DesktopNotificationHeader/DesktopNotificationHeader.js +2 -2
- package/lib/version2/notification/DesktopNotificationHeader/docs/DesktopNotificationHeader__default.docs.js +2 -2
- package/package.json +9 -8
- package/es/list/SecondaryText/docs/ContactName__default.docs.js +0 -23
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
@@ -9,9 +9,11 @@ import Label from '@zohodesk/components/lib/Label/Label';
|
|
|
9
9
|
import Select from '@zohodesk/components/lib/Select/Select';
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
12
|
-
|
|
12
|
+
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
13
|
+
/**** props ****/
|
|
13
14
|
|
|
14
|
-
import
|
|
15
|
+
import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
|
|
16
|
+
import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
|
|
15
17
|
/** CSS */
|
|
16
18
|
|
|
17
19
|
import style from '../Fields.module.css';
|
|
@@ -94,7 +96,8 @@ export default class SelectField extends PureComponent {
|
|
|
94
96
|
children,
|
|
95
97
|
onFocus,
|
|
96
98
|
iconOnHover,
|
|
97
|
-
customProps
|
|
99
|
+
customProps,
|
|
100
|
+
renderLabelProps
|
|
98
101
|
} = this.props;
|
|
99
102
|
const {
|
|
100
103
|
LabelProps = {},
|
|
@@ -106,8 +109,11 @@ export default class SelectField extends PureComponent {
|
|
|
106
109
|
return /*#__PURE__*/React.createElement("div", {
|
|
107
110
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
108
111
|
"data-title": isDisabled ? title : null
|
|
109
|
-
}, labelName && /*#__PURE__*/React.createElement(
|
|
110
|
-
|
|
112
|
+
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
113
|
+
infoText: infoText,
|
|
114
|
+
isLocked: isLocked,
|
|
115
|
+
lockedInfoText: lockedInfoText,
|
|
116
|
+
renderProps: renderLabelProps
|
|
111
117
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
112
118
|
text: labelName,
|
|
113
119
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -115,17 +121,7 @@ export default class SelectField extends PureComponent {
|
|
|
115
121
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
116
122
|
htmlFor: uniqueId,
|
|
117
123
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
118
|
-
}, LabelProps)),
|
|
119
|
-
name: "ZD-GN-info",
|
|
120
|
-
iconClass: style.infoIcon,
|
|
121
|
-
title: infoText,
|
|
122
|
-
size: "15"
|
|
123
|
-
}) : null, isLocked ? /*#__PURE__*/React.createElement(Icon, {
|
|
124
|
-
name: "ZD-GN-lock",
|
|
125
|
-
size: "13",
|
|
126
|
-
iconClass: style.lockIcon,
|
|
127
|
-
title: lockedInfoText
|
|
128
|
-
}) : null), /*#__PURE__*/React.createElement("div", {
|
|
124
|
+
}, LabelProps))), /*#__PURE__*/React.createElement("div", {
|
|
129
125
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''} ${fieldClass ? fieldClass : ''}`
|
|
130
126
|
}, /*#__PURE__*/React.createElement(Select, _extends({
|
|
131
127
|
options: options,
|
|
@@ -176,7 +172,6 @@ export default class SelectField extends PureComponent {
|
|
|
176
172
|
SelectField.propTypes = {
|
|
177
173
|
animationStyle: PropTypes.string,
|
|
178
174
|
borderColor: PropTypes.oneOf(['transparent', 'default']),
|
|
179
|
-
dataId: PropTypes.string,
|
|
180
175
|
emptyMessage: PropTypes.string,
|
|
181
176
|
errorType: PropTypes.oneOf(['primary', 'secondary']),
|
|
182
177
|
excludeOptions: PropTypes.array,
|
|
@@ -185,17 +180,11 @@ SelectField.propTypes = {
|
|
|
185
180
|
getNextOptions: PropTypes.func,
|
|
186
181
|
getRef: PropTypes.func,
|
|
187
182
|
id: PropTypes.string,
|
|
188
|
-
infoText: PropTypes.string,
|
|
189
|
-
isDisabled: PropTypes.bool,
|
|
190
183
|
isFocusOnLabelClick: PropTypes.bool,
|
|
191
|
-
isLocked: PropTypes.bool,
|
|
192
|
-
isMandatory: PropTypes.bool,
|
|
193
184
|
isNextOptions: PropTypes.bool,
|
|
194
|
-
isReadOnly: PropTypes.bool,
|
|
195
185
|
labelCustomClass: PropTypes.string,
|
|
196
186
|
labelName: PropTypes.string,
|
|
197
187
|
labelPalette: PropTypes.string,
|
|
198
|
-
lockedInfoText: PropTypes.string,
|
|
199
188
|
needLocalSearch: PropTypes.bool,
|
|
200
189
|
needSearch: PropTypes.bool,
|
|
201
190
|
onChange: PropTypes.func,
|
|
@@ -225,25 +214,24 @@ SelectField.propTypes = {
|
|
|
225
214
|
SelectProps: PropTypes.object,
|
|
226
215
|
ValidationMessageProps1: PropTypes.object,
|
|
227
216
|
ValidationMessageProps2: PropTypes.object
|
|
228
|
-
})
|
|
217
|
+
}),
|
|
218
|
+
...FieldCommonPropTypes()
|
|
229
219
|
};
|
|
230
220
|
SelectField.defaultProps = {
|
|
231
221
|
errorType: 'primary',
|
|
232
|
-
isMandatory: false,
|
|
233
222
|
needSearch: false,
|
|
234
223
|
searchBoxSize: 'small',
|
|
235
224
|
textBoxSize: 'xmedium',
|
|
236
225
|
textBoxVariant: 'primary',
|
|
237
226
|
borderColor: 'default',
|
|
238
|
-
isDisabled: false,
|
|
239
|
-
isReadOnly: false,
|
|
240
227
|
fieldSize: 'medium',
|
|
241
228
|
isFocusOnLabelClick: true,
|
|
242
229
|
labelPalette: 'default',
|
|
243
230
|
labelCustomClass: '',
|
|
244
231
|
isDefaultSelectValue: true,
|
|
245
232
|
placeHolder: '',
|
|
246
|
-
customProps: {}
|
|
233
|
+
customProps: {},
|
|
234
|
+
...FieldCommonDefaultProps()
|
|
247
235
|
};
|
|
248
236
|
|
|
249
237
|
if (false) {
|
|
@@ -44,7 +44,14 @@ export default class SelectField__default extends Component {
|
|
|
44
44
|
textBoxSize: "xmedium",
|
|
45
45
|
textBoxVariant: "primary",
|
|
46
46
|
searchBoxSize: "xmedium",
|
|
47
|
-
validationMessage: "Invalid Input"
|
|
47
|
+
validationMessage: "Invalid Input",
|
|
48
|
+
infoText: "infoText",
|
|
49
|
+
isLocked: true,
|
|
50
|
+
ePhiData: {
|
|
51
|
+
ePhiTitle: 'ePhiTitle',
|
|
52
|
+
ePhiText: 'ePhiText',
|
|
53
|
+
ePhiStatus: true
|
|
54
|
+
}
|
|
48
55
|
});
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
4
4
|
import Tag from '@zohodesk/components/lib/Tag/Tag';
|
|
5
5
|
import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
6
|
-
import EmptySearch from '@zohodesk/svg/lib/
|
|
6
|
+
import EmptySearch from '@zohodesk/svg/lib/emptystate/version3/EmptySearch';
|
|
7
7
|
import ListItem from '@zohodesk/components/lib/ListItem/ListItem';
|
|
8
|
-
import Loader from '@zohodesk/svg/lib/
|
|
8
|
+
import Loader from '@zohodesk/svg/lib/Loader/Loader';
|
|
9
9
|
import DropDownSeparator from '@zohodesk/components/lib/DropDown/DropDownSeparator';
|
|
10
10
|
import CommonEmptyState from '../../../emptystate/CommonEmptyState/CommonEmptyState';
|
|
11
11
|
import ResponsiveDropBox from '@zohodesk/components/lib/ResponsiveDropBox/ResponsiveDropBox';
|
|
@@ -137,7 +137,8 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
137
137
|
getTextBoxChildren,
|
|
138
138
|
htmlId,
|
|
139
139
|
boxSize,
|
|
140
|
-
onSelectTag
|
|
140
|
+
onSelectTag,
|
|
141
|
+
clickableTag
|
|
141
142
|
} = this.props;
|
|
142
143
|
let {
|
|
143
144
|
showAll
|
|
@@ -170,7 +171,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
170
171
|
text: name,
|
|
171
172
|
onRemove: isReadOnly ? null : deleteTag.bind(this, name),
|
|
172
173
|
closeTitle: i18nKeys.deleteText,
|
|
173
|
-
palette: tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
174
|
+
palette: clickableTag ? 'defaultLink' : tagType === 'SYSTEM' ? 'primary' : 'default',
|
|
174
175
|
isReadOnly: isReadOnly,
|
|
175
176
|
onSelectTag: onSelectTag ? onSelectTag : undefined
|
|
176
177
|
})) : null;
|
|
@@ -210,7 +211,7 @@ export default class TagsMultiSelect extends React.Component {
|
|
|
210
211
|
tabletMode
|
|
211
212
|
} = _ref2;
|
|
212
213
|
return /*#__PURE__*/React.createElement(ResponsiveDropBox, {
|
|
213
|
-
isAnimate:
|
|
214
|
+
isAnimate: false,
|
|
214
215
|
isActive: isPopupReady,
|
|
215
216
|
isArrow: false,
|
|
216
217
|
getRef: getContainerRef,
|
|
@@ -318,7 +319,8 @@ TagsMultiSelect.propTypes = {
|
|
|
318
319
|
getTextBoxChildren: PropTypes.func,
|
|
319
320
|
htmlId: PropTypes.string,
|
|
320
321
|
boxSize: PropTypes.string,
|
|
321
|
-
onSelectTag: PropTypes.func
|
|
322
|
+
onSelectTag: PropTypes.func,
|
|
323
|
+
clickableTag: PropTypes.bool
|
|
322
324
|
};
|
|
323
325
|
TagsMultiSelect.defaultProps = {
|
|
324
326
|
className: '',
|
|
@@ -327,7 +329,8 @@ TagsMultiSelect.defaultProps = {
|
|
|
327
329
|
borderColor: 'default',
|
|
328
330
|
needBorder: true,
|
|
329
331
|
dataId: '',
|
|
330
|
-
boxSize: 'default'
|
|
332
|
+
boxSize: 'default',
|
|
333
|
+
clickableTag: false
|
|
331
334
|
};
|
|
332
335
|
|
|
333
336
|
if (false) {
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
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); }
|
|
2
2
|
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import {
|
|
5
|
+
import { Box } from '@zohodesk/components/lib/Layout';
|
|
6
6
|
import Label from '@zohodesk/components/lib/Label/Label';
|
|
7
7
|
import Popup from '@zohodesk/components/lib/Popup/Popup';
|
|
8
8
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
9
9
|
import TagsMultiSelect from '../TagsMultiSelect/TagsMultiSelect';
|
|
10
|
+
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
11
|
+
/**** props ****/
|
|
12
|
+
|
|
13
|
+
import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
|
|
14
|
+
import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
|
|
15
|
+
/**** css ****/
|
|
16
|
+
|
|
10
17
|
import fieldStyle from '../Fields.module.css';
|
|
11
18
|
import style from './TagsMultiSelectField.module.css';
|
|
12
19
|
|
|
@@ -36,7 +43,8 @@ const TagsMultiSelectField = props => {
|
|
|
36
43
|
getTextBoxChildren,
|
|
37
44
|
children,
|
|
38
45
|
ePhiData,
|
|
39
|
-
customProps
|
|
46
|
+
customProps,
|
|
47
|
+
clickableTag
|
|
40
48
|
} = props;
|
|
41
49
|
const {
|
|
42
50
|
LabelProps = {},
|
|
@@ -71,11 +79,6 @@ const TagsMultiSelectField = props => {
|
|
|
71
79
|
validationMessage,
|
|
72
80
|
options
|
|
73
81
|
} = fieldProperties;
|
|
74
|
-
let {
|
|
75
|
-
ePhiTitle = '',
|
|
76
|
-
ePhiText = '',
|
|
77
|
-
ePhiStatus = false
|
|
78
|
-
} = ePhiData;
|
|
79
82
|
options = options || [];
|
|
80
83
|
|
|
81
84
|
const handleKeyUp = event => {
|
|
@@ -173,6 +176,10 @@ const TagsMultiSelectField = props => {
|
|
|
173
176
|
changeSearchValue('');
|
|
174
177
|
};
|
|
175
178
|
|
|
179
|
+
const renderEnd = () => {
|
|
180
|
+
return children ? children : null;
|
|
181
|
+
};
|
|
182
|
+
|
|
176
183
|
useEffect(() => {
|
|
177
184
|
window.addEventListener('click', documentClick);
|
|
178
185
|
return () => {
|
|
@@ -180,12 +187,14 @@ const TagsMultiSelectField = props => {
|
|
|
180
187
|
};
|
|
181
188
|
}, []);
|
|
182
189
|
return /*#__PURE__*/React.createElement("div", {
|
|
183
|
-
className: `${
|
|
184
|
-
}, /*#__PURE__*/React.createElement(
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
190
|
+
className: `${isDisabled ? fieldStyle.disabled : isReadOnly ? fieldStyle.readonly : ''}`
|
|
191
|
+
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
192
|
+
ePhiData: ePhiData,
|
|
193
|
+
alignContainer: "baseline",
|
|
194
|
+
renderProps: {
|
|
195
|
+
end: renderEnd
|
|
196
|
+
}
|
|
197
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
189
198
|
text: labelName,
|
|
190
199
|
title: labelName,
|
|
191
200
|
id: id,
|
|
@@ -197,11 +206,7 @@ const TagsMultiSelectField = props => {
|
|
|
197
206
|
}, LabelProps)), selectedValueCount ? /*#__PURE__*/React.createElement(Box, {
|
|
198
207
|
dataId: `${dataId}_tagCount`,
|
|
199
208
|
className: style.count
|
|
200
|
-
}, `(${selectedValueCount})`) : null,
|
|
201
|
-
"data-title": ePhiTitle,
|
|
202
|
-
"data-id": `${dataId}_ePHI`,
|
|
203
|
-
className: fieldStyle.ePhiTag
|
|
204
|
-
}, ePhiText) : null, children ? children : null), /*#__PURE__*/React.createElement(TagsMultiSelect, _extends({
|
|
209
|
+
}, `(${selectedValueCount})`) : null), /*#__PURE__*/React.createElement(TagsMultiSelect, _extends({
|
|
205
210
|
addTag: handleAdd,
|
|
206
211
|
deleteTag: onDelete,
|
|
207
212
|
handleChange: handleChange,
|
|
@@ -232,7 +237,9 @@ const TagsMultiSelectField = props => {
|
|
|
232
237
|
htmlId: htmlId,
|
|
233
238
|
getTextBoxChildren: getTextBoxChildren,
|
|
234
239
|
className: containerClass
|
|
235
|
-
}, TagsMultiSelectProps
|
|
240
|
+
}, TagsMultiSelectProps, {
|
|
241
|
+
clickableTag: clickableTag
|
|
242
|
+
})), validationMessage && /*#__PURE__*/React.createElement(ValidationMessage, _extends({
|
|
236
243
|
text: validationMessage,
|
|
237
244
|
palette: validationPalette,
|
|
238
245
|
type: errorType,
|
|
@@ -252,7 +259,8 @@ TagsMultiSelectField.propTypes = {
|
|
|
252
259
|
value: PropTypes.string,
|
|
253
260
|
selectedValueCount: PropTypes.string,
|
|
254
261
|
validationMessage: PropTypes.string,
|
|
255
|
-
options: PropTypes.array
|
|
262
|
+
options: PropTypes.array,
|
|
263
|
+
clickableTag: PropTypes.bool
|
|
256
264
|
}),
|
|
257
265
|
styleProperties: PropTypes.shape({
|
|
258
266
|
labelSize: PropTypes.string,
|
|
@@ -284,16 +292,12 @@ TagsMultiSelectField.propTypes = {
|
|
|
284
292
|
position: PropTypes.string,
|
|
285
293
|
getContainerRef: PropTypes.func,
|
|
286
294
|
getTargetRef: PropTypes.func,
|
|
287
|
-
ePhiData: PropTypes.shape({
|
|
288
|
-
ePhiTitle: PropTypes.string,
|
|
289
|
-
ePhiText: PropTypes.string,
|
|
290
|
-
ePhiStatus: PropTypes.bool
|
|
291
|
-
}),
|
|
292
295
|
customProps: PropTypes.shape({
|
|
293
296
|
LabelProps: PropTypes.object,
|
|
294
297
|
TagsMultiSelectProps: PropTypes.object,
|
|
295
298
|
ValidationMessageProps: PropTypes.object
|
|
296
|
-
})
|
|
299
|
+
}),
|
|
300
|
+
...FieldCommonPropTypes()
|
|
297
301
|
};
|
|
298
302
|
TagsMultiSelectField.defaultProps = {
|
|
299
303
|
fieldProperties: {
|
|
@@ -309,8 +313,8 @@ TagsMultiSelectField.defaultProps = {
|
|
|
309
313
|
isNewNeeded: false,
|
|
310
314
|
i18nKeys: {},
|
|
311
315
|
numberOfDisplayedValues: '5',
|
|
312
|
-
|
|
313
|
-
|
|
316
|
+
customProps: {},
|
|
317
|
+
...FieldCommonDefaultProps()
|
|
314
318
|
};
|
|
315
319
|
|
|
316
320
|
if (false) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
@@ -9,9 +9,11 @@ import Label from '@zohodesk/components/lib/Label/Label';
|
|
|
9
9
|
import TextBoxIcon from '@zohodesk/components/lib/TextBoxIcon/TextBoxIcon';
|
|
10
10
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
11
|
import { getUniqueId } from '@zohodesk/components/lib/Provider/IdProvider';
|
|
12
|
-
|
|
12
|
+
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
13
|
+
/**** props ****/
|
|
13
14
|
|
|
14
|
-
import
|
|
15
|
+
import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
|
|
16
|
+
import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
|
|
15
17
|
/**** CSS ****/
|
|
16
18
|
|
|
17
19
|
import style from '../Fields.module.css';
|
|
@@ -82,7 +84,8 @@ export default class TextBoxField extends PureComponent {
|
|
|
82
84
|
onFocus,
|
|
83
85
|
ePhiData,
|
|
84
86
|
children,
|
|
85
|
-
customProps
|
|
87
|
+
customProps,
|
|
88
|
+
renderLabelProps
|
|
86
89
|
} = this.props;
|
|
87
90
|
const {
|
|
88
91
|
LabelProps = {},
|
|
@@ -90,17 +93,17 @@ export default class TextBoxField extends PureComponent {
|
|
|
90
93
|
ValidationMessageProps1 = {},
|
|
91
94
|
ValidationMessageProps2 = {}
|
|
92
95
|
} = customProps;
|
|
93
|
-
let {
|
|
94
|
-
ePhiTitle = '',
|
|
95
|
-
ePhiText = '',
|
|
96
|
-
ePhiStatus = false
|
|
97
|
-
} = ePhiData;
|
|
98
96
|
let uniqueId = htmlId ? htmlId : this.getNextId();
|
|
99
97
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
98
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''}`,
|
|
101
99
|
"data-title": isDisabled ? title : null
|
|
102
|
-
}, labelName && /*#__PURE__*/React.createElement(
|
|
103
|
-
|
|
100
|
+
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
101
|
+
infoText: infoText,
|
|
102
|
+
isLocked: isLocked,
|
|
103
|
+
lockedInfoText: lockedInfoText,
|
|
104
|
+
ePhiData: ePhiData,
|
|
105
|
+
dataId: dataId,
|
|
106
|
+
renderProps: renderLabelProps
|
|
104
107
|
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
105
108
|
text: labelName,
|
|
106
109
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
@@ -108,21 +111,7 @@ export default class TextBoxField extends PureComponent {
|
|
|
108
111
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
109
112
|
htmlFor: uniqueId,
|
|
110
113
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
111
|
-
}, LabelProps)),
|
|
112
|
-
name: "ZD-GN-info",
|
|
113
|
-
iconClass: style.infoIcon,
|
|
114
|
-
title: infoText,
|
|
115
|
-
size: "15"
|
|
116
|
-
}) : null, isLocked ? /*#__PURE__*/React.createElement(Icon, {
|
|
117
|
-
name: "ZD-GN-lock",
|
|
118
|
-
size: "13",
|
|
119
|
-
iconClass: style.lockIcon,
|
|
120
|
-
title: lockedInfoText
|
|
121
|
-
}) : null, ePhiStatus ? /*#__PURE__*/React.createElement("span", {
|
|
122
|
-
"data-title": ePhiTitle,
|
|
123
|
-
"data-id": `${dataId}_ePHI`,
|
|
124
|
-
className: style.ePhiTag
|
|
125
|
-
}, ePhiText) : null), /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
}, LabelProps))), /*#__PURE__*/React.createElement("div", {
|
|
126
115
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
127
116
|
}, /*#__PURE__*/React.createElement(TextBoxIcon, _extends({
|
|
128
117
|
htmlId: uniqueId,
|
|
@@ -163,16 +152,11 @@ export default class TextBoxField extends PureComponent {
|
|
|
163
152
|
}
|
|
164
153
|
TextBoxField.propTypes = {
|
|
165
154
|
borderColor: PropTypes.oneOf(['transparent', 'default']),
|
|
166
|
-
dataId: PropTypes.string,
|
|
167
155
|
errorType: PropTypes.oneOf(['primary', 'secondary']),
|
|
168
156
|
fieldSize: PropTypes.oneOf(['small', 'medium']),
|
|
169
157
|
getRef: PropTypes.func,
|
|
170
158
|
id: PropTypes.string,
|
|
171
|
-
infoText: PropTypes.string,
|
|
172
|
-
isDisabled: PropTypes.bool,
|
|
173
159
|
// isFocusOnLabelClick: PropTypes.bool,
|
|
174
|
-
isMandatory: PropTypes.bool,
|
|
175
|
-
isReadOnly: PropTypes.bool,
|
|
176
160
|
labelCustomClass: PropTypes.string,
|
|
177
161
|
labelName: PropTypes.string.isRequired,
|
|
178
162
|
labelPalette: PropTypes.string,
|
|
@@ -190,40 +174,31 @@ TextBoxField.propTypes = {
|
|
|
190
174
|
validationRuleMessage: PropTypes.string,
|
|
191
175
|
validationRulePalette: PropTypes.string,
|
|
192
176
|
value: PropTypes.string,
|
|
193
|
-
lockedInfoText: PropTypes.string,
|
|
194
|
-
isLocked: PropTypes.bool,
|
|
195
177
|
isClickable: PropTypes.bool,
|
|
196
178
|
needReadOnlyStyle: PropTypes.bool,
|
|
197
|
-
ePhiData: PropTypes.shape({
|
|
198
|
-
ePhiTitle: PropTypes.string,
|
|
199
|
-
ePhiText: PropTypes.string,
|
|
200
|
-
ePhiStatus: PropTypes.bool
|
|
201
|
-
}),
|
|
202
179
|
children: PropTypes.node,
|
|
203
180
|
customProps: PropTypes.shape({
|
|
204
181
|
LabelProps: PropTypes.object,
|
|
205
182
|
TextBoxIconProps: PropTypes.object,
|
|
206
183
|
ValidationMessageProps1: PropTypes.object,
|
|
207
184
|
ValidationMessageProps2: PropTypes.object
|
|
208
|
-
})
|
|
185
|
+
}),
|
|
186
|
+
...FieldCommonPropTypes()
|
|
209
187
|
};
|
|
210
188
|
TextBoxField.defaultProps = {
|
|
211
189
|
errorType: 'primary',
|
|
212
|
-
isMandatory: false,
|
|
213
190
|
textBoxSize: 'xmedium',
|
|
214
191
|
textBoxType: 'text',
|
|
215
192
|
textBoxVariant: 'primary',
|
|
216
193
|
borderColor: 'default',
|
|
217
|
-
isDisabled: false,
|
|
218
|
-
isReadOnly: false,
|
|
219
194
|
fieldSize: 'medium',
|
|
220
195
|
// isFocusOnLabelClick: true,
|
|
221
196
|
labelPalette: 'default',
|
|
222
197
|
labelCustomClass: '',
|
|
223
198
|
isClickable: false,
|
|
224
199
|
needReadOnlyStyle: true,
|
|
225
|
-
|
|
226
|
-
|
|
200
|
+
customProps: {},
|
|
201
|
+
...FieldCommonDefaultProps()
|
|
227
202
|
};
|
|
228
203
|
|
|
229
204
|
if (false) {
|
|
@@ -6,6 +6,21 @@ import Icon from '@zohodesk/icons/lib/Icon';
|
|
|
6
6
|
export default class TextBoxField__default extends Component {
|
|
7
7
|
constructor(props) {
|
|
8
8
|
super(props);
|
|
9
|
+
this.renderStart = this.renderStart.bind(this);
|
|
10
|
+
this.renderMiddle = this.renderMiddle.bind(this);
|
|
11
|
+
this.renderEnd = this.renderEnd.bind(this);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
renderStart() {
|
|
15
|
+
return 'Start';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
renderMiddle() {
|
|
19
|
+
return 'Middle';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
renderEnd() {
|
|
23
|
+
return 'End';
|
|
9
24
|
}
|
|
10
25
|
|
|
11
26
|
render() {
|
|
@@ -23,7 +38,19 @@ export default class TextBoxField__default extends Component {
|
|
|
23
38
|
labelName: "Contact Name",
|
|
24
39
|
textBoxSize: "xmedium",
|
|
25
40
|
textBoxVariant: "primary",
|
|
26
|
-
validationMessage: "Invalid Input"
|
|
41
|
+
validationMessage: "Invalid Input",
|
|
42
|
+
infoText: "infoText",
|
|
43
|
+
isLocked: true,
|
|
44
|
+
ePhiData: {
|
|
45
|
+
ePhiTitle: 'ePhiTitle',
|
|
46
|
+
ePhiText: 'ePhiText',
|
|
47
|
+
ePhiStatus: true
|
|
48
|
+
},
|
|
49
|
+
renderLabelProps: {
|
|
50
|
+
start: this.renderStart,
|
|
51
|
+
middle: this.renderMiddle,
|
|
52
|
+
end: this.renderEnd
|
|
53
|
+
}
|
|
27
54
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
28
55
|
align: "both",
|
|
29
56
|
style: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign
|
|
1
|
+
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); }
|
|
2
2
|
|
|
3
3
|
/**** Libraries ****/
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
@@ -6,12 +6,13 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
/**** Components ****/
|
|
7
7
|
|
|
8
8
|
import Label from '@zohodesk/components/lib/Label/Label';
|
|
9
|
-
import { Container, Box } from '@zohodesk/components/lib/Layout';
|
|
10
9
|
import ValidationMessage from '../ValidationMessage/ValidationMessage';
|
|
11
10
|
import TextEditorWrapper from '../TextEditorWrapper/TextEditorWrapper';
|
|
12
|
-
|
|
11
|
+
import FieldContainer from '../FieldContainer/FieldContainer';
|
|
12
|
+
/**** props ****/
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import { FieldCommonDefaultProps } from '../props/FieldCommonDefaultProps';
|
|
15
|
+
import { FieldCommonPropTypes } from '../props/FieldCommonPropTypes';
|
|
15
16
|
/** Css */
|
|
16
17
|
|
|
17
18
|
import style from '../Fields.module.css';
|
|
@@ -21,6 +22,7 @@ export default class TextEditorField extends PureComponent {
|
|
|
21
22
|
this.handleChange = this.handleChange.bind(this);
|
|
22
23
|
this.handleGetRef = this.handleGetRef.bind(this);
|
|
23
24
|
this.handleLabelClick = this.handleLabelClick.bind(this);
|
|
25
|
+
this.renderEnd = this.renderEnd.bind(this);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
handleChange(value) {
|
|
@@ -52,6 +54,13 @@ export default class TextEditorField extends PureComponent {
|
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
|
|
57
|
+
renderEnd() {
|
|
58
|
+
let {
|
|
59
|
+
children
|
|
60
|
+
} = this.props;
|
|
61
|
+
return children ? children : null;
|
|
62
|
+
}
|
|
63
|
+
|
|
55
64
|
render() {
|
|
56
65
|
let {
|
|
57
66
|
labelName,
|
|
@@ -102,18 +111,18 @@ export default class TextEditorField extends PureComponent {
|
|
|
102
111
|
TextEditorWrapperProps = {},
|
|
103
112
|
ValidationMessageProps = {}
|
|
104
113
|
} = customProps;
|
|
105
|
-
let {
|
|
106
|
-
ePhiTitle = '',
|
|
107
|
-
ePhiText = '',
|
|
108
|
-
ePhiStatus = false
|
|
109
|
-
} = ePhiData;
|
|
110
114
|
return /*#__PURE__*/React.createElement("div", {
|
|
111
115
|
className: `${style.container} ${isDisabled ? style.disabled : isReadOnly ? style.readonly : ''} ${className || ''}`
|
|
112
|
-
}, /*#__PURE__*/React.createElement(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
}, labelName && /*#__PURE__*/React.createElement(FieldContainer, {
|
|
117
|
+
infoText: infoText,
|
|
118
|
+
isLocked: isLocked,
|
|
119
|
+
lockedInfoText: lockedInfoText,
|
|
120
|
+
ePhiData: ePhiData,
|
|
121
|
+
dataId: dataId,
|
|
122
|
+
renderProps: {
|
|
123
|
+
end: this.renderEnd
|
|
124
|
+
}
|
|
125
|
+
}, /*#__PURE__*/React.createElement(Label, _extends({
|
|
117
126
|
text: labelName,
|
|
118
127
|
size: fieldSize === 'small' ? 'small' : 'medium',
|
|
119
128
|
htmlFor: !isReadOnly && !isDisabled ? id : undefined,
|
|
@@ -121,21 +130,7 @@ export default class TextEditorField extends PureComponent {
|
|
|
121
130
|
onClick: this.handleLabelClick,
|
|
122
131
|
customClass: `${style.fieldLabel} ${labelCustomClass} ${isMandatory ? style.labelMandatory : ''}`,
|
|
123
132
|
dataId: isDisabled ? `${dataId}_label_disabled` : isMandatory ? `${dataId}_label_mandatory` : `${dataId}_label`
|
|
124
|
-
}, LabelProps))),
|
|
125
|
-
name: "ZD-GN-info",
|
|
126
|
-
iconClass: style.infoIcon,
|
|
127
|
-
title: infoText,
|
|
128
|
-
size: "15"
|
|
129
|
-
}) : null, isLocked ? /*#__PURE__*/React.createElement(Icon, {
|
|
130
|
-
name: "ZD-GN-lock",
|
|
131
|
-
size: "13",
|
|
132
|
-
iconClass: style.lockIcon,
|
|
133
|
-
title: lockedInfoText
|
|
134
|
-
}) : null, ePhiStatus ? /*#__PURE__*/React.createElement("span", {
|
|
135
|
-
"data-title": ePhiTitle,
|
|
136
|
-
"data-id": `${dataId}_ePHI`,
|
|
137
|
-
className: style.ePhiTag
|
|
138
|
-
}, ePhiText) : null, children ? children : null), /*#__PURE__*/React.createElement("div", {
|
|
133
|
+
}, LabelProps))), /*#__PURE__*/React.createElement("div", {
|
|
139
134
|
className: `${style.fieldContainer} ${labelName ? style[`fieldMargin_${fieldSize}`] : ''}`
|
|
140
135
|
}, /*#__PURE__*/React.createElement(TextEditorWrapper, _extends({
|
|
141
136
|
needEditor: needEditor,
|
|
@@ -181,10 +176,7 @@ TextEditorField.propTypes = {
|
|
|
181
176
|
fieldSize: PropTypes.oneOf(['small', 'medium']),
|
|
182
177
|
getRef: PropTypes.func,
|
|
183
178
|
id: PropTypes.string,
|
|
184
|
-
isDisabled: PropTypes.bool,
|
|
185
179
|
isFocusOnLabelClick: PropTypes.bool,
|
|
186
|
-
isMandatory: PropTypes.bool,
|
|
187
|
-
isReadOnly: PropTypes.bool,
|
|
188
180
|
labelCustomClass: PropTypes.string,
|
|
189
181
|
labelName: PropTypes.string,
|
|
190
182
|
labelPalette: PropTypes.string,
|
|
@@ -196,9 +188,6 @@ TextEditorField.propTypes = {
|
|
|
196
188
|
validationMessage: PropTypes.string,
|
|
197
189
|
validationPalette: PropTypes.string,
|
|
198
190
|
value: PropTypes.string,
|
|
199
|
-
infoText: PropTypes.string,
|
|
200
|
-
isLocked: PropTypes.bool,
|
|
201
|
-
lockedInfoText: PropTypes.string,
|
|
202
191
|
errorType: PropTypes.string,
|
|
203
192
|
EDITORURL: PropTypes.string,
|
|
204
193
|
editorMode: PropTypes.string,
|
|
@@ -219,23 +208,17 @@ TextEditorField.propTypes = {
|
|
|
219
208
|
setInlineAttachmentInProgress: PropTypes.func,
|
|
220
209
|
handleEditorDropUpload: PropTypes.func,
|
|
221
210
|
children: PropTypes.node,
|
|
222
|
-
ePhiData: PropTypes.shape({
|
|
223
|
-
ePhiTitle: PropTypes.string,
|
|
224
|
-
ePhiText: PropTypes.string,
|
|
225
|
-
ePhiStatus: PropTypes.bool
|
|
226
|
-
}),
|
|
227
211
|
needInlineAttachment: PropTypes.bool,
|
|
228
212
|
customProps: PropTypes.shape({
|
|
229
213
|
LabelProps: PropTypes.object,
|
|
230
214
|
TextEditorWrapperProps: PropTypes.object,
|
|
231
215
|
ValidationMessageProps: PropTypes.object
|
|
232
|
-
})
|
|
216
|
+
}),
|
|
217
|
+
...FieldCommonPropTypes()
|
|
233
218
|
};
|
|
234
219
|
TextEditorField.defaultProps = {
|
|
235
220
|
errorType: 'primary',
|
|
236
221
|
needEditor: true,
|
|
237
|
-
isDisabled: false,
|
|
238
|
-
isReadOnly: false,
|
|
239
222
|
isFocusOnLabelClick: true,
|
|
240
223
|
fieldSize: 'medium',
|
|
241
224
|
textBoxSize: 'xsmall',
|
|
@@ -243,8 +226,8 @@ TextEditorField.defaultProps = {
|
|
|
243
226
|
labelPalette: 'default',
|
|
244
227
|
labelCustomClass: '',
|
|
245
228
|
className: '',
|
|
246
|
-
|
|
247
|
-
|
|
229
|
+
customProps: {},
|
|
230
|
+
...FieldCommonDefaultProps()
|
|
248
231
|
};
|
|
249
232
|
|
|
250
233
|
if (false) {
|