@rh-support/components 2.4.10-beta.6 → 2.5.1
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 +2 -0
- package/lib/esm/AlertMessage/AlertMessage.d.ts +2 -2
- package/lib/esm/AlertMessage/AlertMessage.d.ts.map +1 -1
- package/lib/esm/AlertMessage/AlertMessage.js +1 -1
- package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts +2 -1
- package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
- package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +2 -1
- package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
- package/lib/esm/CoverSpinner/CoverSpinner.d.ts +2 -1
- package/lib/esm/CoverSpinner/CoverSpinner.d.ts.map +1 -1
- package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts +2 -2
- package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
- package/lib/esm/CustomTextInput/CustomTextInput.d.ts +3 -1
- package/lib/esm/CustomTextInput/CustomTextInput.d.ts.map +1 -1
- package/lib/esm/CustomTextInput/CustomTextInput.js +4 -2
- package/lib/esm/DropDownList/AsyncDropDownList.d.ts +1 -1
- package/lib/esm/DropDownList/AsyncDropDownList.d.ts.map +1 -1
- package/lib/esm/DropDownList/DropDownList.d.ts +2 -1
- package/lib/esm/DropDownList/DropDownList.d.ts.map +1 -1
- package/lib/esm/DropDownList/DropDownList.js +10 -10
- package/lib/esm/DropDownList/DropdownWrapper.d.ts +1 -1
- package/lib/esm/DropDownList/DropdownWrapper.d.ts.map +1 -1
- package/lib/esm/DropDownList/DropdownWrapper.js +2 -2
- package/lib/esm/DropDownList/MultiSelectDropdownList.d.ts.map +1 -1
- package/lib/esm/DropDownList/SearchableList.d.ts +1 -1
- package/lib/esm/DropDownList/SearchableList.d.ts.map +1 -1
- package/lib/esm/DropDownList/SearchableList.js +6 -6
- package/lib/esm/DropDownList/SelectList.d.ts +1 -1
- package/lib/esm/DropDownList/SelectList.d.ts.map +1 -1
- package/lib/esm/DropDownList/SelectList.js +6 -6
- package/lib/esm/DropDownList/async.d.ts +1 -1
- package/lib/esm/DropDownList/async.d.ts.map +1 -1
- package/lib/esm/DropDownList/dropdownList.css +10 -5
- package/lib/esm/DropDownList/types.d.ts +6 -7
- package/lib/esm/DropDownList/types.d.ts.map +1 -1
- package/lib/esm/DropDownList/withMulti.d.ts +1 -1
- package/lib/esm/DropDownList/withMulti.d.ts.map +1 -1
- package/lib/esm/DropDownList/withMulti.js +1 -0
- package/lib/esm/ErrorBoundary/ErrorBoundary.d.ts +2 -1
- package/lib/esm/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/lib/esm/ErrorBoundary/ErrorBoundary.js +1 -1
- package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +2 -1
- package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
- package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.js +3 -4
- package/lib/esm/ErrorPages/Generic403.d.ts +2 -1
- package/lib/esm/ErrorPages/Generic403.d.ts.map +1 -1
- package/lib/esm/FeedbackForm/FeedbackForm.d.ts +2 -1
- package/lib/esm/FeedbackForm/FeedbackForm.d.ts.map +1 -1
- package/lib/esm/FeedbackForm/FeedbackForm.js +2 -2
- package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts +5 -4
- package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
- package/lib/esm/Functional/CaseContactsSelectorExternal.js +9 -8
- package/lib/esm/InlineEdit/InlineEdit.d.ts +2 -2
- package/lib/esm/InlineEdit/InlineEdit.d.ts.map +1 -1
- package/lib/esm/InlineEdit/InlineEdit.js +1 -1
- package/lib/esm/InlineEdit/NewInlineEdit.d.ts +2 -2
- package/lib/esm/InlineEdit/NewInlineEdit.d.ts.map +1 -1
- package/lib/esm/InlineEdit/NewInlineEdit.js +2 -2
- package/lib/esm/InlineEdit/inlineEdit.css +24 -1
- package/lib/esm/InlineEdit/newInlineEdit.css +5 -4
- package/lib/esm/LanguageSelector/LanguageSelector.d.ts +2 -1
- package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
- package/lib/esm/LanguageSelector/LanguageSelector.js +13 -3
- package/lib/esm/LanguageSelector/languageSelector.css +1 -1
- package/lib/esm/LoadingDots/LoadingDots.d.ts +3 -1
- package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
- package/lib/esm/LoadingDots/LoadingDots.js +2 -2
- package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts +2 -1
- package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
- package/lib/esm/LoginModal/LoginModal.d.ts +2 -1
- package/lib/esm/LoginModal/LoginModal.d.ts.map +1 -1
- package/lib/esm/LoginModal/LoginModal.js +1 -1
- package/lib/esm/MarkdownEditor/MarkdownEditor.d.ts +5 -1
- package/lib/esm/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
- package/lib/esm/MarkdownEditor/MarkdownEditor.js +272 -86
- package/lib/esm/MarkdownEditor/markdownEditor.css +113 -5
- package/lib/esm/MoreOrLess/MoreOrLess.d.ts +1 -1
- package/lib/esm/MoreOrLess/MoreOrLess.d.ts.map +1 -1
- package/lib/esm/PaginatedList/PaginatedList.d.ts +2 -1
- package/lib/esm/PaginatedList/PaginatedList.d.ts.map +1 -1
- package/lib/esm/PaginatedList/PaginatedList.js +9 -0
- package/lib/esm/PaginationCompact/PaginationCompact.d.ts +2 -1
- package/lib/esm/PaginationCompact/PaginationCompact.d.ts.map +1 -1
- package/lib/esm/PaginationCompact/PaginationCompact.js +4 -4
- package/lib/esm/PaginationCompact/paginationCompact.css +1 -1
- package/lib/esm/PhoneInput/CountryData.d.ts.map +1 -1
- package/lib/esm/PhoneInput/CountryData.js +3 -2
- package/lib/esm/PhoneInput/FlagSvgs.d.ts +3 -0
- package/lib/esm/PhoneInput/FlagSvgs.d.ts.map +1 -0
- package/lib/esm/PhoneInput/FlagSvgs.js +2018 -0
- package/lib/esm/PhoneInput/PhoneInput.d.ts +14 -1
- package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -1
- package/lib/esm/PhoneInput/PhoneInput.js +121 -120
- package/lib/esm/PhoneInput/PhoneInput.scss +15 -732
- package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +2 -1
- package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
- package/lib/esm/ProgressBar/CircularProgressBar/Path.d.ts +1 -1
- package/lib/esm/ProgressBar/CircularProgressBar/Path.d.ts.map +1 -1
- package/lib/esm/ProgressBar/CircularProgressBar/types.d.ts +3 -4
- package/lib/esm/ProgressBar/CircularProgressBar/types.d.ts.map +1 -1
- package/lib/esm/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/esm/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/lib/esm/PromisifyModal/PromisifyModal.d.ts +6 -9
- package/lib/esm/PromisifyModal/PromisifyModal.d.ts.map +1 -1
- package/lib/esm/PromisifyModal/PromisifyModal.js +21 -18
- package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +2 -1
- package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
- package/lib/esm/SubscriptionAbuse/const.d.ts +2 -1
- package/lib/esm/SubscriptionAbuse/const.d.ts.map +1 -1
- package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts +2 -1
- package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
- package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts +2 -1
- package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
- package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.js +14 -14
- package/lib/esm/Table/PFTable.d.ts +4 -3
- package/lib/esm/Table/PFTable.d.ts.map +1 -1
- package/lib/esm/Table/PFTable.js +6 -6
- package/lib/{cjs/Table/Table.d.ts → esm/Table/TableComponent.d.ts} +2 -2
- package/lib/esm/Table/TableComponent.d.ts.map +1 -0
- package/lib/esm/Table/{Table.js → TableComponent.js} +1 -1
- package/lib/esm/Table/TablePagination.d.ts +2 -1
- package/lib/esm/Table/TablePagination.d.ts.map +1 -1
- package/lib/esm/Table/TablePagination.js +4 -2
- package/lib/esm/Table/index.d.ts +1 -2
- package/lib/esm/Table/index.d.ts.map +1 -1
- package/lib/esm/Table/index.js +1 -2
- package/lib/esm/TagsSelector/TagsSelector.d.ts +14 -0
- package/lib/esm/TagsSelector/TagsSelector.d.ts.map +1 -0
- package/lib/esm/TagsSelector/TagsSelector.js +74 -0
- package/lib/esm/TagsSelector/index.d.ts +2 -0
- package/lib/esm/TagsSelector/index.d.ts.map +1 -0
- package/lib/esm/TagsSelector/index.js +1 -0
- package/lib/esm/TagsSelector/tagSelector.css +15 -0
- package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts +2 -1
- package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
- package/lib/esm/TermsAndConditions/AcceptTermsModal.js +7 -6
- package/lib/esm/TextAreaAutosize/TextAreaAutosize.d.ts +1 -1
- package/lib/esm/TextAreaAutosize/TextAreaAutosize.d.ts.map +1 -1
- package/lib/esm/TextAreaResizable/TextAreaResizable.d.ts +1 -1
- package/lib/esm/TextAreaResizable/TextAreaResizable.d.ts.map +1 -1
- package/lib/esm/TextAreaResizable/TextAreaResizable.js +1 -1
- package/lib/esm/ToastNotification/ToastNotification.d.ts +1 -1
- package/lib/esm/ToastNotification/ToastNotification.d.ts.map +1 -1
- package/lib/esm/ToastNotification/ToastNotification.js +13 -5
- package/lib/esm/ToastNotification/toastNotification.css +1 -1
- package/lib/esm/TopContentSearch/TopContentSearch.d.ts +5 -1
- package/lib/esm/TopContentSearch/TopContentSearch.d.ts.map +1 -1
- package/lib/esm/TopContentSearch/TopContentSearch.js +20 -23
- package/lib/esm/ValueChangedIcon/ValueChangedIcon.d.ts +1 -1
- package/lib/esm/ValueChangedIcon/ValueChangedIcon.d.ts.map +1 -1
- package/lib/esm/helperFunctions/errorMessage.js +2 -2
- package/lib/esm/helperFunctions/errorMessage.scss +1 -1
- package/lib/esm/hooks/index.d.ts +4 -0
- package/lib/esm/hooks/index.d.ts.map +1 -1
- package/lib/esm/hooks/index.js +4 -0
- package/lib/esm/hooks/useBreakpoint.d.ts +2 -2
- package/lib/esm/hooks/useBreakpoint.d.ts.map +1 -1
- package/lib/esm/hooks/useBreakpoint.js +2 -0
- package/lib/esm/hooks/useCopyToClipboard.d.ts.map +1 -1
- package/lib/esm/hooks/useCopyToClipboard.js +1 -0
- package/lib/esm/hooks/useFetch.js +1 -2
- package/lib/esm/hooks/useLocalStorage.d.ts +2 -2
- package/lib/esm/hooks/useLocalStorage.d.ts.map +1 -1
- package/lib/esm/hooks/useSearchDocument.d.ts +7 -0
- package/lib/esm/hooks/useSearchDocument.d.ts.map +1 -0
- package/lib/esm/hooks/useSearchDocument.js +42 -0
- package/lib/esm/hooks/useSelectKeyboardNavigator.d.ts +13 -0
- package/lib/esm/hooks/useSelectKeyboardNavigator.d.ts.map +1 -0
- package/lib/esm/hooks/useSelectKeyboardNavigator.js +54 -0
- package/lib/esm/hooks/useSessionStorage.d.ts +5 -0
- package/lib/esm/hooks/useSessionStorage.d.ts.map +1 -0
- package/lib/esm/hooks/useSessionStorage.js +30 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/package.json +40 -46
- package/lib/cjs/AlertMessage/AlertMessage.css +0 -9
- package/lib/cjs/AlertMessage/AlertMessage.d.ts +0 -24
- package/lib/cjs/AlertMessage/AlertMessage.d.ts.map +0 -1
- package/lib/cjs/AlertMessage/AlertMessage.js +0 -30
- package/lib/cjs/AlertMessage/index.d.ts +0 -2
- package/lib/cjs/AlertMessage/index.d.ts.map +0 -1
- package/lib/cjs/AlertMessage/index.js +0 -14
- package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -6
- package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationContext.js +0 -53
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -29
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +0 -28
- package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +0 -36
- package/lib/cjs/ConfirmationModal/index.d.ts +0 -3
- package/lib/cjs/ConfirmationModal/index.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/index.js +0 -14
- package/lib/cjs/CoverSpinner/CoverSpinner.css +0 -16
- package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -3
- package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +0 -1
- package/lib/cjs/CoverSpinner/CoverSpinner.js +0 -13
- package/lib/cjs/CoverSpinner/index.d.ts +0 -2
- package/lib/cjs/CoverSpinner/index.d.ts.map +0 -1
- package/lib/cjs/CoverSpinner/index.js +0 -13
- package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts +0 -15
- package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +0 -1
- package/lib/cjs/CustomContentLoader/CustomContentLoader.js +0 -62
- package/lib/cjs/CustomContentLoader/index.d.ts +0 -2
- package/lib/cjs/CustomContentLoader/index.d.ts.map +0 -1
- package/lib/cjs/CustomContentLoader/index.js +0 -13
- package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -12
- package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +0 -1
- package/lib/cjs/CustomTextInput/CustomTextInput.js +0 -48
- package/lib/cjs/CustomTextInput/index.d.ts +0 -2
- package/lib/cjs/CustomTextInput/index.d.ts.map +0 -1
- package/lib/cjs/CustomTextInput/index.js +0 -13
- package/lib/cjs/DropDownList/AsyncDropDownList.d.ts +0 -6
- package/lib/cjs/DropDownList/AsyncDropDownList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/AsyncDropDownList.js +0 -10
- package/lib/cjs/DropDownList/DropDownList.d.ts +0 -8
- package/lib/cjs/DropDownList/DropDownList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/DropDownList.js +0 -141
- package/lib/cjs/DropDownList/DropdownWrapper.d.ts +0 -16
- package/lib/cjs/DropDownList/DropdownWrapper.d.ts.map +0 -1
- package/lib/cjs/DropDownList/DropdownWrapper.js +0 -25
- package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts +0 -4
- package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/MultiSelectDropdownList.js +0 -7
- package/lib/cjs/DropDownList/Readme.md +0 -114
- package/lib/cjs/DropDownList/SearchableList.d.ts +0 -14
- package/lib/cjs/DropDownList/SearchableList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/SearchableList.js +0 -104
- package/lib/cjs/DropDownList/SelectList.d.ts +0 -11
- package/lib/cjs/DropDownList/SelectList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/SelectList.js +0 -41
- package/lib/cjs/DropDownList/async.d.ts +0 -9
- package/lib/cjs/DropDownList/async.d.ts.map +0 -1
- package/lib/cjs/DropDownList/async.js +0 -138
- package/lib/cjs/DropDownList/dropdownList.css +0 -54
- package/lib/cjs/DropDownList/dropdownUtils.d.ts +0 -5
- package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +0 -1
- package/lib/cjs/DropDownList/dropdownUtils.js +0 -29
- package/lib/cjs/DropDownList/index.d.ts +0 -4
- package/lib/cjs/DropDownList/index.d.ts.map +0 -1
- package/lib/cjs/DropDownList/index.js +0 -15
- package/lib/cjs/DropDownList/types.d.ts +0 -54
- package/lib/cjs/DropDownList/types.d.ts.map +0 -1
- package/lib/cjs/DropDownList/types.js +0 -2
- package/lib/cjs/DropDownList/withMulti.d.ts +0 -5
- package/lib/cjs/DropDownList/withMulti.d.ts.map +0 -1
- package/lib/cjs/DropDownList/withMulti.js +0 -69
- package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts +0 -36
- package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
- package/lib/cjs/ErrorBoundary/ErrorBoundary.js +0 -62
- package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -14
- package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +0 -1
- package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +0 -40
- package/lib/cjs/ErrorBoundary/index.d.ts +0 -2
- package/lib/cjs/ErrorBoundary/index.d.ts.map +0 -1
- package/lib/cjs/ErrorBoundary/index.js +0 -13
- package/lib/cjs/ErrorPages/Generic403.d.ts +0 -2
- package/lib/cjs/ErrorPages/Generic403.d.ts.map +0 -1
- package/lib/cjs/ErrorPages/Generic403.js +0 -14
- package/lib/cjs/ErrorPages/index.d.ts +0 -2
- package/lib/cjs/ErrorPages/index.d.ts.map +0 -1
- package/lib/cjs/ErrorPages/index.js +0 -13
- package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -11
- package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +0 -1
- package/lib/cjs/FeedbackForm/FeedbackForm.js +0 -140
- package/lib/cjs/FeedbackForm/index.d.ts +0 -2
- package/lib/cjs/FeedbackForm/index.d.ts.map +0 -1
- package/lib/cjs/FeedbackForm/index.js +0 -13
- package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts +0 -30
- package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +0 -1
- package/lib/cjs/Functional/CaseContactsSelectorExternal.js +0 -223
- package/lib/cjs/Functional/index.d.ts +0 -2
- package/lib/cjs/Functional/index.d.ts.map +0 -1
- package/lib/cjs/Functional/index.js +0 -13
- package/lib/cjs/InlineEdit/InlineEdit.d.ts +0 -37
- package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +0 -1
- package/lib/cjs/InlineEdit/InlineEdit.js +0 -169
- package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +0 -41
- package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +0 -1
- package/lib/cjs/InlineEdit/NewInlineEdit.js +0 -178
- package/lib/cjs/InlineEdit/index.d.ts +0 -3
- package/lib/cjs/InlineEdit/index.d.ts.map +0 -1
- package/lib/cjs/InlineEdit/index.js +0 -14
- package/lib/cjs/InlineEdit/inlineEdit.css +0 -29
- package/lib/cjs/InlineEdit/newInlineEdit.css +0 -44
- package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -25
- package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +0 -1
- package/lib/cjs/LanguageSelector/LanguageSelector.js +0 -61
- package/lib/cjs/LanguageSelector/index.d.ts +0 -2
- package/lib/cjs/LanguageSelector/index.d.ts.map +0 -1
- package/lib/cjs/LanguageSelector/index.js +0 -13
- package/lib/cjs/LanguageSelector/languageSelector.css +0 -5
- package/lib/cjs/LoadingDots/LoadingDots.css +0 -33
- package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -11
- package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +0 -1
- package/lib/cjs/LoadingDots/LoadingDots.js +0 -25
- package/lib/cjs/LoadingDots/index.d.ts +0 -2
- package/lib/cjs/LoadingDots/index.d.ts.map +0 -1
- package/lib/cjs/LoadingDots/index.js +0 -14
- package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -14
- package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +0 -1
- package/lib/cjs/LoadingIndicator/LoadingIndicator.js +0 -25
- package/lib/cjs/LoadingIndicator/index.d.ts +0 -2
- package/lib/cjs/LoadingIndicator/index.d.ts.map +0 -1
- package/lib/cjs/LoadingIndicator/index.js +0 -13
- package/lib/cjs/LoadingIndicator/loadingIndicator.css +0 -79
- package/lib/cjs/LoginModal/LoginModal.d.ts +0 -14
- package/lib/cjs/LoginModal/LoginModal.d.ts.map +0 -1
- package/lib/cjs/LoginModal/LoginModal.js +0 -21
- package/lib/cjs/LoginModal/index.d.ts +0 -2
- package/lib/cjs/LoginModal/index.d.ts.map +0 -1
- package/lib/cjs/LoginModal/index.js +0 -13
- package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts +0 -45
- package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
- package/lib/cjs/MarkdownEditor/MarkdownEditor.js +0 -437
- package/lib/cjs/MarkdownEditor/index.d.ts +0 -2
- package/lib/cjs/MarkdownEditor/index.d.ts.map +0 -1
- package/lib/cjs/MarkdownEditor/index.js +0 -13
- package/lib/cjs/MarkdownEditor/markdownEditor.css +0 -111
- package/lib/cjs/MoreOrLess/MoreOrLess.d.ts +0 -13
- package/lib/cjs/MoreOrLess/MoreOrLess.d.ts.map +0 -1
- package/lib/cjs/MoreOrLess/MoreOrLess.js +0 -71
- package/lib/cjs/MoreOrLess/index.d.ts +0 -2
- package/lib/cjs/MoreOrLess/index.d.ts.map +0 -1
- package/lib/cjs/MoreOrLess/index.js +0 -13
- package/lib/cjs/PaginatedList/PaginatedList.d.ts +0 -18
- package/lib/cjs/PaginatedList/PaginatedList.d.ts.map +0 -1
- package/lib/cjs/PaginatedList/PaginatedList.js +0 -63
- package/lib/cjs/PaginatedList/index.d.ts +0 -2
- package/lib/cjs/PaginatedList/index.d.ts.map +0 -1
- package/lib/cjs/PaginatedList/index.js +0 -13
- package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -9
- package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +0 -1
- package/lib/cjs/PaginationCompact/PaginationCompact.js +0 -63
- package/lib/cjs/PaginationCompact/index.d.ts +0 -2
- package/lib/cjs/PaginationCompact/index.d.ts.map +0 -1
- package/lib/cjs/PaginationCompact/index.js +0 -13
- package/lib/cjs/PaginationCompact/paginationCompact.css +0 -5
- package/lib/cjs/PhoneInput/CountryData.d.ts +0 -3
- package/lib/cjs/PhoneInput/CountryData.d.ts.map +0 -1
- package/lib/cjs/PhoneInput/CountryData.js +0 -583
- package/lib/cjs/PhoneInput/PhoneInput.d.ts +0 -19
- package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +0 -1
- package/lib/cjs/PhoneInput/PhoneInput.js +0 -286
- package/lib/cjs/PhoneInput/PhoneInput.scss +0 -753
- package/lib/cjs/PhoneInput/flags.png +0 -0
- package/lib/cjs/PhoneInput/index.d.ts +0 -2
- package/lib/cjs/PhoneInput/index.d.ts.map +0 -1
- package/lib/cjs/PhoneInput/index.js +0 -13
- package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -8
- package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +0 -68
- package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts +0 -12
- package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +0 -39
- package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts +0 -6
- package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/constants.js +0 -8
- package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts +0 -2
- package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/index.js +0 -13
- package/lib/cjs/ProgressBar/CircularProgressBar/styles.css +0 -60
- package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts +0 -32
- package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/types.js +0 -2
- package/lib/cjs/ProgressBar/ProgressBar.d.ts +0 -15
- package/lib/cjs/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/ProgressBar.js +0 -36
- package/lib/cjs/ProgressBar/index.d.ts +0 -3
- package/lib/cjs/ProgressBar/index.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/index.js +0 -14
- package/lib/cjs/PromisifyModal/PromisifyModal.d.ts +0 -18
- package/lib/cjs/PromisifyModal/PromisifyModal.d.ts.map +0 -1
- package/lib/cjs/PromisifyModal/PromisifyModal.js +0 -40
- package/lib/cjs/PromisifyModal/index.d.ts +0 -2
- package/lib/cjs/PromisifyModal/index.d.ts.map +0 -1
- package/lib/cjs/PromisifyModal/index.js +0 -13
- package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -7
- package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +0 -1
- package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +0 -20
- package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -4
- package/lib/cjs/SubscriptionAbuse/const.d.ts.map +0 -1
- package/lib/cjs/SubscriptionAbuse/const.js +0 -15
- package/lib/cjs/SubscriptionAbuse/index.d.ts +0 -3
- package/lib/cjs/SubscriptionAbuse/index.d.ts.map +0 -1
- package/lib/cjs/SubscriptionAbuse/index.js +0 -14
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -11
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +0 -1
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +0 -44
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -10
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +0 -1
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +0 -178
- package/lib/cjs/SupportFeedbackForm/index.d.ts +0 -3
- package/lib/cjs/SupportFeedbackForm/index.d.ts.map +0 -1
- package/lib/cjs/SupportFeedbackForm/index.js +0 -14
- package/lib/cjs/Table/PFTable.d.ts +0 -39
- package/lib/cjs/Table/PFTable.d.ts.map +0 -1
- package/lib/cjs/Table/PFTable.js +0 -204
- package/lib/cjs/Table/README.md +0 -65
- package/lib/cjs/Table/Table.d.ts.map +0 -1
- package/lib/cjs/Table/Table.js +0 -38
- package/lib/cjs/Table/TableColumnSelector.d.ts +0 -7
- package/lib/cjs/Table/TableColumnSelector.d.ts.map +0 -1
- package/lib/cjs/Table/TableColumnSelector.js +0 -34
- package/lib/cjs/Table/TablePagination.d.ts +0 -18
- package/lib/cjs/Table/TablePagination.d.ts.map +0 -1
- package/lib/cjs/Table/TablePagination.js +0 -44
- package/lib/cjs/Table/TableProvider.d.ts +0 -15
- package/lib/cjs/Table/TableProvider.d.ts.map +0 -1
- package/lib/cjs/Table/TableProvider.js +0 -25
- package/lib/cjs/Table/columnSelector.css +0 -37
- package/lib/cjs/Table/index.d.ts +0 -5
- package/lib/cjs/Table/index.d.ts.map +0 -1
- package/lib/cjs/Table/index.js +0 -16
- package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -14
- package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +0 -1
- package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +0 -116
- package/lib/cjs/TermsAndConditions/index.d.ts +0 -2
- package/lib/cjs/TermsAndConditions/index.d.ts.map +0 -1
- package/lib/cjs/TermsAndConditions/index.js +0 -13
- package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts +0 -8
- package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts.map +0 -1
- package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +0 -136
- package/lib/cjs/TextAreaAutosize/index.d.ts +0 -2
- package/lib/cjs/TextAreaAutosize/index.d.ts.map +0 -1
- package/lib/cjs/TextAreaAutosize/index.js +0 -13
- package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts +0 -20
- package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts.map +0 -1
- package/lib/cjs/TextAreaResizable/TextAreaResizable.js +0 -56
- package/lib/cjs/TextAreaResizable/index.d.ts +0 -2
- package/lib/cjs/TextAreaResizable/index.d.ts.map +0 -1
- package/lib/cjs/TextAreaResizable/index.js +0 -13
- package/lib/cjs/ToastNotification/ToastNotification.d.ts +0 -28
- package/lib/cjs/ToastNotification/ToastNotification.d.ts.map +0 -1
- package/lib/cjs/ToastNotification/ToastNotification.js +0 -63
- package/lib/cjs/ToastNotification/index.d.ts +0 -2
- package/lib/cjs/ToastNotification/index.d.ts.map +0 -1
- package/lib/cjs/ToastNotification/index.js +0 -13
- package/lib/cjs/ToastNotification/toastNotification.css +0 -22
- package/lib/cjs/TopContentSearch/TopContentSearch.d.ts +0 -14
- package/lib/cjs/TopContentSearch/TopContentSearch.d.ts.map +0 -1
- package/lib/cjs/TopContentSearch/TopContentSearch.js +0 -138
- package/lib/cjs/TopContentSearch/index.d.ts +0 -2
- package/lib/cjs/TopContentSearch/index.d.ts.map +0 -1
- package/lib/cjs/TopContentSearch/index.js +0 -13
- package/lib/cjs/TopContentSearch/topContentSearch.scss +0 -22
- package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts +0 -14
- package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts.map +0 -1
- package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +0 -76
- package/lib/cjs/ValueChangedIcon/index.d.ts +0 -2
- package/lib/cjs/ValueChangedIcon/index.d.ts.map +0 -1
- package/lib/cjs/ValueChangedIcon/index.js +0 -13
- package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -12
- package/lib/cjs/helperFunctions/errorMessage.d.ts.map +0 -1
- package/lib/cjs/helperFunctions/errorMessage.js +0 -95
- package/lib/cjs/helperFunctions/errorMessage.scss +0 -3
- package/lib/cjs/helperFunctions/index.d.ts +0 -2
- package/lib/cjs/helperFunctions/index.d.ts.map +0 -1
- package/lib/cjs/helperFunctions/index.js +0 -13
- package/lib/cjs/hooks/index.d.ts +0 -14
- package/lib/cjs/hooks/index.d.ts.map +0 -1
- package/lib/cjs/hooks/index.js +0 -25
- package/lib/cjs/hooks/useBreakpoint.d.ts +0 -12
- package/lib/cjs/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/cjs/hooks/useBreakpoint.js +0 -86
- package/lib/cjs/hooks/useCopyToClipboard.d.ts +0 -6
- package/lib/cjs/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/lib/cjs/hooks/useCopyToClipboard.js +0 -39
- package/lib/cjs/hooks/useDebounce.d.ts +0 -9
- package/lib/cjs/hooks/useDebounce.d.ts.map +0 -1
- package/lib/cjs/hooks/useDebounce.js +0 -40
- package/lib/cjs/hooks/useFetch.d.ts +0 -20
- package/lib/cjs/hooks/useFetch.d.ts.map +0 -1
- package/lib/cjs/hooks/useFetch.js +0 -71
- package/lib/cjs/hooks/useForceUpdate.d.ts +0 -18
- package/lib/cjs/hooks/useForceUpdate.d.ts.map +0 -1
- package/lib/cjs/hooks/useForceUpdate.js +0 -28
- package/lib/cjs/hooks/useForkRef.d.ts +0 -2
- package/lib/cjs/hooks/useForkRef.d.ts.map +0 -1
- package/lib/cjs/hooks/useForkRef.js +0 -29
- package/lib/cjs/hooks/useIsMounted.d.ts +0 -3
- package/lib/cjs/hooks/useIsMounted.d.ts.map +0 -1
- package/lib/cjs/hooks/useIsMounted.js +0 -18
- package/lib/cjs/hooks/useLRUCache.d.ts +0 -8
- package/lib/cjs/hooks/useLRUCache.d.ts.map +0 -1
- package/lib/cjs/hooks/useLRUCache.js +0 -28
- package/lib/cjs/hooks/useLocalStorage.d.ts +0 -5
- package/lib/cjs/hooks/useLocalStorage.d.ts.map +0 -1
- package/lib/cjs/hooks/useLocalStorage.js +0 -39
- package/lib/cjs/hooks/useOnScreen.d.ts +0 -2
- package/lib/cjs/hooks/useOnScreen.d.ts.map +0 -1
- package/lib/cjs/hooks/useOnScreen.js +0 -18
- package/lib/cjs/hooks/usePolling.d.ts +0 -2
- package/lib/cjs/hooks/usePolling.d.ts.map +0 -1
- package/lib/cjs/hooks/usePolling.js +0 -19
- package/lib/cjs/hooks/usePrevious.d.ts +0 -2
- package/lib/cjs/hooks/usePrevious.d.ts.map +0 -1
- package/lib/cjs/hooks/usePrevious.js +0 -12
- package/lib/cjs/hooks/useTitle.d.ts +0 -2
- package/lib/cjs/hooks/useTitle.d.ts.map +0 -1
- package/lib/cjs/hooks/useTitle.js +0 -14
- package/lib/cjs/hooks/useUndo.d.ts +0 -22
- package/lib/cjs/hooks/useUndo.d.ts.map +0 -1
- package/lib/cjs/hooks/useUndo.js +0 -76
- package/lib/cjs/index.d.ts +0 -34
- package/lib/cjs/index.d.ts.map +0 -1
- package/lib/cjs/index.js +0 -45
- package/lib/esm/PhoneInput/flags.png +0 -0
- package/lib/esm/Table/Table.d.ts +0 -11
- package/lib/esm/Table/Table.d.ts.map +0 -1
- package/lib/esm/Table/TableColumnSelector.d.ts +0 -7
- package/lib/esm/Table/TableColumnSelector.d.ts.map +0 -1
- package/lib/esm/Table/TableColumnSelector.js +0 -27
- package/lib/esm/Table/columnSelector.css +0 -37
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32
|
-
};
|
|
33
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.InlineEdit = void 0;
|
|
35
|
-
require("./inlineEdit.css");
|
|
36
|
-
const pencil_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/pencil-alt-icon"));
|
|
37
|
-
const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
38
|
-
const react_1 = __importStar(require("react"));
|
|
39
|
-
const react_i18next_1 = require("react-i18next");
|
|
40
|
-
const defaultProps = {
|
|
41
|
-
allowInlineEdit: false,
|
|
42
|
-
formClassName: '',
|
|
43
|
-
formId: '',
|
|
44
|
-
dataTrackingId: '',
|
|
45
|
-
usePreformattedTag: false,
|
|
46
|
-
hideSaveCancel: false,
|
|
47
|
-
saveLabel: 'Save',
|
|
48
|
-
cancelLabel: 'Cancel',
|
|
49
|
-
cancelOnToggle: false,
|
|
50
|
-
loadingIndicator: '',
|
|
51
|
-
initialIsEditing: false,
|
|
52
|
-
collapseOnBlur: false,
|
|
53
|
-
saveOnBlur: false,
|
|
54
|
-
cancelOnBlur: false,
|
|
55
|
-
saveDisabled: false,
|
|
56
|
-
hideLabel: false,
|
|
57
|
-
isSpaceAllowed: true,
|
|
58
|
-
};
|
|
59
|
-
function InlineEdit(props) {
|
|
60
|
-
var _a;
|
|
61
|
-
const [isEditing, setIsEditing] = react_1.useState(props.initialIsEditing);
|
|
62
|
-
// editingTrueOnStart is a state to track if inlineEdit component is open on start, we don't want to focus
|
|
63
|
-
// on input/textareat in this situation as we may have other form elements on page that we want to focus
|
|
64
|
-
const [canAutoSetFocus, setCanAutoSfocus] = react_1.useState(!props.initialIsEditing);
|
|
65
|
-
const onEditClicked = (e) => {
|
|
66
|
-
setCanAutoSfocus(true);
|
|
67
|
-
e.preventDefault();
|
|
68
|
-
props.cancelOnToggle && isEditing && props.onCancel && props.onCancel();
|
|
69
|
-
setIsEditing(!isEditing);
|
|
70
|
-
};
|
|
71
|
-
// To Render edit button
|
|
72
|
-
const renderEditButton = () => {
|
|
73
|
-
if (!props.allowInlineEdit) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
return (react_1.default.createElement("button", { className: `btn btn-link btn-app btn-edit ${props.isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-label": "Edit", onClick: onEditClicked },
|
|
77
|
-
react_1.default.createElement(pencil_alt_icon_1.default, null)));
|
|
78
|
-
};
|
|
79
|
-
const onBlurChild = () => {
|
|
80
|
-
props.collapseOnBlur && setIsEditing(!isEditing);
|
|
81
|
-
props.saveOnBlur && !props.saveDisabled && props.onSave && props.onSave();
|
|
82
|
-
props.cancelOnBlur && props.onCancel && props.onCancel();
|
|
83
|
-
};
|
|
84
|
-
const onCancelClicked = () => {
|
|
85
|
-
props.onCancel && props.onCancel();
|
|
86
|
-
setIsEditing(false);
|
|
87
|
-
};
|
|
88
|
-
const onSave = () => __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
try {
|
|
90
|
-
props.onSave && (yield props.onSave());
|
|
91
|
-
setIsEditing(false);
|
|
92
|
-
}
|
|
93
|
-
catch (e) {
|
|
94
|
-
// we will keep the user in the editing state. so nothing to do here
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
const onSaveClicked = () => __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
if (props.saveDisabled)
|
|
99
|
-
return;
|
|
100
|
-
yield onSave();
|
|
101
|
-
});
|
|
102
|
-
// Disables button if isSpaceAllowed is False and Input has Spaces
|
|
103
|
-
const diabledCheckForSpaceAllowed = !props.isSpaceAllowed && isEmpty_1.default((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
|
|
104
|
-
const handleKeyDown = (e) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
-
// Cancel on pressing esc
|
|
106
|
-
if (props.allowInlineEdit && isEditing && e.keyCode === 27) {
|
|
107
|
-
props.onCancel && props.onCancel();
|
|
108
|
-
setIsEditing(false);
|
|
109
|
-
}
|
|
110
|
-
// Save on pressing enter
|
|
111
|
-
else if (!props.hideSaveCancel &&
|
|
112
|
-
props.allowInlineEdit &&
|
|
113
|
-
isEditing &&
|
|
114
|
-
!diabledCheckForSpaceAllowed &&
|
|
115
|
-
!props.saveDisabled &&
|
|
116
|
-
e.keyCode === 13) {
|
|
117
|
-
yield onSave();
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
const renderSaveCancel = () => !props.hideSaveCancel &&
|
|
121
|
-
props.allowInlineEdit &&
|
|
122
|
-
isEditing && (react_1.default.createElement("span", { className: `edit-actions ${props.isExportingPDF ? 'hide-in-pdf' : ''}` },
|
|
123
|
-
props.loadingIndicator && react_1.default.createElement("span", null, props.loadingIndicator),
|
|
124
|
-
react_1.default.createElement("button", { "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-save` : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: diabledCheckForSpaceAllowed || props.saveDisabled },
|
|
125
|
-
react_1.default.createElement(react_i18next_1.Trans, null, props.saveLabel)),
|
|
126
|
-
react_1.default.createElement("button", { type: "button", "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-cancel` : null, className: "btn btn-app btn-link", onClick: onCancelClicked },
|
|
127
|
-
react_1.default.createElement(react_i18next_1.Trans, null, props.cancelLabel))));
|
|
128
|
-
const canShowContent = !isEditing && props.allowInlineEdit && props.content;
|
|
129
|
-
return (react_1.default.createElement("div", { className: `form-group edit-question ${props.formClassName}`, id: props.formId },
|
|
130
|
-
!props.hideLabel && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
131
|
-
react_1.default.createElement("label", Object.assign({}, props.labelProps),
|
|
132
|
-
react_1.default.createElement("span", { className: "label-edit" }, props.labelContent),
|
|
133
|
-
react_1.default.createElement("span", { className: `${props.isExportingPDF ? 'hide-in-pdf' : ''}` }, props.helperContent),
|
|
134
|
-
renderEditButton()))),
|
|
135
|
-
renderSaveCancel(),
|
|
136
|
-
canShowContent && !props.usePreformattedTag && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
137
|
-
react_1.default.createElement("p", { id: props.inputId, style: { display: props.hideLabel ? 'inline' : 'block' } },
|
|
138
|
-
props.content,
|
|
139
|
-
props.hideLabel && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
140
|
-
props.helperContent,
|
|
141
|
-
renderEditButton())),
|
|
142
|
-
props.loadingIndicator && react_1.default.createElement("span", { className: "loading-indicator" }, props.loadingIndicator)))),
|
|
143
|
-
canShowContent && props.usePreformattedTag && react_1.default.createElement("pre", { id: props.inputId }, props.content),
|
|
144
|
-
react_1.default.createElement(react_1.default.Fragment, null,
|
|
145
|
-
react_1.default.createElement("div", { onBlur: onBlurChild, onKeyDown: handleKeyDown, className: "inlineEdit-wrapper", "data-tracking-id": "inline-edit-input-wrapper" },
|
|
146
|
-
!props.allowInlineEdit && props.children,
|
|
147
|
-
props.allowInlineEdit &&
|
|
148
|
-
isEditing &&
|
|
149
|
-
react_1.default.Children.map(props.children, (child) => {
|
|
150
|
-
if (!child)
|
|
151
|
-
return;
|
|
152
|
-
const canFocusChild = (child.type === 'input' || child.type === 'textarea') && canAutoSetFocus;
|
|
153
|
-
// if input/textarea had autoFocus but focus was lost in the wrapper component
|
|
154
|
-
const needsReFocus = !canAutoSetFocus && child.props.autoFocus;
|
|
155
|
-
if (canFocusChild || needsReFocus) {
|
|
156
|
-
return react_1.default.cloneElement(child, {
|
|
157
|
-
ref: (node) => {
|
|
158
|
-
node && node.focus();
|
|
159
|
-
setCanAutoSfocus(false);
|
|
160
|
-
},
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
return child;
|
|
165
|
-
}
|
|
166
|
-
})))));
|
|
167
|
-
}
|
|
168
|
-
exports.InlineEdit = InlineEdit;
|
|
169
|
-
InlineEdit.defaultProps = defaultProps;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import './newInlineEdit.css';
|
|
2
|
-
import { HTMLProps } from 'react';
|
|
3
|
-
interface IProps {
|
|
4
|
-
inputId?: string;
|
|
5
|
-
children: JSX.Element | JSX.Element[];
|
|
6
|
-
labelProps: HTMLProps<HTMLLabelElement>;
|
|
7
|
-
labelContent: JSX.Element | JSX.Element[];
|
|
8
|
-
helperContent?: JSX.Element | JSX.Element[];
|
|
9
|
-
loadingIndicator: JSX.Element | string;
|
|
10
|
-
content?: string | JSX.Element;
|
|
11
|
-
allowInlineEdit: boolean;
|
|
12
|
-
formClassName?: string;
|
|
13
|
-
formId?: string;
|
|
14
|
-
dataTrackingId?: string;
|
|
15
|
-
usePreformattedTag: boolean;
|
|
16
|
-
hideSaveCancel: boolean;
|
|
17
|
-
cancelLabel: JSX.Element | string;
|
|
18
|
-
saveLabel: JSX.Element | string;
|
|
19
|
-
onSave: any;
|
|
20
|
-
onCancel: any;
|
|
21
|
-
cancelOnToggle?: boolean;
|
|
22
|
-
charCount: number;
|
|
23
|
-
charTotal: number;
|
|
24
|
-
cancelToggleState?: boolean;
|
|
25
|
-
saveToggleState?: boolean;
|
|
26
|
-
collapseOnBlur?: boolean;
|
|
27
|
-
saveOnBlur?: boolean;
|
|
28
|
-
saveDisabled?: boolean;
|
|
29
|
-
cancelOnBlur?: boolean;
|
|
30
|
-
initialIsEditing?: boolean;
|
|
31
|
-
hideLabel?: boolean;
|
|
32
|
-
isSpaceAllowed?: boolean;
|
|
33
|
-
inputValue?: string;
|
|
34
|
-
isExportingPDF?: boolean;
|
|
35
|
-
}
|
|
36
|
-
declare function NewInlineEdit(props: IProps): JSX.Element;
|
|
37
|
-
declare namespace NewInlineEdit {
|
|
38
|
-
var defaultProps: Partial<IProps>;
|
|
39
|
-
}
|
|
40
|
-
export { NewInlineEdit };
|
|
41
|
-
//# sourceMappingURL=NewInlineEdit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NewInlineEdit.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/NewInlineEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAI7B,OAAc,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG9D,UAAU,MAAM;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IACtC,UAAU,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACxC,YAAY,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC1C,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;IAC5C,gBAAgB,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,WAAW,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAClC,SAAS,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAChC,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,GAAG,CAAC;IACd,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAG1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B;AAsBD,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,eAyLnC;kBAzLQ,aAAa;;;AA4LtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
31
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
32
|
-
};
|
|
33
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.NewInlineEdit = void 0;
|
|
35
|
-
require("./newInlineEdit.css");
|
|
36
|
-
const pencil_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/pencil-alt-icon"));
|
|
37
|
-
const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
|
|
38
|
-
const react_1 = __importStar(require("react"));
|
|
39
|
-
const react_i18next_1 = require("react-i18next");
|
|
40
|
-
const defaultProps = {
|
|
41
|
-
allowInlineEdit: false,
|
|
42
|
-
formClassName: '',
|
|
43
|
-
formId: '',
|
|
44
|
-
dataTrackingId: '',
|
|
45
|
-
usePreformattedTag: false,
|
|
46
|
-
hideSaveCancel: false,
|
|
47
|
-
saveLabel: 'Save',
|
|
48
|
-
cancelLabel: 'Cancel',
|
|
49
|
-
cancelOnToggle: false,
|
|
50
|
-
loadingIndicator: '',
|
|
51
|
-
initialIsEditing: false,
|
|
52
|
-
collapseOnBlur: false,
|
|
53
|
-
saveOnBlur: false,
|
|
54
|
-
cancelOnBlur: false,
|
|
55
|
-
saveDisabled: false,
|
|
56
|
-
hideLabel: false,
|
|
57
|
-
isSpaceAllowed: true,
|
|
58
|
-
};
|
|
59
|
-
function NewInlineEdit(props) {
|
|
60
|
-
var _a;
|
|
61
|
-
const [isEditing, setIsEditing] = react_1.useState(props.initialIsEditing);
|
|
62
|
-
// editingTrueOnStart is a state to track if inlineEdit component is open on start, we don't want to focus
|
|
63
|
-
// on input/textareat in this situation as we may have other form elements on page that we want to focus
|
|
64
|
-
const [canAutoSetFocus, setCanAutoSfocus] = react_1.useState(!props.initialIsEditing);
|
|
65
|
-
// To close InlineEdit input and show content whenever cancel is clicked
|
|
66
|
-
react_1.useEffect(() => {
|
|
67
|
-
if (isEditing) {
|
|
68
|
-
setIsEditing(!isEditing);
|
|
69
|
-
}
|
|
70
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71
|
-
}, [props.cancelToggleState, props.saveToggleState]);
|
|
72
|
-
const onEditClicked = (e) => {
|
|
73
|
-
setCanAutoSfocus(true);
|
|
74
|
-
e.preventDefault();
|
|
75
|
-
props.cancelOnToggle && isEditing && props.onCancel && props.onCancel();
|
|
76
|
-
setIsEditing(!isEditing);
|
|
77
|
-
};
|
|
78
|
-
const renderEditButton = () => {
|
|
79
|
-
if (!props.allowInlineEdit) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
return (react_1.default.createElement("button", { className: `btn btn-link btn-app btn-edit ${props.isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-label": "Edit", onClick: onEditClicked },
|
|
83
|
-
react_1.default.createElement(pencil_alt_icon_1.default, null)));
|
|
84
|
-
};
|
|
85
|
-
const onBlurChild = () => {
|
|
86
|
-
props.collapseOnBlur && setIsEditing(!isEditing);
|
|
87
|
-
props.saveOnBlur && !props.saveDisabled && props.onSave && props.onSave();
|
|
88
|
-
props.cancelOnBlur && props.onCancel && props.onCancel();
|
|
89
|
-
};
|
|
90
|
-
const onCancelClicked = () => {
|
|
91
|
-
props.onCancel && props.onCancel();
|
|
92
|
-
setIsEditing(false);
|
|
93
|
-
};
|
|
94
|
-
const onSave = () => __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
try {
|
|
96
|
-
props.onSave && (yield props.onSave());
|
|
97
|
-
setIsEditing(false);
|
|
98
|
-
}
|
|
99
|
-
catch (e) {
|
|
100
|
-
// we will keep the user in the editing state. so nothing to do here
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
const onSaveClicked = () => __awaiter(this, void 0, void 0, function* () {
|
|
104
|
-
if (props.saveDisabled)
|
|
105
|
-
return;
|
|
106
|
-
yield onSave();
|
|
107
|
-
});
|
|
108
|
-
// Disables button if isSpaceAllowed is False and Input has Spaces
|
|
109
|
-
const diabledCheckForSpaceAllowed = !props.isSpaceAllowed && isEmpty_1.default((_a = props.inputValue) === null || _a === void 0 ? void 0 : _a.trim());
|
|
110
|
-
const handleKeyDown = (e) => __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
// Cancel on pressing esc
|
|
112
|
-
if (props.allowInlineEdit && isEditing && e.keyCode === 27) {
|
|
113
|
-
props.onCancel && props.onCancel();
|
|
114
|
-
setIsEditing(false);
|
|
115
|
-
}
|
|
116
|
-
// Save on pressing enter
|
|
117
|
-
else if (!props.hideSaveCancel &&
|
|
118
|
-
props.allowInlineEdit &&
|
|
119
|
-
isEditing &&
|
|
120
|
-
!diabledCheckForSpaceAllowed &&
|
|
121
|
-
!props.saveDisabled &&
|
|
122
|
-
e.keyCode === 13) {
|
|
123
|
-
yield onSave();
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
const renderSaveCancel = () => !props.hideSaveCancel &&
|
|
127
|
-
props.allowInlineEdit &&
|
|
128
|
-
isEditing && (react_1.default.createElement("span", { className: `edit-actions ${props.isExportingPDF ? 'hide-in-pdf' : ''}` },
|
|
129
|
-
props.loadingIndicator && react_1.default.createElement("span", null, props.loadingIndicator),
|
|
130
|
-
react_1.default.createElement("button", { "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-save` : null, className: "btn btn-app btn-link", type: "button", onClick: onSaveClicked, disabled: diabledCheckForSpaceAllowed || props.saveDisabled },
|
|
131
|
-
react_1.default.createElement(react_i18next_1.Trans, null, props.saveLabel)),
|
|
132
|
-
react_1.default.createElement("button", { type: "button", "data-tracking-id": props.dataTrackingId ? `${props.dataTrackingId}-inline-edit-cancel` : null, className: "btn btn-app btn-link", onClick: onCancelClicked },
|
|
133
|
-
react_1.default.createElement(react_i18next_1.Trans, null, props.cancelLabel))));
|
|
134
|
-
const canShowContent = !isEditing && props.allowInlineEdit && props.content;
|
|
135
|
-
const showCount = ` ${props.charCount} / ${props.charTotal}`;
|
|
136
|
-
return (react_1.default.createElement("div", { className: `form-group edit-question ${props.formClassName}`, id: props.formId },
|
|
137
|
-
!props.hideLabel && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
138
|
-
react_1.default.createElement("label", Object.assign({}, props.labelProps),
|
|
139
|
-
react_1.default.createElement("span", { className: "label-edit" }, props.labelContent),
|
|
140
|
-
react_1.default.createElement("span", { className: `${props.isExportingPDF ? 'hide-in-pdf' : ''}` }, props.helperContent),
|
|
141
|
-
!props.content && !isEditing ? renderEditButton() : null))),
|
|
142
|
-
renderSaveCancel(),
|
|
143
|
-
props.hideSaveCancel && isEditing && (react_1.default.createElement("span", { className: `
|
|
144
|
-
${props.charCount > props.charTotal ? 'char-count pf-u-danger-color-100' : 'char-count'}` }, props.charCount ? showCount : null)),
|
|
145
|
-
canShowContent && !props.usePreformattedTag && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
146
|
-
react_1.default.createElement("p", { id: props.inputId, style: { display: props.hideLabel ? 'inline' : 'block' } },
|
|
147
|
-
props.content,
|
|
148
|
-
react_1.default.createElement(react_1.default.Fragment, null,
|
|
149
|
-
props.helperContent,
|
|
150
|
-
renderEditButton()),
|
|
151
|
-
props.loadingIndicator && react_1.default.createElement("span", { className: "loading-indicator" }, props.loadingIndicator)))),
|
|
152
|
-
canShowContent && props.usePreformattedTag && react_1.default.createElement("pre", { id: props.inputId }, props.content),
|
|
153
|
-
react_1.default.createElement(react_1.default.Fragment, null,
|
|
154
|
-
react_1.default.createElement("div", { onBlur: onBlurChild, onKeyDown: handleKeyDown, className: "inlineEdit-wrapper", "data-tracking-id": "inline-edit-input-wrapper" },
|
|
155
|
-
!props.allowInlineEdit && props.children,
|
|
156
|
-
props.allowInlineEdit &&
|
|
157
|
-
isEditing &&
|
|
158
|
-
react_1.default.Children.map(props.children, (child) => {
|
|
159
|
-
if (!child)
|
|
160
|
-
return;
|
|
161
|
-
const canFocusChild = (child.type === 'input' || child.type === 'textarea') && canAutoSetFocus;
|
|
162
|
-
// if input/textarea had autoFocus but focus was lost in the wrapper component
|
|
163
|
-
const needsReFocus = !canAutoSetFocus && child.props.autoFocus;
|
|
164
|
-
if (canFocusChild || needsReFocus) {
|
|
165
|
-
return react_1.default.cloneElement(child, {
|
|
166
|
-
ref: (node) => {
|
|
167
|
-
node && node.focus();
|
|
168
|
-
setCanAutoSfocus(false);
|
|
169
|
-
},
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
return child;
|
|
174
|
-
}
|
|
175
|
-
})))));
|
|
176
|
-
}
|
|
177
|
-
exports.NewInlineEdit = NewInlineEdit;
|
|
178
|
-
NewInlineEdit.defaultProps = defaultProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/InlineEdit/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./InlineEdit"), exports);
|
|
14
|
-
__exportStar(require("./NewInlineEdit"), exports);
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
.edit-question .btn-edit {
|
|
2
|
-
padding: 0 0.5rem !important;
|
|
3
|
-
margin-left: 0.5rem;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.edit-question .edit-actions {
|
|
7
|
-
float: right;
|
|
8
|
-
position: relative;
|
|
9
|
-
top: 38px;
|
|
10
|
-
margin-top: -34px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.edit-question .edit-actions > * {
|
|
14
|
-
padding: 2px 1rem !important;
|
|
15
|
-
font-size: 13px !important;
|
|
16
|
-
float: right;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.edit-question .loading-indicator {
|
|
20
|
-
margin-left: 10px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.case-overview .edit-question .loading-indicator {
|
|
24
|
-
margin-left: 0px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.hide-in-pdf {
|
|
28
|
-
display: none !important;
|
|
29
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
.edit-question .btn-edit {
|
|
2
|
-
padding: 0 0.5rem !important;
|
|
3
|
-
margin-left: 0.5rem;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.edit-question .edit-actions {
|
|
7
|
-
float: right;
|
|
8
|
-
position: relative;
|
|
9
|
-
top: 38px;
|
|
10
|
-
margin-top: -34px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.edit-question .edit-actions > * {
|
|
14
|
-
padding: 2px 1rem !important;
|
|
15
|
-
font-size: 13px !important;
|
|
16
|
-
float: right;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.hide-in-pdf {
|
|
20
|
-
display: none !important;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.edit-question .loading-indicator {
|
|
24
|
-
margin-left: 10px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.case-overview .edit-question .loading-indicator {
|
|
28
|
-
margin-left: 0px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* Character Count */
|
|
32
|
-
.char-count {
|
|
33
|
-
float: right;
|
|
34
|
-
position: relative;
|
|
35
|
-
padding-right: var(--pf-global--spacer--4xl);
|
|
36
|
-
margin-right: var(--pf-global--spacer--lg);
|
|
37
|
-
font-size: 12px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media (max-width: 415px) {
|
|
41
|
-
.char-count {
|
|
42
|
-
padding-right: var(--pf-global--spacer--2xl);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import './languageSelector.css';
|
|
2
|
-
import { IDClassNameProps } from '@rh-support/types/shared';
|
|
3
|
-
interface IProps extends IDClassNameProps {
|
|
4
|
-
currentLanguage: string;
|
|
5
|
-
updateLang: (lang: string) => void;
|
|
6
|
-
showLoader: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const languageConst: {
|
|
9
|
-
en: string;
|
|
10
|
-
ja: string;
|
|
11
|
-
de: string;
|
|
12
|
-
zh: string;
|
|
13
|
-
pt: string;
|
|
14
|
-
fr: string;
|
|
15
|
-
ko: string;
|
|
16
|
-
it: string;
|
|
17
|
-
ru: string;
|
|
18
|
-
es: string;
|
|
19
|
-
};
|
|
20
|
-
declare function LanguageSelector(props: IProps): JSX.Element;
|
|
21
|
-
declare namespace LanguageSelector {
|
|
22
|
-
var defaultProps: Partial<IProps>;
|
|
23
|
-
}
|
|
24
|
-
export { LanguageSelector };
|
|
25
|
-
//# sourceMappingURL=LanguageSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageSelector.d.ts","sourceRoot":"","sources":["../../../src/LanguageSelector/LanguageSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAC;AAOF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAyBtC;kBAzBQ,gBAAgB;;;AA4BzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.LanguageSelector = exports.languageConst = void 0;
|
|
26
|
-
require("./languageSelector.css");
|
|
27
|
-
const map_1 = __importDefault(require("lodash/map"));
|
|
28
|
-
const react_1 = __importStar(require("react"));
|
|
29
|
-
const react_i18next_1 = require("react-i18next");
|
|
30
|
-
const DropDownList_1 = require("../DropDownList/DropDownList");
|
|
31
|
-
exports.languageConst = {
|
|
32
|
-
en: 'English',
|
|
33
|
-
ja: '日本語',
|
|
34
|
-
de: 'Deutsch',
|
|
35
|
-
zh: '中文 (中国)',
|
|
36
|
-
pt: 'Português',
|
|
37
|
-
fr: 'Français',
|
|
38
|
-
ko: '한국어',
|
|
39
|
-
it: 'Italiano',
|
|
40
|
-
ru: 'Pу́сский',
|
|
41
|
-
es: 'Español',
|
|
42
|
-
};
|
|
43
|
-
const defaultProps = {
|
|
44
|
-
showLoader: false,
|
|
45
|
-
className: '',
|
|
46
|
-
};
|
|
47
|
-
function LanguageSelector(props) {
|
|
48
|
-
const [language, setLanguage] = react_1.useState({
|
|
49
|
-
label: exports.languageConst[props.currentLanguage],
|
|
50
|
-
value: props.currentLanguage,
|
|
51
|
-
});
|
|
52
|
-
const { t } = react_i18next_1.useTranslation();
|
|
53
|
-
const handleLanguageChange = (language) => {
|
|
54
|
-
setLanguage(language);
|
|
55
|
-
props.updateLang(language.value);
|
|
56
|
-
};
|
|
57
|
-
const languageOption = () => map_1.default(exports.languageConst, (value, key) => ({ label: value, value: key }));
|
|
58
|
-
return (react_1.default.createElement(DropDownList_1.Dropdown, { "data-tracking-id": "app-language-selector", id: "app-language-selector", title: t('Language selector'), className: "language-selector", list: languageOption(), selectedItem: language, onChange: handleLanguageChange, isLoadingList: props.showLoader }));
|
|
59
|
-
}
|
|
60
|
-
exports.LanguageSelector = LanguageSelector;
|
|
61
|
-
LanguageSelector.defaultProps = defaultProps;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/LanguageSelector/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./LanguageSelector"), exports);
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
.loading-dots {
|
|
2
|
-
text-align: center;
|
|
3
|
-
height: 20px;
|
|
4
|
-
margin-top: -25px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.loading-dots span {
|
|
8
|
-
font-size: 50px;
|
|
9
|
-
animation-name: blink;
|
|
10
|
-
animation-duration: 1.4s;
|
|
11
|
-
animation-iteration-count: infinite;
|
|
12
|
-
animation-fill-mode: both;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.loading-dots span:nth-child(2) {
|
|
16
|
-
animation-delay: 0.2s;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.loading-dots span:nth-child(3) {
|
|
20
|
-
animation-delay: 0.4s;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@keyframes blink {
|
|
24
|
-
0% {
|
|
25
|
-
opacity: 0.2;
|
|
26
|
-
}
|
|
27
|
-
20% {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
}
|
|
30
|
-
100% {
|
|
31
|
-
opacity: 0.2;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './LoadingDots.css';
|
|
2
|
-
interface IProps {
|
|
3
|
-
show?: boolean;
|
|
4
|
-
message?: string;
|
|
5
|
-
}
|
|
6
|
-
declare function LoadingDots(props: IProps): JSX.Element;
|
|
7
|
-
declare namespace LoadingDots {
|
|
8
|
-
var defaultProps: Partial<IProps>;
|
|
9
|
-
}
|
|
10
|
-
export { LoadingDots };
|
|
11
|
-
//# sourceMappingURL=LoadingDots.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAK3B,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAkBjC;kBAlBQ,WAAW;;;AAoBpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
|