@churchapps/apphelper 0.0.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/.eslintignore +4 -0
- package/.eslintrc.json +22 -0
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/components/CreatePerson.d.ts +9 -0
- package/dist/components/CreatePerson.d.ts.map +1 -0
- package/dist/components/CreatePerson.js +80 -0
- package/dist/components/CreatePerson.js.map +1 -0
- package/dist/components/DisplayBox.d.ts +16 -0
- package/dist/components/DisplayBox.d.ts.map +1 -0
- package/dist/components/DisplayBox.js +48 -0
- package/dist/components/DisplayBox.js.map +1 -0
- package/dist/components/ErrorMessages.d.ts +7 -0
- package/dist/components/ErrorMessages.d.ts.map +1 -0
- package/dist/components/ErrorMessages.js +47 -0
- package/dist/components/ErrorMessages.js.map +1 -0
- package/dist/components/ExportLink.d.ts +10 -0
- package/dist/components/ExportLink.d.ts.map +1 -0
- package/dist/components/ExportLink.js +70 -0
- package/dist/components/ExportLink.js.map +1 -0
- package/dist/components/FloatingSupport.d.ts +7 -0
- package/dist/components/FloatingSupport.d.ts.map +1 -0
- package/dist/components/FloatingSupport.js +18 -0
- package/dist/components/FloatingSupport.js.map +1 -0
- package/dist/components/FormSubmissionEdit.d.ts +18 -0
- package/dist/components/FormSubmissionEdit.d.ts.map +1 -0
- package/dist/components/FormSubmissionEdit.js +125 -0
- package/dist/components/FormSubmissionEdit.js.map +1 -0
- package/dist/components/HelpIcon.d.ts +7 -0
- package/dist/components/HelpIcon.d.ts.map +1 -0
- package/dist/components/HelpIcon.js +12 -0
- package/dist/components/HelpIcon.js.map +1 -0
- package/dist/components/ImageEditor.d.ts +15 -0
- package/dist/components/ImageEditor.d.ts.map +1 -0
- package/dist/components/ImageEditor.js +109 -0
- package/dist/components/ImageEditor.js.map +1 -0
- package/dist/components/InputBox.d.ts +24 -0
- package/dist/components/InputBox.d.ts.map +1 -0
- package/dist/components/InputBox.js +59 -0
- package/dist/components/InputBox.js.map +1 -0
- package/dist/components/Loading.d.ts +10 -0
- package/dist/components/Loading.d.ts.map +1 -0
- package/dist/components/Loading.js +34 -0
- package/dist/components/Loading.js.map +1 -0
- package/dist/components/PersonAdd.d.ts +15 -0
- package/dist/components/PersonAdd.d.ts.map +1 -0
- package/dist/components/PersonAdd.js +84 -0
- package/dist/components/PersonAdd.js.map +1 -0
- package/dist/components/QuestionEdit.d.ts +11 -0
- package/dist/components/QuestionEdit.d.ts.map +1 -0
- package/dist/components/QuestionEdit.js +76 -0
- package/dist/components/QuestionEdit.js.map +1 -0
- package/dist/components/SmallButton.d.ts +14 -0
- package/dist/components/SmallButton.d.ts.map +1 -0
- package/dist/components/SmallButton.js +31 -0
- package/dist/components/SmallButton.js.map +1 -0
- package/dist/components/SupportModal.d.ts +8 -0
- package/dist/components/SupportModal.d.ts.map +1 -0
- package/dist/components/SupportModal.js +47 -0
- package/dist/components/SupportModal.js.map +1 -0
- package/dist/components/TabPanel.d.ts +9 -0
- package/dist/components/TabPanel.d.ts.map +1 -0
- package/dist/components/TabPanel.js +24 -0
- package/dist/components/TabPanel.js.map +1 -0
- package/dist/components/gallery/GalleryModal.d.ts +9 -0
- package/dist/components/gallery/GalleryModal.d.ts.map +1 -0
- package/dist/components/gallery/GalleryModal.js +108 -0
- package/dist/components/gallery/GalleryModal.js.map +1 -0
- package/dist/components/gallery/StockPhotos.d.ts +9 -0
- package/dist/components/gallery/StockPhotos.d.ts.map +1 -0
- package/dist/components/gallery/StockPhotos.js +82 -0
- package/dist/components/gallery/StockPhotos.js.map +1 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +51 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/markdownEditor/Editor.d.ts +12 -0
- package/dist/components/markdownEditor/Editor.d.ts.map +1 -0
- package/dist/components/markdownEditor/Editor.js +106 -0
- package/dist/components/markdownEditor/Editor.js.map +1 -0
- package/dist/components/markdownEditor/MarkdownEditor.d.ts +11 -0
- package/dist/components/markdownEditor/MarkdownEditor.d.ts.map +1 -0
- package/dist/components/markdownEditor/MarkdownEditor.js +39 -0
- package/dist/components/markdownEditor/MarkdownEditor.js.map +1 -0
- package/dist/components/markdownEditor/MarkdownModal.d.ts +9 -0
- package/dist/components/markdownEditor/MarkdownModal.d.ts.map +1 -0
- package/dist/components/markdownEditor/MarkdownModal.js +58 -0
- package/dist/components/markdownEditor/MarkdownModal.js.map +1 -0
- package/dist/components/markdownEditor/MarkdownPreview.d.ts +8 -0
- package/dist/components/markdownEditor/MarkdownPreview.d.ts.map +1 -0
- package/dist/components/markdownEditor/MarkdownPreview.js +35 -0
- package/dist/components/markdownEditor/MarkdownPreview.js.map +1 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.d.ts +3 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.js +35 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts +8 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.js +20 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts +2 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js +46 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.d.ts +12 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.js +85 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts +6 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.js +13 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.d.ts +8 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.js +324 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts +27 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.js +158 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts +4 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js +18 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts +3 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js +67 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts +5 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js +212 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts +11 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js +3 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.d.ts +24 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.js +63 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts +4 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js +35 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts +10 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js +99 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts +11 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js +55 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/index.d.ts +7 -0
- package/dist/components/markdownEditor/plugins/index.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/index.js +16 -0
- package/dist/components/markdownEditor/plugins/index.js.map +1 -0
- package/dist/components/markdownEditor/theme.d.ts +66 -0
- package/dist/components/markdownEditor/theme.d.ts.map +1 -0
- package/dist/components/markdownEditor/theme.js +69 -0
- package/dist/components/markdownEditor/theme.js.map +1 -0
- package/dist/components/material/AppList.d.ts +9 -0
- package/dist/components/material/AppList.d.ts.map +1 -0
- package/dist/components/material/AppList.js +21 -0
- package/dist/components/material/AppList.js.map +1 -0
- package/dist/components/material/ChurchList.d.ts +9 -0
- package/dist/components/material/ChurchList.d.ts.map +1 -0
- package/dist/components/material/ChurchList.js +25 -0
- package/dist/components/material/ChurchList.js.map +1 -0
- package/dist/components/material/NavItem.d.ts +14 -0
- package/dist/components/material/NavItem.d.ts.map +1 -0
- package/dist/components/material/NavItem.js +36 -0
- package/dist/components/material/NavItem.js.map +1 -0
- package/dist/components/material/NewPrivateMessage.d.ts +10 -0
- package/dist/components/material/NewPrivateMessage.d.ts.map +1 -0
- package/dist/components/material/NewPrivateMessage.js +96 -0
- package/dist/components/material/NewPrivateMessage.js.map +1 -0
- package/dist/components/material/PrivateMessageDetails.d.ts +10 -0
- package/dist/components/material/PrivateMessageDetails.d.ts.map +1 -0
- package/dist/components/material/PrivateMessageDetails.js +18 -0
- package/dist/components/material/PrivateMessageDetails.js.map +1 -0
- package/dist/components/material/PrivateMessages.d.ts +8 -0
- package/dist/components/material/PrivateMessages.d.ts.map +1 -0
- package/dist/components/material/PrivateMessages.js +105 -0
- package/dist/components/material/PrivateMessages.js.map +1 -0
- package/dist/components/material/SiteWrapper.d.ts +14 -0
- package/dist/components/material/SiteWrapper.d.ts.map +1 -0
- package/dist/components/material/SiteWrapper.js +120 -0
- package/dist/components/material/SiteWrapper.js.map +1 -0
- package/dist/components/material/UserMenu.d.ts +14 -0
- package/dist/components/material/UserMenu.d.ts.map +1 -0
- package/dist/components/material/UserMenu.js +98 -0
- package/dist/components/material/UserMenu.js.map +1 -0
- package/dist/components/material/iconPicker/IconNamesList.d.ts +3 -0
- package/dist/components/material/iconPicker/IconNamesList.d.ts.map +1 -0
- package/dist/components/material/iconPicker/IconNamesList.js +2241 -0
- package/dist/components/material/iconPicker/IconNamesList.js.map +1 -0
- package/dist/components/material/iconPicker/IconPicker.d.ts +7 -0
- package/dist/components/material/iconPicker/IconPicker.d.ts.map +1 -0
- package/dist/components/material/iconPicker/IconPicker.js +136 -0
- package/dist/components/material/iconPicker/IconPicker.js.map +1 -0
- package/dist/components/material/index.d.ts +6 -0
- package/dist/components/material/index.d.ts.map +1 -0
- package/dist/components/material/index.js +14 -0
- package/dist/components/material/index.js.map +1 -0
- package/dist/components/notes/AddNote.d.ts +12 -0
- package/dist/components/notes/AddNote.d.ts.map +1 -0
- package/dist/components/notes/AddNote.js +123 -0
- package/dist/components/notes/AddNote.js.map +1 -0
- package/dist/components/notes/Conversation.d.ts +11 -0
- package/dist/components/notes/Conversation.d.ts.map +1 -0
- package/dist/components/notes/Conversation.js +85 -0
- package/dist/components/notes/Conversation.js.map +1 -0
- package/dist/components/notes/Conversations.d.ts +11 -0
- package/dist/components/notes/Conversations.d.ts.map +1 -0
- package/dist/components/notes/Conversations.js +64 -0
- package/dist/components/notes/Conversations.js.map +1 -0
- package/dist/components/notes/NewConversation.d.ts +13 -0
- package/dist/components/notes/NewConversation.d.ts.map +1 -0
- package/dist/components/notes/NewConversation.js +86 -0
- package/dist/components/notes/NewConversation.js.map +1 -0
- package/dist/components/notes/Note.d.ts +9 -0
- package/dist/components/notes/Note.d.ts.map +1 -0
- package/dist/components/notes/Note.js +58 -0
- package/dist/components/notes/Note.js.map +1 -0
- package/dist/components/notes/Notes.d.ts +11 -0
- package/dist/components/notes/Notes.d.ts.map +1 -0
- package/dist/components/notes/Notes.js +59 -0
- package/dist/components/notes/Notes.js.map +1 -0
- package/dist/components/reporting/ChartReport.d.ts +9 -0
- package/dist/components/reporting/ChartReport.d.ts.map +1 -0
- package/dist/components/reporting/ChartReport.js +93 -0
- package/dist/components/reporting/ChartReport.js.map +1 -0
- package/dist/components/reporting/ReportFilter.d.ts +10 -0
- package/dist/components/reporting/ReportFilter.d.ts.map +1 -0
- package/dist/components/reporting/ReportFilter.js +54 -0
- package/dist/components/reporting/ReportFilter.js.map +1 -0
- package/dist/components/reporting/ReportFilterField.d.ts +10 -0
- package/dist/components/reporting/ReportFilterField.d.ts.map +1 -0
- package/dist/components/reporting/ReportFilterField.js +167 -0
- package/dist/components/reporting/ReportFilterField.js.map +1 -0
- package/dist/components/reporting/ReportOutput.d.ts +8 -0
- package/dist/components/reporting/ReportOutput.d.ts.map +1 -0
- package/dist/components/reporting/ReportOutput.js +95 -0
- package/dist/components/reporting/ReportOutput.js.map +1 -0
- package/dist/components/reporting/ReportWithFilter.d.ts +8 -0
- package/dist/components/reporting/ReportWithFilter.d.ts.map +1 -0
- package/dist/components/reporting/ReportWithFilter.js +67 -0
- package/dist/components/reporting/ReportWithFilter.js.map +1 -0
- package/dist/components/reporting/TableReport.d.ts +9 -0
- package/dist/components/reporting/TableReport.d.ts.map +1 -0
- package/dist/components/reporting/TableReport.js +50 -0
- package/dist/components/reporting/TableReport.js.map +1 -0
- package/dist/components/reporting/TreeReport.d.ts +9 -0
- package/dist/components/reporting/TreeReport.d.ts.map +1 -0
- package/dist/components/reporting/TreeReport.js +104 -0
- package/dist/components/reporting/TreeReport.js.map +1 -0
- package/dist/components/reporting/index.d.ts +5 -0
- package/dist/components/reporting/index.d.ts.map +1 -0
- package/dist/components/reporting/index.js +12 -0
- package/dist/components/reporting/index.js.map +1 -0
- package/dist/donationComponents/DonationPage.d.ts +9 -0
- package/dist/donationComponents/DonationPage.d.ts.map +1 -0
- package/dist/donationComponents/DonationPage.js +128 -0
- package/dist/donationComponents/DonationPage.js.map +1 -0
- package/dist/donationComponents/components/BankForm.d.ts +14 -0
- package/dist/donationComponents/components/BankForm.d.ts.map +1 -0
- package/dist/donationComponents/components/BankForm.js +161 -0
- package/dist/donationComponents/components/BankForm.js.map +1 -0
- package/dist/donationComponents/components/CardForm.d.ts +13 -0
- package/dist/donationComponents/components/CardForm.d.ts.map +1 -0
- package/dist/donationComponents/components/CardForm.js +128 -0
- package/dist/donationComponents/components/CardForm.js.map +1 -0
- package/dist/donationComponents/components/DonationForm.d.ts +14 -0
- package/dist/donationComponents/components/DonationForm.d.ts.map +1 -0
- package/dist/donationComponents/components/DonationForm.js +227 -0
- package/dist/donationComponents/components/DonationForm.js.map +1 -0
- package/dist/donationComponents/components/FundDonation.d.ts +11 -0
- package/dist/donationComponents/components/FundDonation.d.ts.map +1 -0
- package/dist/donationComponents/components/FundDonation.js +37 -0
- package/dist/donationComponents/components/FundDonation.js.map +1 -0
- package/dist/donationComponents/components/FundDonations.d.ts +10 -0
- package/dist/donationComponents/components/FundDonations.d.ts.map +1 -0
- package/dist/donationComponents/components/FundDonations.js +35 -0
- package/dist/donationComponents/components/FundDonations.js.map +1 -0
- package/dist/donationComponents/components/NonAuthDonation.d.ts +11 -0
- package/dist/donationComponents/components/NonAuthDonation.d.ts.map +1 -0
- package/dist/donationComponents/components/NonAuthDonation.js +40 -0
- package/dist/donationComponents/components/NonAuthDonation.js.map +1 -0
- package/dist/donationComponents/components/NonAuthDonationInner.d.ts +11 -0
- package/dist/donationComponents/components/NonAuthDonationInner.d.ts.map +1 -0
- package/dist/donationComponents/components/NonAuthDonationInner.js +246 -0
- package/dist/donationComponents/components/NonAuthDonationInner.js.map +1 -0
- package/dist/donationComponents/components/PaymentMethods.d.ts +14 -0
- package/dist/donationComponents/components/PaymentMethods.d.ts.map +1 -0
- package/dist/donationComponents/components/PaymentMethods.js +113 -0
- package/dist/donationComponents/components/PaymentMethods.js.map +1 -0
- package/dist/donationComponents/components/RecurringDonations.d.ts +10 -0
- package/dist/donationComponents/components/RecurringDonations.d.ts.map +1 -0
- package/dist/donationComponents/components/RecurringDonations.js +118 -0
- package/dist/donationComponents/components/RecurringDonations.js.map +1 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.d.ts +11 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.d.ts.map +1 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.js +81 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.js.map +1 -0
- package/dist/donationComponents/components/index.d.ts +10 -0
- package/dist/donationComponents/components/index.d.ts.map +1 -0
- package/dist/donationComponents/components/index.js +22 -0
- package/dist/donationComponents/components/index.js.map +1 -0
- package/dist/donationComponents/modals/DonationPreviewModal.d.ts +15 -0
- package/dist/donationComponents/modals/DonationPreviewModal.d.ts.map +1 -0
- package/dist/donationComponents/modals/DonationPreviewModal.js +73 -0
- package/dist/donationComponents/modals/DonationPreviewModal.js.map +1 -0
- package/dist/helpers/AnalyticsHelper.d.ts +7 -0
- package/dist/helpers/AnalyticsHelper.d.ts.map +1 -0
- package/dist/helpers/AnalyticsHelper.js +39 -0
- package/dist/helpers/AnalyticsHelper.js.map +1 -0
- package/dist/helpers/ApiHelper.d.ts +18 -0
- package/dist/helpers/ApiHelper.d.ts.map +1 -0
- package/dist/helpers/ApiHelper.js +145 -0
- package/dist/helpers/ApiHelper.js.map +1 -0
- package/dist/helpers/AppearanceHelper.d.ts +19 -0
- package/dist/helpers/AppearanceHelper.d.ts.map +1 -0
- package/dist/helpers/AppearanceHelper.js +64 -0
- package/dist/helpers/AppearanceHelper.js.map +1 -0
- package/dist/helpers/ArrayHelper.d.ts +12 -0
- package/dist/helpers/ArrayHelper.d.ts.map +1 -0
- package/dist/helpers/ArrayHelper.js +88 -0
- package/dist/helpers/ArrayHelper.js.map +1 -0
- package/dist/helpers/CommonEnvironmentHelper.d.ts +20 -0
- package/dist/helpers/CommonEnvironmentHelper.d.ts.map +1 -0
- package/dist/helpers/CommonEnvironmentHelper.js +82 -0
- package/dist/helpers/CommonEnvironmentHelper.js.map +1 -0
- package/dist/helpers/CurrencyHelper.d.ts +4 -0
- package/dist/helpers/CurrencyHelper.d.ts.map +1 -0
- package/dist/helpers/CurrencyHelper.js +15 -0
- package/dist/helpers/CurrencyHelper.js.map +1 -0
- package/dist/helpers/DateHelper.d.ts +19 -0
- package/dist/helpers/DateHelper.d.ts.map +1 -0
- package/dist/helpers/DateHelper.js +108 -0
- package/dist/helpers/DateHelper.js.map +1 -0
- package/dist/helpers/DonationHelper.d.ts +8 -0
- package/dist/helpers/DonationHelper.d.ts.map +1 -0
- package/dist/helpers/DonationHelper.js +33 -0
- package/dist/helpers/DonationHelper.js.map +1 -0
- package/dist/helpers/ErrorHelper.d.ts +13 -0
- package/dist/helpers/ErrorHelper.d.ts.map +1 -0
- package/dist/helpers/ErrorHelper.js +34 -0
- package/dist/helpers/ErrorHelper.js.map +1 -0
- package/dist/helpers/EventHelper.d.ts +11 -0
- package/dist/helpers/EventHelper.d.ts.map +1 -0
- package/dist/helpers/EventHelper.js +47 -0
- package/dist/helpers/EventHelper.js.map +1 -0
- package/dist/helpers/FileHelper.d.ts +5 -0
- package/dist/helpers/FileHelper.d.ts.map +1 -0
- package/dist/helpers/FileHelper.js +34 -0
- package/dist/helpers/FileHelper.js.map +1 -0
- package/dist/helpers/PersonHelper.d.ts +11 -0
- package/dist/helpers/PersonHelper.d.ts.map +1 -0
- package/dist/helpers/PersonHelper.js +53 -0
- package/dist/helpers/PersonHelper.js.map +1 -0
- package/dist/helpers/SocketHelper.d.ts +16 -0
- package/dist/helpers/SocketHelper.d.ts.map +1 -0
- package/dist/helpers/SocketHelper.js +87 -0
- package/dist/helpers/SocketHelper.js.map +1 -0
- package/dist/helpers/Themes.d.ts +9 -0
- package/dist/helpers/Themes.d.ts.map +1 -0
- package/dist/helpers/Themes.js +16 -0
- package/dist/helpers/Themes.js.map +1 -0
- package/dist/helpers/UniqueIdHelper.d.ts +9 -0
- package/dist/helpers/UniqueIdHelper.d.ts.map +1 -0
- package/dist/helpers/UniqueIdHelper.js +37 -0
- package/dist/helpers/UniqueIdHelper.js.map +1 -0
- package/dist/helpers/UserHelper.d.ts +14 -0
- package/dist/helpers/UserHelper.d.ts.map +1 -0
- package/dist/helpers/UserHelper.js +68 -0
- package/dist/helpers/UserHelper.js.map +1 -0
- package/dist/helpers/createEmotionCache.d.ts +2 -0
- package/dist/helpers/createEmotionCache.d.ts.map +1 -0
- package/dist/helpers/createEmotionCache.js +21 -0
- package/dist/helpers/createEmotionCache.js.map +1 -0
- package/dist/helpers/index.d.ts +16 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +47 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useMountedState.d.ts +2 -0
- package/dist/hooks/useMountedState.d.ts.map +1 -0
- package/dist/hooks/useMountedState.js +17 -0
- package/dist/hooks/useMountedState.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/Access.d.ts +131 -0
- package/dist/interfaces/Access.d.ts.map +1 -0
- package/dist/interfaces/Access.js +3 -0
- package/dist/interfaces/Access.js.map +1 -0
- package/dist/interfaces/Attendance.d.ts +45 -0
- package/dist/interfaces/Attendance.d.ts.map +1 -0
- package/dist/interfaces/Attendance.js +3 -0
- package/dist/interfaces/Attendance.js.map +1 -0
- package/dist/interfaces/Content.d.ts +86 -0
- package/dist/interfaces/Content.d.ts.map +1 -0
- package/dist/interfaces/Content.js +3 -0
- package/dist/interfaces/Content.js.map +1 -0
- package/dist/interfaces/Doing.d.ts +50 -0
- package/dist/interfaces/Doing.d.ts.map +1 -0
- package/dist/interfaces/Doing.js +3 -0
- package/dist/interfaces/Doing.js.map +1 -0
- package/dist/interfaces/Donation.d.ts +138 -0
- package/dist/interfaces/Donation.d.ts.map +1 -0
- package/dist/interfaces/Donation.js +24 -0
- package/dist/interfaces/Donation.js.map +1 -0
- package/dist/interfaces/Error.d.ts +17 -0
- package/dist/interfaces/Error.d.ts.map +1 -0
- package/dist/interfaces/Error.js +4 -0
- package/dist/interfaces/Error.js.map +1 -0
- package/dist/interfaces/Membership.d.ts +172 -0
- package/dist/interfaces/Membership.d.ts.map +1 -0
- package/dist/interfaces/Membership.js +3 -0
- package/dist/interfaces/Membership.js.map +1 -0
- package/dist/interfaces/Messaging.d.ts +59 -0
- package/dist/interfaces/Messaging.d.ts.map +1 -0
- package/dist/interfaces/Messaging.js +3 -0
- package/dist/interfaces/Messaging.js.map +1 -0
- package/dist/interfaces/Permissions.d.ts +159 -0
- package/dist/interfaces/Permissions.d.ts.map +1 -0
- package/dist/interfaces/Permissions.js +67 -0
- package/dist/interfaces/Permissions.js.map +1 -0
- package/dist/interfaces/Reporting.d.ts +45 -0
- package/dist/interfaces/Reporting.d.ts.map +1 -0
- package/dist/interfaces/Reporting.js +3 -0
- package/dist/interfaces/Reporting.js.map +1 -0
- package/dist/interfaces/UserContextInterface.d.ts +13 -0
- package/dist/interfaces/UserContextInterface.d.ts.map +1 -0
- package/dist/interfaces/UserContextInterface.js +3 -0
- package/dist/interfaces/UserContextInterface.js.map +1 -0
- package/dist/interfaces/index.d.ts +11 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/index.js +28 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/pageComponents/LoginPage.d.ts +22 -0
- package/dist/pageComponents/LoginPage.d.ts.map +1 -0
- package/dist/pageComponents/LoginPage.js +287 -0
- package/dist/pageComponents/LoginPage.js.map +1 -0
- package/dist/pageComponents/LogoutPage.d.ts +8 -0
- package/dist/pageComponents/LogoutPage.d.ts.map +1 -0
- package/dist/pageComponents/LogoutPage.js +26 -0
- package/dist/pageComponents/LogoutPage.js.map +1 -0
- package/dist/pageComponents/components/Forgot.d.ts +8 -0
- package/dist/pageComponents/components/Forgot.d.ts.map +1 -0
- package/dist/pageComponents/components/Forgot.js +70 -0
- package/dist/pageComponents/components/Forgot.js.map +1 -0
- package/dist/pageComponents/components/Login.d.ts +13 -0
- package/dist/pageComponents/components/Login.d.ts.map +1 -0
- package/dist/pageComponents/components/Login.js +57 -0
- package/dist/pageComponents/components/Login.js.map +1 -0
- package/dist/pageComponents/components/LoginSetPassword.d.ts +13 -0
- package/dist/pageComponents/components/LoginSetPassword.d.ts.map +1 -0
- package/dist/pageComponents/components/LoginSetPassword.js +68 -0
- package/dist/pageComponents/components/LoginSetPassword.js.map +1 -0
- package/dist/pageComponents/components/Register.d.ts +12 -0
- package/dist/pageComponents/components/Register.d.ts.map +1 -0
- package/dist/pageComponents/components/Register.js +105 -0
- package/dist/pageComponents/components/Register.js.map +1 -0
- package/dist/pageComponents/components/SelectChurchModal.d.ts +13 -0
- package/dist/pageComponents/components/SelectChurchModal.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectChurchModal.js +33 -0
- package/dist/pageComponents/components/SelectChurchModal.js.map +1 -0
- package/dist/pageComponents/components/SelectChurchRegister.d.ts +11 -0
- package/dist/pageComponents/components/SelectChurchRegister.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectChurchRegister.js +114 -0
- package/dist/pageComponents/components/SelectChurchRegister.js.map +1 -0
- package/dist/pageComponents/components/SelectChurchSearch.d.ts +10 -0
- package/dist/pageComponents/components/SelectChurchSearch.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectChurchSearch.js +61 -0
- package/dist/pageComponents/components/SelectChurchSearch.js.map +1 -0
- package/dist/pageComponents/components/SelectableChurch.d.ts +9 -0
- package/dist/pageComponents/components/SelectableChurch.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectableChurch.js +31 -0
- package/dist/pageComponents/components/SelectableChurch.js.map +1 -0
- package/dist/pageComponents/index.d.ts +4 -0
- package/dist/pageComponents/index.d.ts.map +1 -0
- package/dist/pageComponents/index.js +10 -0
- package/dist/pageComponents/index.js.map +1 -0
- package/package.json +77 -0
- package/src/components/CreatePerson.tsx +80 -0
- package/src/components/DisplayBox.tsx +68 -0
- package/src/components/ErrorMessages.tsx +26 -0
- package/src/components/ExportLink.tsx +61 -0
- package/src/components/FloatingSupport.tsx +16 -0
- package/src/components/FormSubmissionEdit.tsx +122 -0
- package/src/components/HelpIcon.tsx +10 -0
- package/src/components/ImageEditor.tsx +126 -0
- package/src/components/InputBox.tsx +73 -0
- package/src/components/Loading.tsx +29 -0
- package/src/components/PersonAdd.tsx +75 -0
- package/src/components/QuestionEdit.tsx +62 -0
- package/src/components/SmallButton.tsx +39 -0
- package/src/components/SupportModal.tsx +26 -0
- package/src/components/TabPanel.tsx +34 -0
- package/src/components/gallery/GalleryModal.tsx +102 -0
- package/src/components/gallery/StockPhotos.tsx +74 -0
- package/src/components/index.tsx +18 -0
- package/src/components/markdownEditor/Editor.tsx +132 -0
- package/src/components/markdownEditor/MarkdownEditor.tsx +16 -0
- package/src/components/markdownEditor/MarkdownModal.tsx +46 -0
- package/src/components/markdownEditor/MarkdownPreview.tsx +14 -0
- package/src/components/markdownEditor/editor.css +787 -0
- package/src/components/markdownEditor/images/emoji/1F600.png +0 -0
- package/src/components/markdownEditor/images/emoji/1F641.png +0 -0
- package/src/components/markdownEditor/images/emoji/1F642.png +0 -0
- package/src/components/markdownEditor/images/emoji/2764.png +0 -0
- package/src/components/markdownEditor/images/icons/arrow-clockwise.svg +4 -0
- package/src/components/markdownEditor/images/icons/arrow-counterclockwise.svg +4 -0
- package/src/components/markdownEditor/images/icons/chat-square-quote.svg +4 -0
- package/src/components/markdownEditor/images/icons/chevron-down.svg +3 -0
- package/src/components/markdownEditor/images/icons/code.svg +3 -0
- package/src/components/markdownEditor/images/icons/journal-code.svg +5 -0
- package/src/components/markdownEditor/images/icons/journal-text.svg +5 -0
- package/src/components/markdownEditor/images/icons/justify.svg +3 -0
- package/src/components/markdownEditor/images/icons/link.svg +4 -0
- package/src/components/markdownEditor/images/icons/list-ol.svg +4 -0
- package/src/components/markdownEditor/images/icons/list-ul.svg +3 -0
- package/src/components/markdownEditor/images/icons/pencil-fill.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-center.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-left.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-paragraph.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-right.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-bold.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h1.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h2.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h3.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h4.svg +13 -0
- package/src/components/markdownEditor/images/icons/type-italic.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-strikethrough.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-underline.svg +3 -0
- package/src/components/markdownEditor/plugins/AutoLinkPlugin.tsx +35 -0
- package/src/components/markdownEditor/plugins/ControlledEditorPlugin.tsx +24 -0
- package/src/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.tsx +68 -0
- package/src/components/markdownEditor/plugins/MarkdownTransformers.ts +106 -0
- package/src/components/markdownEditor/plugins/ReadOnlyPlugin.tsx +15 -0
- package/src/components/markdownEditor/plugins/ToolbarPlugin.tsx +401 -0
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNode.tsx +224 -0
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.tsx +32 -0
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx +102 -0
- package/src/components/markdownEditor/plugins/customLink/FloatingLinkEditor.tsx +243 -0
- package/src/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.ts +11 -0
- package/src/components/markdownEditor/plugins/emoji/EmojiNode.tsx +95 -0
- package/src/components/markdownEditor/plugins/emoji/EmojiNodeTransform.ts +41 -0
- package/src/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.tsx +152 -0
- package/src/components/markdownEditor/plugins/emoji/EmojisPlugin.tsx +65 -0
- package/src/components/markdownEditor/plugins/index.ts +6 -0
- package/src/components/markdownEditor/theme.ts +65 -0
- package/src/components/material/AppList.tsx +20 -0
- package/src/components/material/ChurchList.tsx +22 -0
- package/src/components/material/NavItem.tsx +41 -0
- package/src/components/material/NewPrivateMessage.tsx +103 -0
- package/src/components/material/PrivateMessageDetails.tsx +23 -0
- package/src/components/material/PrivateMessages.tsx +87 -0
- package/src/components/material/SiteWrapper.tsx +140 -0
- package/src/components/material/UserMenu.tsx +141 -0
- package/src/components/material/iconPicker/IconNamesList.ts +2240 -0
- package/src/components/material/iconPicker/IconPicker.tsx +153 -0
- package/src/components/material/index.tsx +5 -0
- package/src/components/notes/AddNote.tsx +90 -0
- package/src/components/notes/Conversation.tsx +82 -0
- package/src/components/notes/Conversations.tsx +58 -0
- package/src/components/notes/NewConversation.tsx +78 -0
- package/src/components/notes/Note.tsx +44 -0
- package/src/components/notes/Notes.tsx +52 -0
- package/src/components/reporting/ChartReport.tsx +98 -0
- package/src/components/reporting/ReportFilter.tsx +54 -0
- package/src/components/reporting/ReportFilterField.tsx +160 -0
- package/src/components/reporting/ReportOutput.tsx +79 -0
- package/src/components/reporting/ReportWithFilter.tsx +70 -0
- package/src/components/reporting/TableReport.tsx +57 -0
- package/src/components/reporting/TreeReport.tsx +111 -0
- package/src/components/reporting/index.ts +4 -0
- package/src/donationComponents/DonationPage.tsx +136 -0
- package/src/donationComponents/components/BankForm.tsx +159 -0
- package/src/donationComponents/components/CardForm.tsx +104 -0
- package/src/donationComponents/components/DonationForm.tsx +228 -0
- package/src/donationComponents/components/FundDonation.tsx +49 -0
- package/src/donationComponents/components/FundDonations.tsx +39 -0
- package/src/donationComponents/components/NonAuthDonation.tsx +31 -0
- package/src/donationComponents/components/NonAuthDonationInner.tsx +208 -0
- package/src/donationComponents/components/PaymentMethods.tsx +135 -0
- package/src/donationComponents/components/RecurringDonations.tsx +121 -0
- package/src/donationComponents/components/RecurringDonationsEdit.tsx +93 -0
- package/src/donationComponents/components/index.tsx +9 -0
- package/src/donationComponents/modals/DonationPreviewModal.tsx +66 -0
- package/src/helpers/AnalyticsHelper.ts +33 -0
- package/src/helpers/ApiHelper.ts +125 -0
- package/src/helpers/AppearanceHelper.ts +69 -0
- package/src/helpers/ArrayHelper.ts +81 -0
- package/src/helpers/CommonEnvironmentHelper.ts +80 -0
- package/src/helpers/CurrencyHelper.ts +10 -0
- package/src/helpers/DateHelper.ts +108 -0
- package/src/helpers/DonationHelper.ts +26 -0
- package/src/helpers/ErrorHelper.ts +36 -0
- package/src/helpers/EventHelper.ts +52 -0
- package/src/helpers/FileHelper.ts +31 -0
- package/src/helpers/PersonHelper.ts +60 -0
- package/src/helpers/SocketHelper.ts +76 -0
- package/src/helpers/Themes.ts +14 -0
- package/src/helpers/UniqueIdHelper.ts +36 -0
- package/src/helpers/UserHelper.ts +59 -0
- package/src/helpers/createEmotionCache.ts +17 -0
- package/src/helpers/index.ts +15 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useMountedState.ts +16 -0
- package/src/index.ts +6 -0
- package/src/interfaces/Access.ts +24 -0
- package/src/interfaces/Attendance.ts +8 -0
- package/src/interfaces/Content.ts +10 -0
- package/src/interfaces/Doing.ts +24 -0
- package/src/interfaces/Donation.ts +45 -0
- package/src/interfaces/Error.ts +17 -0
- package/src/interfaces/Membership.ts +51 -0
- package/src/interfaces/Messaging.ts +20 -0
- package/src/interfaces/Permissions.ts +68 -0
- package/src/interfaces/Reporting.ts +7 -0
- package/src/interfaces/UserContextInterface.ts +13 -0
- package/src/interfaces/index.ts +12 -0
- package/src/pageComponents/LoginPage.tsx +244 -0
- package/src/pageComponents/LogoutPage.tsx +28 -0
- package/src/pageComponents/components/Forgot.tsx +79 -0
- package/src/pageComponents/components/Login.tsx +54 -0
- package/src/pageComponents/components/LoginSetPassword.tsx +63 -0
- package/src/pageComponents/components/Register.tsx +107 -0
- package/src/pageComponents/components/SelectChurchModal.tsx +41 -0
- package/src/pageComponents/components/SelectChurchRegister.tsx +88 -0
- package/src/pageComponents/components/SelectChurchSearch.tsx +69 -0
- package/src/pageComponents/components/SelectableChurch.tsx +38 -0
- package/src/pageComponents/index.ts +3 -0
- package/tsconfig.json +35 -0
- package/tslint.json +15 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UserInterface } from "../../interfaces";
|
|
3
|
+
interface Props {
|
|
4
|
+
appName?: string;
|
|
5
|
+
appUrl?: string;
|
|
6
|
+
updateErrors: (errors: string[]) => void;
|
|
7
|
+
loginCallback?: () => void;
|
|
8
|
+
userRegisteredCallback?: (user: UserInterface) => Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare const Register: React.FC<Props>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=Register.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Register.d.ts","sourceRoot":"","sources":["../../../src/pageComponents/components/Register.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAiD,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKhG,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjE;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4FpC,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Register = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const helpers_1 = require("../../helpers");
|
|
9
|
+
const components_1 = require("../../components");
|
|
10
|
+
const material_1 = require("@mui/material");
|
|
11
|
+
const Register = (props) => {
|
|
12
|
+
const cleanAppUrl = () => {
|
|
13
|
+
if (!props.appUrl)
|
|
14
|
+
return null;
|
|
15
|
+
else {
|
|
16
|
+
const index = props.appUrl.indexOf("/", 9);
|
|
17
|
+
if (index === -1)
|
|
18
|
+
return props.appUrl;
|
|
19
|
+
else
|
|
20
|
+
return props.appUrl.substring(0, index);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const [registered, setRegistered] = react_1.default.useState(false);
|
|
24
|
+
const [user, setUser] = react_1.default.useState({ firstName: "", lastName: "", email: "", appName: props.appName, appUrl: cleanAppUrl() });
|
|
25
|
+
const [errors, setErrors] = react_1.default.useState([]);
|
|
26
|
+
const [isSubmitting, setIsSubmitting] = react_1.default.useState(false);
|
|
27
|
+
const handleRegisterErrors = (errors) => {
|
|
28
|
+
props.updateErrors(errors);
|
|
29
|
+
};
|
|
30
|
+
const handleRegisterSuccess = (resp) => {
|
|
31
|
+
setRegistered(true);
|
|
32
|
+
helpers_1.AnalyticsHelper.logEvent("User", "Register");
|
|
33
|
+
if (props.userRegisteredCallback)
|
|
34
|
+
props.userRegisteredCallback(resp.user);
|
|
35
|
+
};
|
|
36
|
+
const validateEmail = (email) => (/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(.\w{2,3})+$/.test(email));
|
|
37
|
+
const handleChange = (e) => {
|
|
38
|
+
const u = Object.assign({}, user);
|
|
39
|
+
switch (e.target.name) {
|
|
40
|
+
case "firstName":
|
|
41
|
+
u.firstName = e.target.value;
|
|
42
|
+
break;
|
|
43
|
+
case "lastName":
|
|
44
|
+
u.lastName = e.target.value;
|
|
45
|
+
break;
|
|
46
|
+
case "email":
|
|
47
|
+
u.email = e.target.value;
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
setUser(u);
|
|
51
|
+
};
|
|
52
|
+
const validate = () => {
|
|
53
|
+
var _a, _b, _c;
|
|
54
|
+
let errors = [];
|
|
55
|
+
if (!((_a = user.email) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
56
|
+
errors.push("Please enter your email address.");
|
|
57
|
+
else if (!validateEmail(user.email))
|
|
58
|
+
errors.push("Please enter a valid email address.");
|
|
59
|
+
if (!((_b = user.firstName) === null || _b === void 0 ? void 0 : _b.trim()))
|
|
60
|
+
errors.push("Please enter your first name.");
|
|
61
|
+
if (!((_c = user.lastName) === null || _c === void 0 ? void 0 : _c.trim()))
|
|
62
|
+
errors.push("Please enter your last name.");
|
|
63
|
+
setErrors(errors);
|
|
64
|
+
return errors.length === 0;
|
|
65
|
+
};
|
|
66
|
+
const register = (e) => {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
props.updateErrors([]);
|
|
69
|
+
if (validate()) {
|
|
70
|
+
setIsSubmitting(true);
|
|
71
|
+
helpers_1.ApiHelper.postAnonymous("/users/register", user, "MembershipApi")
|
|
72
|
+
.then((resp) => {
|
|
73
|
+
if (resp.errors)
|
|
74
|
+
handleRegisterErrors(resp.errors);
|
|
75
|
+
else
|
|
76
|
+
handleRegisterSuccess(resp);
|
|
77
|
+
})
|
|
78
|
+
.catch((e) => { props.updateErrors([e.toString()]); throw e; })
|
|
79
|
+
.finally(() => {
|
|
80
|
+
setIsSubmitting(false);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
const getThankYou = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
88
|
+
react_1.default.createElement("p", null, "Thank you for registering. Please check your email to continue.")));
|
|
89
|
+
const getForm = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
90
|
+
react_1.default.createElement(components_1.ErrorMessages, { errors: errors }),
|
|
91
|
+
react_1.default.createElement("form", { onSubmit: register },
|
|
92
|
+
react_1.default.createElement(material_1.TextField, { fullWidth: true, name: "firstName", label: "First Name", value: user.firstName, onChange: handleChange }),
|
|
93
|
+
react_1.default.createElement(material_1.TextField, { fullWidth: true, name: "lastName", label: "Last Name", value: user.lastName, onChange: handleChange }),
|
|
94
|
+
react_1.default.createElement(material_1.TextField, { fullWidth: true, type: "email", name: "email", label: "Email", value: user.email, onChange: handleChange }),
|
|
95
|
+
react_1.default.createElement("br", null),
|
|
96
|
+
react_1.default.createElement(material_1.Stack, { direction: "row", sx: { marginTop: 1 }, spacing: 1, justifyContent: "end" },
|
|
97
|
+
props.loginCallback && (react_1.default.createElement(material_1.Button, { variant: "text", onClick: (e) => { e.preventDefault(); props.loginCallback(); } }, "Login")),
|
|
98
|
+
react_1.default.createElement(material_1.Button, { id: "signInButton", variant: "contained", disableElevation: true, type: "submit", disabled: isSubmitting, color: "primary", onClick: register, sx: { "&:focus": { outline: "none" } } }, isSubmitting ? "Please wait..." : "Register")))));
|
|
99
|
+
if (registered)
|
|
100
|
+
return getThankYou();
|
|
101
|
+
else
|
|
102
|
+
return getForm();
|
|
103
|
+
};
|
|
104
|
+
exports.Register = Register;
|
|
105
|
+
//# sourceMappingURL=Register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Register.js","sourceRoot":"","sources":["../../../src/pageComponents/components/Register.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAgD;AAEhD,2CAA2D;AAC3D,iDAAiD;AACjD,4CAA+D;AAUxD,MAAM,QAAQ,GAAoB,CAAC,KAAK,EAAE,EAAE;IAEjD,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;aAC1B;YACH,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;YAC3C,IAAI,KAAK,KAAK,CAAC,CAAC;gBAAE,OAAO,KAAK,CAAC,MAAM,CAAC;;gBACjC,OAAO,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SAC9C;IACH,CAAC,CAAA;IAED,MAAM,CAAC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S,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,cAAc,EAAC,KAAK;gBAC1E,KAAK,CAAC,aAAa,IAAI,CAAC,8BAAC,iBAAM,IAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,YAAgB,CAAC;gBAC/H,8BAAC,iBAAM,IAAC,EAAE,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAC,gBAAgB,QAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAC,SAAS,EAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAC3K,YAAY,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,CACtC,CACH,CACH,CACN,CAAC,CAAA;IAEJ,IAAI,UAAU;QAAE,OAAO,WAAW,EAAE,CAAC;;QAChC,OAAO,OAAO,EAAE,CAAC;AAExB,CAAC,CAAC;AA5FW,QAAA,QAAQ,YA4FnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChurchInterface, LoginUserChurchInterface } from "../../interfaces";
|
|
3
|
+
interface Props {
|
|
4
|
+
appName: string;
|
|
5
|
+
show: boolean;
|
|
6
|
+
userChurches?: LoginUserChurchInterface[];
|
|
7
|
+
selectChurch: (churchId: string) => void;
|
|
8
|
+
registeredChurchCallback?: (church: ChurchInterface) => void;
|
|
9
|
+
errors?: string[];
|
|
10
|
+
}
|
|
11
|
+
export declare const SelectChurchModal: React.FC<Props>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SelectChurchModal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchModal.d.ts","sourceRoot":"","sources":["../../../src/pageComponents/components/SelectChurchModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAM7E,UAAU,KAAK;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAC1C,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwB7C,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SelectChurchModal = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const SelectChurchSearch_1 = require("./SelectChurchSearch");
|
|
9
|
+
const SelectableChurch_1 = require("./SelectableChurch");
|
|
10
|
+
const components_1 = require("../../components");
|
|
11
|
+
const material_1 = require("@mui/material");
|
|
12
|
+
const SelectChurchModal = (props) => {
|
|
13
|
+
const [showSearch, setShowSearch] = react_1.default.useState(false);
|
|
14
|
+
const handleClose = () => {
|
|
15
|
+
window.location.reload();
|
|
16
|
+
};
|
|
17
|
+
const getContents = () => {
|
|
18
|
+
var _a, _b;
|
|
19
|
+
if (showSearch || ((_a = props.userChurches) === null || _a === void 0 ? void 0 : _a.length) === 0)
|
|
20
|
+
return react_1.default.createElement(SelectChurchSearch_1.SelectChurchSearch, { selectChurch: props.selectChurch, registeredChurchCallback: props.registeredChurchCallback, appName: props.appName });
|
|
21
|
+
else
|
|
22
|
+
return (react_1.default.createElement(react_1.default.Fragment, null, (_b = props.userChurches) === null || _b === void 0 ? void 0 :
|
|
23
|
+
_b.map(uc => (react_1.default.createElement(SelectableChurch_1.SelectableChurch, { church: uc.church, selectChurch: props.selectChurch, key: uc.church.id }))),
|
|
24
|
+
react_1.default.createElement("a", { href: "about:blank", style: { display: "block", textAlign: "center" }, onClick: (e) => { e.preventDefault(); setShowSearch(true); } }, "Choose another church")));
|
|
25
|
+
};
|
|
26
|
+
return (react_1.default.createElement(material_1.Dialog, { open: props.show, onClose: handleClose },
|
|
27
|
+
react_1.default.createElement(material_1.DialogTitle, null, "Select Church"),
|
|
28
|
+
react_1.default.createElement(material_1.DialogContent, { sx: { width: 500, maxWidth: "100%" } },
|
|
29
|
+
react_1.default.createElement(components_1.ErrorMessages, { errors: props.errors }),
|
|
30
|
+
getContents())));
|
|
31
|
+
};
|
|
32
|
+
exports.SelectChurchModal = SelectChurchModal;
|
|
33
|
+
//# sourceMappingURL=SelectChurchModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchModal.js","sourceRoot":"","sources":["../../../src/pageComponents/components/SelectChurchModal.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,6DAA0D;AAC1D,yDAAsD;AACtD,iDAAgD;AAChD,4CAAmE;AAW5D,MAAM,iBAAiB,GAAoB,CAAC,KAAK,EAAE,EAAE;IAC1D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1D,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAC3B,CAAC,CAAA;IAED,MAAM,WAAW,GAAG,GAAG,EAAE;;QACvB,IAAI,UAAU,IAAI,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|
|
5
|
+
registeredChurchCallback?: (church: ChurchInterface) => void;
|
|
6
|
+
selectChurch: (churchId: string) => void;
|
|
7
|
+
appName: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SelectChurchRegister: React.FC<Props>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=SelectChurchRegister.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchRegister.d.ts","sourceRoot":"","sources":["../../../src/pageComponents/components/SelectChurchRegister.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAkC,MAAM,kBAAkB,CAAC;AAInF,UAAU,KAAK;IACb,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAyEhD,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SelectChurchRegister = void 0;
|
|
16
|
+
const react_1 = __importDefault(require("react"));
|
|
17
|
+
const helpers_1 = require("../../helpers");
|
|
18
|
+
const components_1 = require("../../components");
|
|
19
|
+
const material_1 = require("@mui/material");
|
|
20
|
+
const SelectChurchRegister = (props) => {
|
|
21
|
+
const suggestSubDomain = (name) => {
|
|
22
|
+
let result = name.toLowerCase().replaceAll("christian", "").replaceAll("church", "").replaceAll(" ", "");
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
const [church, setChurch] = react_1.default.useState({ name: props.initialChurchName, appName: props.appName, subDomain: suggestSubDomain(props.initialChurchName) });
|
|
26
|
+
const [errors, setErrors] = react_1.default.useState([]);
|
|
27
|
+
const [isSubmitting, setIsSubmitting] = react_1.default.useState(false);
|
|
28
|
+
const handleChange = (e) => {
|
|
29
|
+
const c = Object.assign({}, church);
|
|
30
|
+
switch (e.target.name) {
|
|
31
|
+
case "name":
|
|
32
|
+
c.name = e.target.value;
|
|
33
|
+
break;
|
|
34
|
+
case "subDomain":
|
|
35
|
+
c.subDomain = e.target.value;
|
|
36
|
+
break;
|
|
37
|
+
case "address1":
|
|
38
|
+
c.address1 = e.target.value;
|
|
39
|
+
break;
|
|
40
|
+
case "address2":
|
|
41
|
+
c.address2 = e.target.value;
|
|
42
|
+
break;
|
|
43
|
+
case "city":
|
|
44
|
+
c.city = e.target.value;
|
|
45
|
+
break;
|
|
46
|
+
case "state":
|
|
47
|
+
c.state = e.target.value;
|
|
48
|
+
break;
|
|
49
|
+
case "zip":
|
|
50
|
+
c.zip = e.target.value;
|
|
51
|
+
break;
|
|
52
|
+
case "country":
|
|
53
|
+
c.country = e.target.value;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
setChurch(c);
|
|
57
|
+
};
|
|
58
|
+
const validate = () => {
|
|
59
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
60
|
+
let errors = [];
|
|
61
|
+
if (!((_a = church.name) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
62
|
+
errors.push("name cannot be blank.");
|
|
63
|
+
if (!((_b = church.subDomain) === null || _b === void 0 ? void 0 : _b.trim()))
|
|
64
|
+
errors.push("Subdomain cannot be blank.");
|
|
65
|
+
if (!((_c = church.address1) === null || _c === void 0 ? void 0 : _c.trim()))
|
|
66
|
+
errors.push("Address cannot be blank.");
|
|
67
|
+
if (!((_d = church.city) === null || _d === void 0 ? void 0 : _d.trim()))
|
|
68
|
+
errors.push("City cannot be blank.");
|
|
69
|
+
if (!((_e = church.state) === null || _e === void 0 ? void 0 : _e.trim()))
|
|
70
|
+
errors.push("State/Province cannot be blank.");
|
|
71
|
+
if (!((_f = church.zip) === null || _f === void 0 ? void 0 : _f.trim()))
|
|
72
|
+
errors.push("Zip/Postal cannot be blank.");
|
|
73
|
+
if (!((_g = church.country) === null || _g === void 0 ? void 0 : _g.trim()))
|
|
74
|
+
errors.push("Country cannot be blank.");
|
|
75
|
+
setErrors(errors);
|
|
76
|
+
return errors.length === 0;
|
|
77
|
+
};
|
|
78
|
+
const handleSave = () => {
|
|
79
|
+
if (validate()) {
|
|
80
|
+
setIsSubmitting(true);
|
|
81
|
+
helpers_1.ApiHelper.post("/churches/add", church, "MembershipApi").then((resp) => __awaiter(void 0, void 0, void 0, function* () {
|
|
82
|
+
setIsSubmitting(false);
|
|
83
|
+
if (resp.errors !== undefined)
|
|
84
|
+
setErrors(errors);
|
|
85
|
+
else {
|
|
86
|
+
if (props.registeredChurchCallback)
|
|
87
|
+
props.registeredChurchCallback(resp);
|
|
88
|
+
props.selectChurch(resp.id);
|
|
89
|
+
}
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
/*<TextField required fullWidth name="subDomain" label="Subdomain" id="subDomain" InputProps={{
|
|
94
|
+
endAdornment: <InputAdornment position="end">.churchapps.org</InputAdornment>
|
|
95
|
+
}} value={church.subDomain} onChange={handleChange} />
|
|
96
|
+
*/
|
|
97
|
+
return (react_1.default.createElement(components_1.InputBox, { id: "churchBox", saveFunction: handleSave, headerText: "Register a New Church", headerIcon: "church", isSubmitting: isSubmitting },
|
|
98
|
+
react_1.default.createElement(components_1.ErrorMessages, { errors: errors }),
|
|
99
|
+
react_1.default.createElement(material_1.TextField, { required: true, fullWidth: true, name: "name", label: "Church Name", value: church.name, onChange: handleChange }),
|
|
100
|
+
react_1.default.createElement(material_1.TextField, { required: true, fullWidth: true, name: "address1", label: "Address Line 1", value: church.address1, onChange: handleChange }),
|
|
101
|
+
react_1.default.createElement(material_1.Grid, { container: true, spacing: 3 },
|
|
102
|
+
react_1.default.createElement(material_1.Grid, { item: true, xs: 6 },
|
|
103
|
+
react_1.default.createElement(material_1.TextField, { fullWidth: true, name: "address2", label: "Address Line 2", value: church.address2, onChange: handleChange })),
|
|
104
|
+
react_1.default.createElement(material_1.Grid, { item: true, xs: 6 },
|
|
105
|
+
react_1.default.createElement(material_1.TextField, { required: true, fullWidth: true, name: "city", label: "City", value: church.city, onChange: handleChange }))),
|
|
106
|
+
react_1.default.createElement(material_1.Grid, { container: true, spacing: 3 },
|
|
107
|
+
react_1.default.createElement(material_1.Grid, { item: true, xs: 6 },
|
|
108
|
+
react_1.default.createElement(material_1.TextField, { required: true, fullWidth: true, name: "state", label: "State / Province", value: church.state, onChange: handleChange })),
|
|
109
|
+
react_1.default.createElement(material_1.Grid, { item: true, xs: 6 },
|
|
110
|
+
react_1.default.createElement(material_1.TextField, { required: true, fullWidth: true, name: "zip", label: "Zip / Postal", value: church.zip, onChange: handleChange }))),
|
|
111
|
+
react_1.default.createElement(material_1.TextField, { required: true, fullWidth: true, name: "country", label: "Country", value: church.country, onChange: handleChange })));
|
|
112
|
+
};
|
|
113
|
+
exports.SelectChurchRegister = SelectChurchRegister;
|
|
114
|
+
//# sourceMappingURL=SelectChurchRegister.js.map
|
|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AAS,IAAC,QAAQ,QAAC,SAAS,QAAC,IAAI,EAAC,KAAK,EAAC,KAAK,EAAC,cAAc,EAAC,KAAK,EAAE,MAAM,CAAC,GAAG,EAAE,QAAQ,EAAE,YAAY,GAAI,CAAO,CAC/H;QACP,8BAAC,oBAAS,IAAC,QAAQ,QAAC,SAAS,QAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,MAAM,CAAC,OAAO,EAAE,QAAQ,EAAE,YAAY,GAAI,CACrG,CACZ,CAAC;AACJ,CAAC,CAAC;AAzEW,QAAA,oBAAoB,wBAyE/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChurchInterface } from "../../interfaces";
|
|
3
|
+
interface Props {
|
|
4
|
+
selectChurch: (churchId: string) => void;
|
|
5
|
+
registeredChurchCallback?: (church: ChurchInterface) => void;
|
|
6
|
+
appName: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SelectChurchSearch: React.FC<Props>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=SelectChurchSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchSearch.d.ts","sourceRoot":"","sources":["../../../src/pageComponents/components/SelectChurchSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAInD,UAAU,KAAK;IACb,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,wBAAwB,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAuD9C,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SelectChurchSearch = void 0;
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const helpers_1 = require("../../helpers");
|
|
10
|
+
const SelectableChurch_1 = require("./SelectableChurch");
|
|
11
|
+
const SelectChurchRegister_1 = require("./SelectChurchRegister");
|
|
12
|
+
const SelectChurchSearch = (props) => {
|
|
13
|
+
const [searchText, setSearchText] = react_1.default.useState("");
|
|
14
|
+
const [churches, setChurches] = react_1.default.useState(null);
|
|
15
|
+
const [showRegister, setShowRegister] = react_1.default.useState(false);
|
|
16
|
+
const handleSubmit = (e) => {
|
|
17
|
+
if (e !== null)
|
|
18
|
+
e.preventDefault();
|
|
19
|
+
let term = escape(searchText.trim());
|
|
20
|
+
helpers_1.ApiHelper.post("/churches/search", { name: term }, "MembershipApi").then(data => setChurches(data));
|
|
21
|
+
};
|
|
22
|
+
const handleChange = (e) => setSearchText(e.currentTarget.value);
|
|
23
|
+
const handleKeyDown = (e) => { if (e.key === "Enter") {
|
|
24
|
+
e.preventDefault();
|
|
25
|
+
handleSubmit(null);
|
|
26
|
+
} };
|
|
27
|
+
const handleRegisterClick = (e) => {
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
if (window.confirm("Are you sure you wish to register a new church?")) {
|
|
30
|
+
setShowRegister(true);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
const getRegisterLink = () => (react_1.default.createElement("div", null,
|
|
34
|
+
react_1.default.createElement("a", { style: { display: "block", textAlign: "center" }, href: "about:blank", onClick: handleRegisterClick }, "Register a New Church")));
|
|
35
|
+
const getChurches = () => {
|
|
36
|
+
const result = [];
|
|
37
|
+
churches.forEach(church => {
|
|
38
|
+
result.push(react_1.default.createElement(SelectableChurch_1.SelectableChurch, { church: church, selectChurch: props.selectChurch }));
|
|
39
|
+
});
|
|
40
|
+
result.push(getRegisterLink());
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
const getResults = () => {
|
|
44
|
+
if (churches === null)
|
|
45
|
+
return;
|
|
46
|
+
else if (churches.length === 0)
|
|
47
|
+
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
48
|
+
react_1.default.createElement("p", null, "No matches found"),
|
|
49
|
+
getRegisterLink());
|
|
50
|
+
else
|
|
51
|
+
return getChurches();
|
|
52
|
+
};
|
|
53
|
+
if (showRegister)
|
|
54
|
+
return (react_1.default.createElement(SelectChurchRegister_1.SelectChurchRegister, { selectChurch: props.selectChurch, registeredChurchCallback: props.registeredChurchCallback, appName: props.appName, initialChurchName: searchText }));
|
|
55
|
+
else
|
|
56
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
57
|
+
react_1.default.createElement(material_1.TextField, { fullWidth: true, name: "searchText", label: "Name", value: searchText, onChange: handleChange, onKeyDown: handleKeyDown, InputProps: { endAdornment: react_1.default.createElement(material_1.Button, { variant: "contained", id: "searchButton", "data-cy": "search-button", onClick: handleSubmit }, "Search") } }),
|
|
58
|
+
getResults()));
|
|
59
|
+
};
|
|
60
|
+
exports.SelectChurchSearch = SelectChurchSearch;
|
|
61
|
+
//# sourceMappingURL=SelectChurchSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChurchSearch.js","sourceRoot":"","sources":["../../../src/pageComponents/components/SelectChurchSearch.tsx"],"names":[],"mappings":";;;;;;AAAA,4CAAkD;AAClD,kDAA0B;AAC1B,2CAAyC;AAEzC,yDAAsD;AACtD,iEAA8D;AAQvD,MAAM,kBAAkB,GAAoB,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACvD,MAAM,CAAC,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sBAuD7B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ChurchInterface } from "../../interfaces";
|
|
3
|
+
interface Props {
|
|
4
|
+
selectChurch: (churchId: string) => void;
|
|
5
|
+
church: ChurchInterface;
|
|
6
|
+
}
|
|
7
|
+
export declare const SelectableChurch: React.FC<Props>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=SelectableChurch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectableChurch.d.ts","sourceRoot":"","sources":["../../../src/pageComponents/components/SelectableChurch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAA2B,MAAM,kBAAkB,CAAC;AAE5E,UAAU,KAAK;IACb,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,MAAM,EAAE,eAAe,CAAA;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2B5C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SelectableChurch = void 0;
|
|
7
|
+
const material_1 = require("@mui/material");
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const helpers_1 = require("../../helpers");
|
|
10
|
+
const SelectableChurch = (props) => {
|
|
11
|
+
let logo = "/images/logo.png";
|
|
12
|
+
if (props.church.settings) {
|
|
13
|
+
let l = helpers_1.ArrayHelper.getOne(props.church.settings, "keyName", "logoLight");
|
|
14
|
+
if (l === null || l === void 0 ? void 0 : l.value)
|
|
15
|
+
logo = l.value;
|
|
16
|
+
}
|
|
17
|
+
return (react_1.default.createElement(material_1.Grid, { container: true, spacing: 3 },
|
|
18
|
+
react_1.default.createElement(material_1.Grid, { item: true, md: 6, xs: 12 },
|
|
19
|
+
react_1.default.createElement("a", { href: "about:blank", style: { fontSize: "1.125rem", display: "block", marginTop: 15, marginBottom: 15 }, onClick: (e) => { e.preventDefault(); props.selectChurch(props.church.id); } },
|
|
20
|
+
react_1.default.createElement("img", { src: logo, alt: "church logo", className: "w-100 img-fluid" }))),
|
|
21
|
+
react_1.default.createElement(material_1.Grid, { item: true, md: 6, xs: 12 },
|
|
22
|
+
react_1.default.createElement("div", null,
|
|
23
|
+
react_1.default.createElement("a", { href: "about:blank", style: { fontSize: "1.125rem", display: "block" }, onClick: (e) => { e.preventDefault(); props.selectChurch(props.church.id); } }, props.church.name),
|
|
24
|
+
(props.church.address1) && react_1.default.createElement("div", null, props.church.address1),
|
|
25
|
+
(props.church.city || props.church.state) && react_1.default.createElement("div", null,
|
|
26
|
+
props.church.city && props.church.city + ", ",
|
|
27
|
+
props.church.state))),
|
|
28
|
+
react_1.default.createElement("span", { style: { display: "block", width: "100%", borderTop: "1px solid #ccc", margin: "1rem" } })));
|
|
29
|
+
};
|
|
30
|
+
exports.SelectableChurch = SelectableChurch;
|
|
31
|
+
//# sourceMappingURL=SelectableChurch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectableChurch.js","sourceRoot":"","sources":["../../../src/pageComponents/components/SelectableChurch.tsx"],"names":[],"mappings":";;;;;;AAAA,4CAAqC;AACrC,kDAA0B;AAC1B,2CAA2C;AAQpC,MAAM,gBAAgB,GAAoB,CAAC,KAAK,EAAE,EAAE;IAEzD,IAAI,IAAI,GAAG,kBAAkB,CAAC;IAC9B,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE;QACzB,IAAI,CAAC,GAA4B,qBAAW,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,C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C,MAAM,CAAC,KAAK,CAAC,IAAI;oBAC3C,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI;oBAC7C,KAAK,CAAC,MAAM,CAAC,KAAK,CACf,CACF,CACD;QACP,wCAAM,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,EAAE,GAAS,CACjG,CACR,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,gBAAgB,oBA2B3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pageComponents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Register = exports.LogoutPage = exports.LoginPage = void 0;
|
|
4
|
+
var LoginPage_1 = require("./LoginPage");
|
|
5
|
+
Object.defineProperty(exports, "LoginPage", { enumerable: true, get: function () { return LoginPage_1.LoginPage; } });
|
|
6
|
+
var LogoutPage_1 = require("./LogoutPage");
|
|
7
|
+
Object.defineProperty(exports, "LogoutPage", { enumerable: true, get: function () { return LogoutPage_1.LogoutPage; } });
|
|
8
|
+
var Register_1 = require("./components/Register");
|
|
9
|
+
Object.defineProperty(exports, "Register", { enumerable: true, get: function () { return Register_1.Register; } });
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/pageComponents/index.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,kDAAiD;AAAxC,oGAAA,QAAQ,OAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@churchapps/apphelper",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Library of helper functions for React and NextJS ChurchApps",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"clean": "rimraf dist",
|
|
9
|
+
"link": "link",
|
|
10
|
+
"tsc": "tsc",
|
|
11
|
+
"build": "npm-run-all clean tsc"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/LiveChurchSolutions/AppHelper.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"ChurchApps"
|
|
19
|
+
],
|
|
20
|
+
"author": "ChurchApps.org",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/LiveChurchSolutions/AppHelper/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/LiveChurchSolutions/AppHelper#readme",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@churchapps/helpers": "^1.0.6",
|
|
28
|
+
"@emotion/cache": "^11.11.0",
|
|
29
|
+
"@emotion/react": "^11.11.1",
|
|
30
|
+
"@emotion/styled": "^11.11.0",
|
|
31
|
+
"@lexical/code": "^0.12.0",
|
|
32
|
+
"@lexical/link": "^0.12.0",
|
|
33
|
+
"@lexical/list": "^0.12.0",
|
|
34
|
+
"@lexical/markdown": "^0.12.0",
|
|
35
|
+
"@lexical/react": "^0.12.0",
|
|
36
|
+
"@lexical/rich-text": "^0.12.0",
|
|
37
|
+
"@lexical/selection": "^0.12.0",
|
|
38
|
+
"@lexical/table": "^0.12.0",
|
|
39
|
+
"@lexical/utils": "^0.12.0",
|
|
40
|
+
"@mui/lab": "^5.0.0-alpha.142",
|
|
41
|
+
"@mui/material": "^5.14.7",
|
|
42
|
+
"@stripe/react-stripe-js": "^2.1.2",
|
|
43
|
+
"@stripe/stripe-js": "^2.1.0",
|
|
44
|
+
"axios": "^1.5.0",
|
|
45
|
+
"cropperjs": "^1.6.0",
|
|
46
|
+
"date-fns": "^2.30.0",
|
|
47
|
+
"flexsearch": "^0.7.31",
|
|
48
|
+
"jwt-decode": "^3.1.2",
|
|
49
|
+
"lexical": "^0.12.0",
|
|
50
|
+
"material-symbols": "^0.11.0",
|
|
51
|
+
"react": "^18.2.0",
|
|
52
|
+
"react-dom": "^18.2.0",
|
|
53
|
+
"react-activity": "^2.1.3",
|
|
54
|
+
"react-cookie": "^6.1.0",
|
|
55
|
+
"react-cropper": "^2.3.3",
|
|
56
|
+
"react-csv": "^2.2.2",
|
|
57
|
+
"react-ga4": "^2.1.0",
|
|
58
|
+
"react-google-charts": "^4.0.1",
|
|
59
|
+
"react-google-recaptcha": "^3.1.0",
|
|
60
|
+
"react-router-dom": "^6.15.0",
|
|
61
|
+
"react-to-print": "^2.14.13",
|
|
62
|
+
"rrule": "^2.7.2"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@types/node": "^20.5.7",
|
|
66
|
+
"@types/react": "^18.2.21",
|
|
67
|
+
"@types/react-csv": "^1.1.3",
|
|
68
|
+
"@types/react-dom": "^18.2.7",
|
|
69
|
+
"@types/react-google-recaptcha": "^2.1.5",
|
|
70
|
+
"eslint-config-react-app": "^7.0.1",
|
|
71
|
+
"eslint-plugin-react": "^7.33.2",
|
|
72
|
+
"npm-run-all": "^4.1.5",
|
|
73
|
+
"rimraf": "^5.0.1",
|
|
74
|
+
"tslint": "^6.1.2",
|
|
75
|
+
"typescript": "^5.2.2"
|
|
76
|
+
}
|
|
77
|
+
}
|