@churchapps/apphelper 0.4.11 → 0.4.17
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/dist/components/DisplayBox.js +12 -18
- package/dist/components/DisplayBox.js.map +1 -1
- package/dist/components/ErrorMessages.js +9 -46
- package/dist/components/ErrorMessages.js.map +1 -1
- package/dist/components/ExportLink.d.ts.map +1 -1
- package/dist/components/ExportLink.js +8 -10
- package/dist/components/ExportLink.js.map +1 -1
- package/dist/components/FloatingSupport.js +7 -14
- package/dist/components/FloatingSupport.js.map +1 -1
- package/dist/components/FormCardPayment.d.ts.map +1 -1
- package/dist/components/FormCardPayment.js +28 -64
- package/dist/components/FormCardPayment.js.map +1 -1
- package/dist/components/FormSubmissionEdit.js +28 -65
- package/dist/components/FormSubmissionEdit.js.map +1 -1
- package/dist/components/HelpIcon.js +3 -7
- package/dist/components/HelpIcon.js.map +1 -1
- package/dist/components/ImageEditor.d.ts.map +1 -1
- package/dist/components/ImageEditor.js +13 -19
- package/dist/components/ImageEditor.js.map +1 -1
- package/dist/components/InputBox.d.ts.map +1 -1
- package/dist/components/InputBox.js +13 -15
- package/dist/components/InputBox.js.map +1 -1
- package/dist/components/Loading.d.ts +0 -1
- package/dist/components/Loading.d.ts.map +1 -1
- package/dist/components/Loading.js +52 -12
- package/dist/components/Loading.js.map +1 -1
- package/dist/components/QuestionEdit.js +20 -26
- package/dist/components/QuestionEdit.js.map +1 -1
- package/dist/components/SmallButton.js +9 -15
- package/dist/components/SmallButton.js.map +1 -1
- package/dist/components/SupportModal.d.ts.map +1 -1
- package/dist/components/SupportModal.js +5 -9
- package/dist/components/SupportModal.js.map +1 -1
- package/dist/components/TabPanel.js +5 -9
- package/dist/components/TabPanel.js.map +1 -1
- package/dist/components/header/Banner.js +3 -7
- package/dist/components/header/Banner.js.map +1 -1
- package/dist/components/header/PrimaryMenu.d.ts.map +1 -1
- package/dist/components/header/PrimaryMenu.js +30 -30
- package/dist/components/header/PrimaryMenu.js.map +1 -1
- package/dist/components/header/SecondaryMenu.js +6 -10
- package/dist/components/header/SecondaryMenu.js.map +1 -1
- package/dist/components/header/SecondaryMenuAlt.js +8 -15
- package/dist/components/header/SecondaryMenuAlt.js.map +1 -1
- package/dist/components/header/SiteHeader.js +12 -16
- package/dist/components/header/SiteHeader.js.map +1 -1
- package/dist/components/header/SupportDrawer.js +14 -18
- package/dist/components/header/SupportDrawer.js.map +1 -1
- package/dist/components/header/index.js +2 -7
- package/dist/components/header/index.js.map +1 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +16 -52
- package/dist/components/index.js.map +1 -1
- package/dist/components/notes/AddNote.js +17 -53
- package/dist/components/notes/AddNote.js.map +1 -1
- package/dist/components/notes/Note.js +11 -15
- package/dist/components/notes/Note.js.map +1 -1
- package/dist/components/notes/Notes.js +21 -27
- package/dist/components/notes/Notes.js.map +1 -1
- package/dist/components/notes/index.js +3 -9
- package/dist/components/notes/index.js.map +1 -1
- package/dist/components/wrapper/AppList.d.ts.map +1 -1
- package/dist/components/wrapper/AppList.js +7 -13
- package/dist/components/wrapper/AppList.js.map +1 -1
- package/dist/components/wrapper/ChurchList.js +16 -20
- package/dist/components/wrapper/ChurchList.js.map +1 -1
- package/dist/components/wrapper/Drawers.js +5 -10
- package/dist/components/wrapper/Drawers.js.map +1 -1
- package/dist/components/wrapper/NavItem.js +11 -15
- package/dist/components/wrapper/NavItem.js.map +1 -1
- package/dist/components/wrapper/NewPrivateMessage.js +19 -56
- package/dist/components/wrapper/NewPrivateMessage.js.map +1 -1
- package/dist/components/wrapper/Notifications.js +19 -50
- package/dist/components/wrapper/Notifications.js.map +1 -1
- package/dist/components/wrapper/PrivateMessageDetails.js +5 -9
- package/dist/components/wrapper/PrivateMessageDetails.js.map +1 -1
- package/dist/components/wrapper/PrivateMessages.d.ts.map +1 -1
- package/dist/components/wrapper/PrivateMessages.js +26 -60
- package/dist/components/wrapper/PrivateMessages.js.map +1 -1
- package/dist/components/wrapper/SiteWrapper.d.ts.map +1 -1
- package/dist/components/wrapper/SiteWrapper.js +42 -42
- package/dist/components/wrapper/SiteWrapper.js.map +1 -1
- package/dist/components/wrapper/TabPanel.js +5 -8
- package/dist/components/wrapper/TabPanel.js.map +1 -1
- package/dist/components/wrapper/UserMenu.d.ts.map +1 -1
- package/dist/components/wrapper/UserMenu.js +35 -44
- package/dist/components/wrapper/UserMenu.js.map +1 -1
- package/dist/components/wrapper/index.js +7 -17
- package/dist/components/wrapper/index.js.map +1 -1
- package/dist/helpers/AnalyticsHelper.d.ts.map +1 -1
- package/dist/helpers/AnalyticsHelper.js +11 -19
- package/dist/helpers/AnalyticsHelper.js.map +1 -1
- package/dist/helpers/ApiHelper.js +3 -7
- package/dist/helpers/ApiHelper.js.map +1 -1
- package/dist/helpers/AppearanceHelper.js +1 -5
- package/dist/helpers/AppearanceHelper.js.map +1 -1
- package/dist/helpers/ArrayHelper.js +3 -7
- package/dist/helpers/ArrayHelper.js.map +1 -1
- package/dist/helpers/CurrencyHelper.js +1 -5
- package/dist/helpers/CurrencyHelper.js.map +1 -1
- package/dist/helpers/DateHelper.js +3 -7
- package/dist/helpers/DateHelper.js.map +1 -1
- package/dist/helpers/ErrorHelper.js +3 -7
- package/dist/helpers/ErrorHelper.js.map +1 -1
- package/dist/helpers/EventHelper.js +5 -9
- package/dist/helpers/EventHelper.js.map +1 -1
- package/dist/helpers/FileHelper.js +3 -10
- package/dist/helpers/FileHelper.js.map +1 -1
- package/dist/helpers/Locale.js +11 -18
- package/dist/helpers/Locale.js.map +1 -1
- package/dist/helpers/PersonHelper.d.ts.map +1 -1
- package/dist/helpers/PersonHelper.js +5 -9
- package/dist/helpers/PersonHelper.js.map +1 -1
- package/dist/helpers/SlugHelper.js +4 -11
- package/dist/helpers/SlugHelper.js.map +1 -1
- package/dist/helpers/SocketHelper.d.ts +12 -0
- package/dist/helpers/SocketHelper.d.ts.map +1 -1
- package/dist/helpers/SocketHelper.js +157 -43
- package/dist/helpers/SocketHelper.js.map +1 -1
- package/dist/helpers/UniqueIdHelper.js +1 -5
- package/dist/helpers/UniqueIdHelper.js.map +1 -1
- package/dist/helpers/UserHelper.js +7 -11
- package/dist/helpers/UserHelper.js.map +1 -1
- package/dist/helpers/createEmotionCache.js +3 -9
- package/dist/helpers/createEmotionCache.js.map +1 -1
- package/dist/helpers/index.d.ts +5 -16
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +9 -54
- package/dist/helpers/index.js.map +1 -1
- package/dist/hooks/index.js +1 -5
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/useMountedState.js +5 -9
- package/dist/hooks/useMountedState.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -22
- package/dist/index.js.map +1 -1
- package/package.json +6 -28
- package/src/components/ExportLink.tsx +12 -3
- package/src/components/FormCardPayment.tsx +2 -1
- package/src/components/ImageEditor.tsx +15 -12
- package/src/components/InputBox.tsx +2 -1
- package/src/components/Loading.tsx +47 -1
- package/src/components/SupportModal.tsx +8 -3
- package/src/components/header/PrimaryMenu.tsx +85 -42
- package/src/components/index.tsx +0 -5
- package/src/components/wrapper/AppList.tsx +1 -4
- package/src/components/wrapper/Notifications.tsx +2 -2
- package/src/components/wrapper/PrivateMessages.tsx +10 -1
- package/src/components/wrapper/SiteWrapper.tsx +24 -13
- package/src/components/wrapper/UserMenu.tsx +1 -4
- package/src/helpers/AnalyticsHelper.ts +1 -2
- package/src/helpers/Locale.ts +1 -1
- package/src/helpers/PersonHelper.ts +1 -2
- package/src/helpers/SocketHelper.ts +176 -37
- package/src/helpers/index.ts +44 -16
- package/src/index.ts +1 -4
- package/tsconfig.json +2 -2
- package/.eslintignore +0 -4
- package/.github/FUNDING.yml +0 -1
- package/.vscode/settings.json +0 -6
- package/CHUMS_COMPONENT_EXTRACTION_CANDIDATES.md +0 -210
- package/CLAUDE.md +0 -111
- package/COMPONENT_USAGE_REPORT.md +0 -322
- package/LICENSE +0 -21
- package/README.md +0 -24
- package/b1app-specific-components.md +0 -146
- package/component-usage-analysis.md +0 -169
- package/dist/components/markdownEditor/Editor.d.ts +0 -13
- package/dist/components/markdownEditor/Editor.d.ts.map +0 -1
- package/dist/components/markdownEditor/Editor.js +0 -92
- package/dist/components/markdownEditor/Editor.js.map +0 -1
- package/dist/components/markdownEditor/IconNamesList.d.ts +0 -3
- package/dist/components/markdownEditor/IconNamesList.d.ts.map +0 -1
- package/dist/components/markdownEditor/IconNamesList.js +0 -16
- package/dist/components/markdownEditor/IconNamesList.js.map +0 -1
- package/dist/components/markdownEditor/MarkdownEditor.d.ts +0 -10
- package/dist/components/markdownEditor/MarkdownEditor.d.ts.map +0 -1
- package/dist/components/markdownEditor/MarkdownEditor.js +0 -45
- package/dist/components/markdownEditor/MarkdownEditor.js.map +0 -1
- package/dist/components/markdownEditor/MarkdownModal.d.ts +0 -9
- package/dist/components/markdownEditor/MarkdownModal.d.ts.map +0 -1
- package/dist/components/markdownEditor/MarkdownModal.js +0 -24
- package/dist/components/markdownEditor/MarkdownModal.js.map +0 -1
- package/dist/components/markdownEditor/MarkdownPreview.d.ts +0 -9
- package/dist/components/markdownEditor/MarkdownPreview.d.ts.map +0 -1
- package/dist/components/markdownEditor/MarkdownPreview.js +0 -45
- package/dist/components/markdownEditor/MarkdownPreview.js.map +0 -1
- package/dist/components/markdownEditor/MarkdownPreviewLight.d.ts +0 -7
- package/dist/components/markdownEditor/MarkdownPreviewLight.d.ts.map +0 -1
- package/dist/components/markdownEditor/MarkdownPreviewLight.js +0 -53
- package/dist/components/markdownEditor/MarkdownPreviewLight.js.map +0 -1
- package/dist/components/markdownEditor/editor.css +0 -787
- package/dist/components/markdownEditor/images/emoji/1F600.png +0 -0
- package/dist/components/markdownEditor/images/emoji/1F641.png +0 -0
- package/dist/components/markdownEditor/images/emoji/1F642.png +0 -0
- package/dist/components/markdownEditor/images/emoji/2764.png +0 -0
- package/dist/components/markdownEditor/images/icons/arrow-clockwise.svg +0 -4
- package/dist/components/markdownEditor/images/icons/arrow-counterclockwise.svg +0 -4
- package/dist/components/markdownEditor/images/icons/chat-square-quote.svg +0 -4
- package/dist/components/markdownEditor/images/icons/chevron-down.svg +0 -3
- package/dist/components/markdownEditor/images/icons/code.svg +0 -3
- package/dist/components/markdownEditor/images/icons/journal-code.svg +0 -5
- package/dist/components/markdownEditor/images/icons/journal-text.svg +0 -5
- package/dist/components/markdownEditor/images/icons/justify.svg +0 -3
- package/dist/components/markdownEditor/images/icons/link.svg +0 -4
- package/dist/components/markdownEditor/images/icons/list-ol.svg +0 -4
- package/dist/components/markdownEditor/images/icons/list-ul.svg +0 -3
- package/dist/components/markdownEditor/images/icons/pencil-fill.svg +0 -3
- package/dist/components/markdownEditor/images/icons/text-center.svg +0 -3
- package/dist/components/markdownEditor/images/icons/text-left.svg +0 -3
- package/dist/components/markdownEditor/images/icons/text-paragraph.svg +0 -3
- package/dist/components/markdownEditor/images/icons/text-right.svg +0 -3
- package/dist/components/markdownEditor/images/icons/type-bold.svg +0 -3
- package/dist/components/markdownEditor/images/icons/type-h1.svg +0 -3
- package/dist/components/markdownEditor/images/icons/type-h2.svg +0 -3
- package/dist/components/markdownEditor/images/icons/type-h3.svg +0 -3
- package/dist/components/markdownEditor/images/icons/type-h4.svg +0 -13
- package/dist/components/markdownEditor/images/icons/type-italic.svg +0 -3
- package/dist/components/markdownEditor/images/icons/type-strikethrough.svg +0 -3
- package/dist/components/markdownEditor/images/icons/type-underline.svg +0 -3
- package/dist/components/markdownEditor/index.d.ts +0 -4
- package/dist/components/markdownEditor/index.d.ts.map +0 -1
- package/dist/components/markdownEditor/index.js +0 -10
- package/dist/components/markdownEditor/index.js.map +0 -1
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.d.ts +0 -2
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.js +0 -31
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts +0 -8
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.js +0 -19
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.d.ts +0 -6
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.js +0 -310
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.d.ts +0 -2
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.js +0 -19
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.js.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.d.ts +0 -2
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.js +0 -21
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.js.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.d.ts +0 -2
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.js +0 -29
- package/dist/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.js.map +0 -1
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts +0 -2
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js +0 -45
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.d.ts +0 -12
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.js +0 -85
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.js.map +0 -1
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts +0 -6
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.js +0 -12
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.d.ts +0 -7
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.js +0 -282
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts +0 -27
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.js +0 -158
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.js.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts +0 -4
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js +0 -21
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts +0 -3
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js +0 -71
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts +0 -5
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js +0 -190
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts +0 -11
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js +0 -3
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.d.ts +0 -24
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.js +0 -66
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.js.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts +0 -4
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js +0 -35
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts +0 -9
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js +0 -103
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts +0 -10
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js +0 -59
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js.map +0 -1
- package/dist/components/markdownEditor/plugins/index.d.ts +0 -7
- package/dist/components/markdownEditor/plugins/index.d.ts.map +0 -1
- package/dist/components/markdownEditor/plugins/index.js +0 -16
- package/dist/components/markdownEditor/plugins/index.js.map +0 -1
- package/dist/components/markdownEditor/theme.d.ts +0 -66
- package/dist/components/markdownEditor/theme.d.ts.map +0 -1
- package/dist/components/markdownEditor/theme.js +0 -69
- package/dist/components/markdownEditor/theme.js.map +0 -1
- package/dist/components/reporting/ChartReport.d.ts +0 -8
- package/dist/components/reporting/ChartReport.d.ts.map +0 -1
- package/dist/components/reporting/ChartReport.js +0 -81
- package/dist/components/reporting/ChartReport.js.map +0 -1
- package/dist/components/reporting/ReportFilter.d.ts +0 -9
- package/dist/components/reporting/ReportFilter.d.ts.map +0 -1
- package/dist/components/reporting/ReportFilter.js +0 -52
- package/dist/components/reporting/ReportFilter.js.map +0 -1
- package/dist/components/reporting/ReportFilterField.d.ts +0 -9
- package/dist/components/reporting/ReportFilterField.d.ts.map +0 -1
- package/dist/components/reporting/ReportFilterField.js +0 -156
- package/dist/components/reporting/ReportFilterField.js.map +0 -1
- package/dist/components/reporting/ReportOutput.d.ts +0 -8
- package/dist/components/reporting/ReportOutput.d.ts.map +0 -1
- package/dist/components/reporting/ReportOutput.js +0 -177
- package/dist/components/reporting/ReportOutput.js.map +0 -1
- package/dist/components/reporting/ReportWithFilter.d.ts +0 -7
- package/dist/components/reporting/ReportWithFilter.d.ts.map +0 -1
- package/dist/components/reporting/ReportWithFilter.js +0 -65
- package/dist/components/reporting/ReportWithFilter.js.map +0 -1
- package/dist/components/reporting/TableReport.d.ts +0 -8
- package/dist/components/reporting/TableReport.d.ts.map +0 -1
- package/dist/components/reporting/TableReport.js +0 -30
- package/dist/components/reporting/TableReport.js.map +0 -1
- package/dist/components/reporting/TreeReport.d.ts +0 -8
- package/dist/components/reporting/TreeReport.d.ts.map +0 -1
- package/dist/components/reporting/TreeReport.js +0 -89
- package/dist/components/reporting/TreeReport.js.map +0 -1
- package/dist/components/reporting/index.d.ts +0 -5
- package/dist/components/reporting/index.d.ts.map +0 -1
- package/dist/components/reporting/index.js +0 -12
- package/dist/components/reporting/index.js.map +0 -1
- package/dist/donationComponents/components/BankForm.d.ts +0 -14
- package/dist/donationComponents/components/BankForm.d.ts.map +0 -1
- package/dist/donationComponents/components/BankForm.js +0 -126
- package/dist/donationComponents/components/BankForm.js.map +0 -1
- package/dist/donationComponents/components/CardForm.d.ts +0 -13
- package/dist/donationComponents/components/CardForm.d.ts.map +0 -1
- package/dist/donationComponents/components/CardForm.js +0 -122
- package/dist/donationComponents/components/CardForm.js.map +0 -1
- package/dist/donationComponents/components/DonationForm.d.ts +0 -15
- package/dist/donationComponents/components/DonationForm.d.ts.map +0 -1
- package/dist/donationComponents/components/DonationForm.js +0 -199
- package/dist/donationComponents/components/DonationForm.js.map +0 -1
- package/dist/donationComponents/components/FundDonation.d.ts +0 -12
- package/dist/donationComponents/components/FundDonation.d.ts.map +0 -1
- package/dist/donationComponents/components/FundDonation.js +0 -32
- package/dist/donationComponents/components/FundDonation.js.map +0 -1
- package/dist/donationComponents/components/FundDonations.d.ts +0 -11
- package/dist/donationComponents/components/FundDonations.d.ts.map +0 -1
- package/dist/donationComponents/components/FundDonations.js +0 -33
- package/dist/donationComponents/components/FundDonations.js.map +0 -1
- package/dist/donationComponents/components/PaymentMethods.d.ts +0 -14
- package/dist/donationComponents/components/PaymentMethods.d.ts.map +0 -1
- package/dist/donationComponents/components/PaymentMethods.js +0 -84
- package/dist/donationComponents/components/PaymentMethods.js.map +0 -1
- package/dist/donationComponents/components/RecurringDonations.d.ts +0 -10
- package/dist/donationComponents/components/RecurringDonations.d.ts.map +0 -1
- package/dist/donationComponents/components/RecurringDonations.js +0 -93
- package/dist/donationComponents/components/RecurringDonations.js.map +0 -1
- package/dist/donationComponents/components/RecurringDonationsEdit.d.ts +0 -11
- package/dist/donationComponents/components/RecurringDonationsEdit.d.ts.map +0 -1
- package/dist/donationComponents/components/RecurringDonationsEdit.js +0 -66
- package/dist/donationComponents/components/RecurringDonationsEdit.js.map +0 -1
- package/dist/donationComponents/components/index.d.ts +0 -9
- package/dist/donationComponents/components/index.d.ts.map +0 -1
- package/dist/donationComponents/components/index.js +0 -20
- package/dist/donationComponents/components/index.js.map +0 -1
- package/dist/donationComponents/index.d.ts +0 -3
- package/dist/donationComponents/index.d.ts.map +0 -1
- package/dist/donationComponents/index.js +0 -21
- package/dist/donationComponents/index.js.map +0 -1
- package/dist/donationComponents/modals/DonationPreviewModal.d.ts +0 -15
- package/dist/donationComponents/modals/DonationPreviewModal.d.ts.map +0 -1
- package/dist/donationComponents/modals/DonationPreviewModal.js +0 -33
- package/dist/donationComponents/modals/DonationPreviewModal.js.map +0 -1
- package/dist/helpers/CommonEnvironmentHelper.d.ts +0 -21
- package/dist/helpers/CommonEnvironmentHelper.d.ts.map +0 -1
- package/dist/helpers/CommonEnvironmentHelper.js +0 -100
- package/dist/helpers/CommonEnvironmentHelper.js.map +0 -1
- package/dist/helpers/DonationHelper.d.ts +0 -8
- package/dist/helpers/DonationHelper.d.ts.map +0 -1
- package/dist/helpers/DonationHelper.js +0 -33
- package/dist/helpers/DonationHelper.js.map +0 -1
- package/dist/helpers/ReportHelper.d.ts +0 -5
- package/dist/helpers/ReportHelper.d.ts.map +0 -1
- package/dist/helpers/ReportHelper.js +0 -37
- package/dist/helpers/ReportHelper.js.map +0 -1
- package/dist/pageComponents/LoginPage.d.ts +0 -25
- package/dist/pageComponents/LoginPage.d.ts.map +0 -1
- package/dist/pageComponents/LoginPage.js +0 -288
- package/dist/pageComponents/LoginPage.js.map +0 -1
- package/dist/pageComponents/LogoutPage.d.ts +0 -9
- package/dist/pageComponents/LogoutPage.d.ts.map +0 -1
- package/dist/pageComponents/LogoutPage.js +0 -37
- package/dist/pageComponents/LogoutPage.js.map +0 -1
- package/dist/pageComponents/components/Forgot.d.ts +0 -8
- package/dist/pageComponents/components/Forgot.d.ts.map +0 -1
- package/dist/pageComponents/components/Forgot.js +0 -53
- package/dist/pageComponents/components/Forgot.js.map +0 -1
- package/dist/pageComponents/components/Login.d.ts +0 -15
- package/dist/pageComponents/components/Login.d.ts.map +0 -1
- package/dist/pageComponents/components/Login.js +0 -73
- package/dist/pageComponents/components/Login.js.map +0 -1
- package/dist/pageComponents/components/LoginSetPassword.d.ts +0 -13
- package/dist/pageComponents/components/LoginSetPassword.d.ts.map +0 -1
- package/dist/pageComponents/components/LoginSetPassword.js +0 -112
- package/dist/pageComponents/components/LoginSetPassword.js.map +0 -1
- package/dist/pageComponents/components/Register.d.ts +0 -12
- package/dist/pageComponents/components/Register.d.ts.map +0 -1
- package/dist/pageComponents/components/Register.js +0 -95
- package/dist/pageComponents/components/Register.js.map +0 -1
- package/dist/pageComponents/components/SelectChurchModal.d.ts +0 -14
- package/dist/pageComponents/components/SelectChurchModal.d.ts.map +0 -1
- package/dist/pageComponents/components/SelectChurchModal.js +0 -37
- package/dist/pageComponents/components/SelectChurchModal.js.map +0 -1
- package/dist/pageComponents/components/SelectChurchRegister.d.ts +0 -11
- package/dist/pageComponents/components/SelectChurchRegister.d.ts.map +0 -1
- package/dist/pageComponents/components/SelectChurchRegister.js +0 -89
- package/dist/pageComponents/components/SelectChurchRegister.js.map +0 -1
- package/dist/pageComponents/components/SelectChurchSearch.d.ts +0 -10
- package/dist/pageComponents/components/SelectChurchSearch.d.ts.map +0 -1
- package/dist/pageComponents/components/SelectChurchSearch.js +0 -58
- package/dist/pageComponents/components/SelectChurchSearch.js.map +0 -1
- package/dist/pageComponents/components/SelectableChurch.d.ts +0 -9
- package/dist/pageComponents/components/SelectableChurch.d.ts.map +0 -1
- package/dist/pageComponents/components/SelectableChurch.js +0 -18
- package/dist/pageComponents/components/SelectableChurch.js.map +0 -1
- package/dist/pageComponents/index.d.ts +0 -4
- package/dist/pageComponents/index.d.ts.map +0 -1
- package/dist/pageComponents/index.js +0 -10
- package/dist/pageComponents/index.js.map +0 -1
- package/src/components/markdownEditor/Editor.tsx +0 -150
- package/src/components/markdownEditor/IconNamesList.ts +0 -14
- package/src/components/markdownEditor/MarkdownEditor.tsx +0 -18
- package/src/components/markdownEditor/MarkdownModal.tsx +0 -49
- package/src/components/markdownEditor/MarkdownPreview.tsx +0 -18
- package/src/components/markdownEditor/MarkdownPreviewLight.tsx +0 -53
- package/src/components/markdownEditor/editor.css +0 -787
- 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 +0 -4
- package/src/components/markdownEditor/images/icons/arrow-counterclockwise.svg +0 -4
- package/src/components/markdownEditor/images/icons/chat-square-quote.svg +0 -4
- package/src/components/markdownEditor/images/icons/chevron-down.svg +0 -3
- package/src/components/markdownEditor/images/icons/code.svg +0 -3
- package/src/components/markdownEditor/images/icons/journal-code.svg +0 -5
- package/src/components/markdownEditor/images/icons/journal-text.svg +0 -5
- package/src/components/markdownEditor/images/icons/justify.svg +0 -3
- package/src/components/markdownEditor/images/icons/link.svg +0 -4
- package/src/components/markdownEditor/images/icons/list-ol.svg +0 -4
- package/src/components/markdownEditor/images/icons/list-ul.svg +0 -3
- package/src/components/markdownEditor/images/icons/pencil-fill.svg +0 -3
- package/src/components/markdownEditor/images/icons/text-center.svg +0 -3
- package/src/components/markdownEditor/images/icons/text-left.svg +0 -3
- package/src/components/markdownEditor/images/icons/text-paragraph.svg +0 -3
- package/src/components/markdownEditor/images/icons/text-right.svg +0 -3
- package/src/components/markdownEditor/images/icons/type-bold.svg +0 -3
- package/src/components/markdownEditor/images/icons/type-h1.svg +0 -3
- package/src/components/markdownEditor/images/icons/type-h2.svg +0 -3
- package/src/components/markdownEditor/images/icons/type-h3.svg +0 -3
- package/src/components/markdownEditor/images/icons/type-h4.svg +0 -13
- package/src/components/markdownEditor/images/icons/type-italic.svg +0 -3
- package/src/components/markdownEditor/images/icons/type-strikethrough.svg +0 -3
- package/src/components/markdownEditor/images/icons/type-underline.svg +0 -3
- package/src/components/markdownEditor/index.ts +0 -3
- package/src/components/markdownEditor/plugins/AutoLinkPlugin.tsx +0 -35
- package/src/components/markdownEditor/plugins/ControlledEditorPlugin.tsx +0 -24
- package/src/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.tsx +0 -445
- package/src/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.tsx +0 -17
- package/src/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.tsx +0 -17
- package/src/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.tsx +0 -33
- package/src/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.tsx +0 -68
- package/src/components/markdownEditor/plugins/MarkdownTransformers.ts +0 -106
- package/src/components/markdownEditor/plugins/ReadOnlyPlugin.tsx +0 -15
- package/src/components/markdownEditor/plugins/ToolbarPlugin.tsx +0 -424
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNode.tsx +0 -224
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.tsx +0 -32
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx +0 -102
- package/src/components/markdownEditor/plugins/customLink/FloatingLinkEditor.tsx +0 -270
- package/src/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.ts +0 -11
- package/src/components/markdownEditor/plugins/emoji/EmojiNode.tsx +0 -95
- package/src/components/markdownEditor/plugins/emoji/EmojiNodeTransform.ts +0 -41
- package/src/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.tsx +0 -152
- package/src/components/markdownEditor/plugins/emoji/EmojisPlugin.tsx +0 -70
- package/src/components/markdownEditor/plugins/index.ts +0 -6
- package/src/components/markdownEditor/theme.ts +0 -65
- package/src/components/reporting/ChartReport.tsx +0 -89
- package/src/components/reporting/ReportFilter.tsx +0 -56
- package/src/components/reporting/ReportFilterField.tsx +0 -163
- package/src/components/reporting/ReportOutput.tsx +0 -168
- package/src/components/reporting/ReportWithFilter.tsx +0 -72
- package/src/components/reporting/TableReport.tsx +0 -44
- package/src/components/reporting/TreeReport.tsx +0 -103
- package/src/components/reporting/index.ts +0 -4
- package/src/donationComponents/components/BankForm.tsx +0 -163
- package/src/donationComponents/components/CardForm.tsx +0 -104
- package/src/donationComponents/components/DonationForm.tsx +0 -260
- package/src/donationComponents/components/FundDonation.tsx +0 -59
- package/src/donationComponents/components/FundDonations.tsx +0 -44
- package/src/donationComponents/components/PaymentMethods.tsx +0 -133
- package/src/donationComponents/components/RecurringDonations.tsx +0 -117
- package/src/donationComponents/components/RecurringDonationsEdit.tsx +0 -96
- package/src/donationComponents/components/index.tsx +0 -8
- package/src/donationComponents/index.ts +0 -2
- package/src/donationComponents/modals/DonationPreviewModal.tsx +0 -70
- package/src/helpers/CommonEnvironmentHelper.ts +0 -98
- package/src/helpers/DonationHelper.ts +0 -26
- package/src/helpers/ReportHelper.ts +0 -34
- package/src/pageComponents/LoginPage.tsx +0 -284
- package/src/pageComponents/LogoutPage.tsx +0 -43
- package/src/pageComponents/components/Forgot.tsx +0 -81
- package/src/pageComponents/components/Login.tsx +0 -62
- package/src/pageComponents/components/LoginSetPassword.tsx +0 -98
- package/src/pageComponents/components/Register.tsx +0 -103
- package/src/pageComponents/components/SelectChurchModal.tsx +0 -58
- package/src/pageComponents/components/SelectChurchRegister.tsx +0 -87
- package/src/pageComponents/components/SelectChurchSearch.tsx +0 -71
- package/src/pageComponents/components/SelectableChurch.tsx +0 -40
- package/src/pageComponents/index.ts +0 -3
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const material_1 = require("@mui/material");
|
|
7
|
-
const StyledMenuBox = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Box, styled } from "@mui/material";
|
|
4
|
+
const StyledMenuBox = styled(Box)(({ theme }) => ({
|
|
8
5
|
paddingTop: 10,
|
|
9
6
|
"& .MuiListItemButton-root": { paddingLeft: 30 },
|
|
10
7
|
"& .MuiListItemIcon-root": {
|
|
@@ -13,8 +10,8 @@ const StyledMenuBox = (0, material_1.styled)(material_1.Box)(({ theme }) => ({
|
|
|
13
10
|
"& .MuiListItemText-root": { color: theme.palette.text.primary },
|
|
14
11
|
"& .selected .MuiListItemText-root span": { fontWeight: "bold" }
|
|
15
12
|
}));
|
|
16
|
-
function TabPanel(props) {
|
|
13
|
+
export function TabPanel(props) {
|
|
17
14
|
const { children, value, index } = props;
|
|
18
|
-
return ((
|
|
15
|
+
return (_jsx("div", { role: "tabpanel", hidden: value !== index, id: `userMenuPanel-${index}`, children: value === index && (_jsx(StyledMenuBox, { children: _jsx(Box, { children: children }) })) }));
|
|
19
16
|
}
|
|
20
17
|
//# sourceMappingURL=TabPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../src/components/wrapper/TabPanel.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"TabPanel.js","sourceRoot":"","sources":["../../../src/components/wrapper/TabPanel.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAI5C,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAC,CAC/B,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACd,UAAU,EAAE,EAAE;IACd,2BAA2B,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;IAChD,yBAAyB,EAAE;QACzB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI;KAClC;IACD,yBAAyB,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE;IAChE,wCAAwC,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;CACjE,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,KAAoB;IAC3C,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEzC,OAAO,CACL,cAAK,IAAI,EAAC,UAAU,EAAC,MAAM,EAAE,KAAK,KAAK,KAAK,EAAE,EAAE,EAAE,iBAAiB,KAAK,EAAE,YACvE,KAAK,KAAK,KAAK,IAAI,CAClB,KAAC,aAAa,cACZ,KAAC,GAAG,cAAE,QAAQ,GAAO,GACP,CACjB,GACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMenu.d.ts","sourceRoot":"","sources":["../../../src/components/wrapper/UserMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"UserMenu.d.ts","sourceRoot":"","sources":["../../../src/components/wrapper/UserMenu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAyB,wBAAwB,EAAE,oBAAoB,EAA2B,MAAM,qBAAqB,CAAC;AAWrI,UAAU,KAAK;IACd,kBAAkB,EAAE;QAAE,iBAAiB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACnE,UAAU,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,wBAAwB,EAAE,CAAC;IACzC,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,OAAO,EAAE,oBAAoB,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AA+HD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAMpC,CAAC"}
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const _1 = require(".");
|
|
14
|
-
const ChurchList_1 = require("./ChurchList");
|
|
15
|
-
const CommonEnvironmentHelper_1 = require("../../helpers/CommonEnvironmentHelper");
|
|
16
|
-
const TabPanel_1 = require("../TabPanel");
|
|
17
|
-
const helpers_1 = require("../../helpers");
|
|
18
|
-
const PrivateMessages_1 = require("./PrivateMessages");
|
|
19
|
-
const Notifications_1 = require("./Notifications");
|
|
20
|
-
const react_cookie_1 = require("react-cookie");
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { ApiHelper, UserHelper, CommonEnvironmentHelper } from "@churchapps/helpers";
|
|
5
|
+
import { Avatar, Menu, Icon, Button, Box, Badge, Dialog, DialogContent, DialogTitle } from "@mui/material";
|
|
6
|
+
import { NavItem, AppList } from ".";
|
|
7
|
+
import { ChurchList } from "./ChurchList";
|
|
8
|
+
import { TabPanel } from "../TabPanel";
|
|
9
|
+
import { Locale } from "../../helpers";
|
|
10
|
+
import { PrivateMessages } from "./PrivateMessages";
|
|
11
|
+
import { Notifications } from "./Notifications";
|
|
12
|
+
import { useCookies, CookiesProvider } from "react-cookie";
|
|
21
13
|
const UserMenuContent = (props) => {
|
|
22
14
|
const userName = props.userName;
|
|
23
|
-
const [anchorEl, setAnchorEl] =
|
|
24
|
-
const [showPM, setShowPM] =
|
|
25
|
-
const [showNotifications, setShowNotifications] =
|
|
26
|
-
const [refreshKey, setRefreshKey] =
|
|
27
|
-
const [, , removeCookie] =
|
|
15
|
+
const [anchorEl, setAnchorEl] = React.useState(null);
|
|
16
|
+
const [showPM, setShowPM] = React.useState(false);
|
|
17
|
+
const [showNotifications, setShowNotifications] = React.useState(false);
|
|
18
|
+
const [refreshKey, setRefreshKey] = React.useState(0);
|
|
19
|
+
const [, , removeCookie] = useCookies(["lastChurchId"]);
|
|
28
20
|
const open = Boolean(anchorEl);
|
|
29
21
|
const handleClick = (e) => {
|
|
30
22
|
e.preventDefault();
|
|
@@ -39,19 +31,19 @@ const UserMenuContent = (props) => {
|
|
|
39
31
|
setTabIndex(2);
|
|
40
32
|
};
|
|
41
33
|
const getMainLinks = () => {
|
|
42
|
-
const jwt =
|
|
43
|
-
const churchId =
|
|
34
|
+
const jwt = ApiHelper.getConfig("MembershipApi").jwt;
|
|
35
|
+
const churchId = UserHelper.currentUserChurch.church.id;
|
|
44
36
|
let result = [];
|
|
45
|
-
result.push((
|
|
46
|
-
result.push((
|
|
37
|
+
result.push(_jsx(NavItem, { onClick: () => { setShowPM(true); }, label: Locale.label("wrapper.messages"), icon: "mail", onNavigate: props.onNavigate, badgeCount: props.notificationCounts.pmCount }, "/messages"));
|
|
38
|
+
result.push(_jsx(NavItem, { onClick: () => { setShowNotifications(true); }, label: Locale.label("wrapper.notifications"), icon: "notifications", onNavigate: props.onNavigate, badgeCount: props.notificationCounts.notificationCount }, "/notifications"));
|
|
47
39
|
if (props.appName === "CHUMS")
|
|
48
|
-
result.push((
|
|
40
|
+
result.push(_jsx(NavItem, { url: "/profile", label: Locale.label("wrapper.profile"), icon: "person", onNavigate: props.onNavigate }, "/profile"));
|
|
49
41
|
else
|
|
50
|
-
result.push((
|
|
51
|
-
result.push((
|
|
52
|
-
result.push((
|
|
53
|
-
result.push((
|
|
54
|
-
result.push((
|
|
42
|
+
result.push(_jsx(NavItem, { url: `${CommonEnvironmentHelper.ChumsRoot}/login?jwt=${jwt}&churchId=${churchId}&returnUrl=/profile`, label: Locale.label("wrapper.profile"), icon: "person", external: true, onNavigate: props.onNavigate }, "/profile"));
|
|
43
|
+
result.push(_jsx(NavItem, { url: "/logout", label: Locale.label("wrapper.logout"), icon: "logout", onNavigate: props.onNavigate }, "/logout"));
|
|
44
|
+
result.push(_jsx("div", { style: { borderTop: "1px solid #CCC", paddingTop: 2, paddingBottom: 2 } }));
|
|
45
|
+
result.push(_jsx(NavItem, { label: "Switch App", icon: "apps", onClick: () => { setTabIndex(1); } }, Locale.label("wrapper.switchApp")));
|
|
46
|
+
result.push(_jsx(NavItem, { label: Locale.label("wrapper.switchChurch"), icon: "church", onClick: handleSwitchChurch }, "Switch Church"));
|
|
55
47
|
return result;
|
|
56
48
|
};
|
|
57
49
|
const getProfilePic = () => {
|
|
@@ -73,25 +65,24 @@ const UserMenuContent = (props) => {
|
|
|
73
65
|
const handleItemClick = (e) => {
|
|
74
66
|
console.log(e);
|
|
75
67
|
};
|
|
76
|
-
const [tabIndex, setTabIndex] =
|
|
77
|
-
const getTabs = () => ((
|
|
68
|
+
const [tabIndex, setTabIndex] = React.useState(0);
|
|
69
|
+
const getTabs = () => (_jsxs(Box, { sx: { borderBottom: 1, borderColor: "divider" }, children: [_jsx(TabPanel, { value: tabIndex, index: 0, children: getMainLinks() }), _jsxs(TabPanel, { value: tabIndex, index: 1, children: [_jsx(NavItem, { label: "Back", icon: "arrow_back", onClick: () => { setTabIndex(0); } }, "AppBack"), _jsx(AppList, { currentUserChurch: props.currentUserChurch, appName: props.appName, onNavigate: props.onNavigate })] }), _jsx(TabPanel, { value: tabIndex, index: 2, children: _jsxs("div", { style: { maxHeight: '70vh', overflowY: "auto" }, children: [_jsx(NavItem, { label: "Back", icon: "arrow_back", onClick: () => { setTabIndex(0); } }, "ChurchBack"), _jsx(ChurchList, { userChurches: props.userChurches, currentUserChurch: props.currentUserChurch, context: props.context, onDelete: handleClose })] }) })] }));
|
|
78
70
|
const getModals = () => {
|
|
79
71
|
if (showPM)
|
|
80
|
-
return ((
|
|
72
|
+
return (_jsxs(Dialog, { open: true, onClose: () => setShowPM(false), maxWidth: "md", fullWidth: true, children: [_jsx(DialogTitle, { children: Locale.label("wrapper.messages") }), _jsx(DialogContent, { children: _jsx(PrivateMessages, { context: props.context, refreshKey: refreshKey, onUpdate: props.loadCounts }) })] }));
|
|
81
73
|
else if (showNotifications)
|
|
82
|
-
return ((
|
|
74
|
+
return (_jsxs(Dialog, { open: true, onClose: () => setShowNotifications(false), maxWidth: "md", fullWidth: true, children: [_jsx(DialogTitle, { children: Locale.label("wrapper.notifications") }), _jsx(DialogContent, { children: _jsx(Notifications, { context: props.context, appName: props.appName, onUpdate: props.loadCounts, onNavigate: props.onNavigate }) })] }));
|
|
83
75
|
else
|
|
84
|
-
return (
|
|
76
|
+
return _jsx(_Fragment, {});
|
|
85
77
|
};
|
|
86
78
|
const totalNotifcations = props.notificationCounts.notificationCount + props.notificationCounts.pmCount;
|
|
87
|
-
|
|
79
|
+
React.useEffect(() => {
|
|
88
80
|
console.log("THE COUNTS CHANGED");
|
|
89
81
|
setRefreshKey(Math.random());
|
|
90
82
|
}, [props.notificationCounts]);
|
|
91
|
-
return ((
|
|
83
|
+
return (_jsxs(_Fragment, { children: [_jsx(Button, { onClick: handleClick, color: "inherit", "aria-controls": open ? "account-menu" : undefined, "aria-haspopup": "true", "aria-expanded": open ? "true" : undefined, style: { textTransform: "none" }, endIcon: _jsx(Icon, { children: "expand_more" }), children: _jsx(Badge, { badgeContent: totalNotifcations, color: "error", invisible: totalNotifcations === 0, children: _jsx(Avatar, { src: getProfilePic(), sx: { width: 32, height: 32, marginRight: 1 } }) }) }), _jsx(Menu, { anchorEl: anchorEl, id: "account-menu", open: open, onClose: handleClose, onClick: (e) => { handleItemClick(e); }, slotProps: { paper: paperProps }, transformOrigin: { horizontal: "right", vertical: "top" }, anchorOrigin: { horizontal: "right", vertical: "bottom" }, sx: { "& .MuiBox-root": { borderBottom: 0 } }, children: getTabs() }), getModals()] }));
|
|
92
84
|
};
|
|
93
|
-
const UserMenu = (props) => {
|
|
94
|
-
return ((
|
|
85
|
+
export const UserMenu = (props) => {
|
|
86
|
+
return (_jsx(CookiesProvider, { defaultSetOptions: { path: '/' }, children: _jsx(UserMenuContent, { ...props }) }));
|
|
95
87
|
};
|
|
96
|
-
exports.UserMenu = UserMenu;
|
|
97
88
|
//# sourceMappingURL=UserMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserMenu.js","sourceRoot":"","sources":["../../../src/components/wrapper/UserMenu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"UserMenu.js","sourceRoot":"","sources":["../../../src/components/wrapper/UserMenu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,UAAU,EAAkD,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACrI,OAAO,EAAE,MAAM,EAAE,IAAI,EAAc,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAS,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC9H,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MA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EAAE,EAAE,YACxT,OAAO,EAAE,GACL,EACN,SAAS,EAAE,IACX,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAoB,CAAC,KAAK,EAAE,EAAE;IACjD,OAAO,CACL,KAAC,eAAe,IAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,YAC/C,KAAC,eAAe,OAAK,KAAK,GAAI,GACd,CACnB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var SiteWrapper_1 = require("./SiteWrapper");
|
|
9
|
-
Object.defineProperty(exports, "SiteWrapper", { enumerable: true, get: function () { return SiteWrapper_1.SiteWrapper; } });
|
|
10
|
-
var ChurchList_1 = require("./ChurchList");
|
|
11
|
-
Object.defineProperty(exports, "ChurchList", { enumerable: true, get: function () { return ChurchList_1.ChurchList; } });
|
|
12
|
-
var UserMenu_1 = require("./UserMenu");
|
|
13
|
-
Object.defineProperty(exports, "UserMenu", { enumerable: true, get: function () { return UserMenu_1.UserMenu; } });
|
|
14
|
-
var NewPrivateMessage_1 = require("./NewPrivateMessage");
|
|
15
|
-
Object.defineProperty(exports, "NewPrivateMessage", { enumerable: true, get: function () { return NewPrivateMessage_1.NewPrivateMessage; } });
|
|
16
|
-
var PrivateMessageDetails_1 = require("./PrivateMessageDetails");
|
|
17
|
-
Object.defineProperty(exports, "PrivateMessageDetails", { enumerable: true, get: function () { return PrivateMessageDetails_1.PrivateMessageDetails; } });
|
|
1
|
+
export { NavItem } from "./NavItem";
|
|
2
|
+
export { AppList } from "./AppList";
|
|
3
|
+
export { SiteWrapper } from "./SiteWrapper";
|
|
4
|
+
export { ChurchList } from "./ChurchList";
|
|
5
|
+
export { UserMenu } from "./UserMenu";
|
|
6
|
+
export { NewPrivateMessage } from "./NewPrivateMessage";
|
|
7
|
+
export { PrivateMessageDetails } from "./PrivateMessageDetails";
|
|
18
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/wrapper/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/wrapper/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/AnalyticsHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnalyticsHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/AnalyticsHelper.ts"],"names":[],"mappings":"AAGA,qBAAa,eAAe;IAE1B,MAAM,CAAC,IAAI,aAKV;IAED,MAAM,CAAC,WAAW,aAKjB;IAED,MAAM,CAAC,QAAQ,GAAI,UAAU,MAAM,EAAE,QAAQ,MAAM,EAAE,QAAO,MAAM,UAKjE;IAED,OAAO,CAAC,MAAM,CAAC,YAAY,CAG1B;CAEF"}
|
|
@@ -1,38 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
1
|
var _a;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const CommonEnvironmentHelper_1 = require("./CommonEnvironmentHelper");
|
|
10
|
-
const UserHelper_1 = require("./UserHelper");
|
|
11
|
-
class AnalyticsHelper {
|
|
2
|
+
import ReactGA from "react-ga4";
|
|
3
|
+
import { CommonEnvironmentHelper, UserHelper } from "@churchapps/helpers";
|
|
4
|
+
export class AnalyticsHelper {
|
|
12
5
|
}
|
|
13
|
-
exports.AnalyticsHelper = AnalyticsHelper;
|
|
14
6
|
_a = AnalyticsHelper;
|
|
15
7
|
AnalyticsHelper.init = () => {
|
|
16
|
-
if (
|
|
17
|
-
|
|
8
|
+
if (CommonEnvironmentHelper.GoogleAnalyticsTag !== "" && typeof (window) !== "undefined") {
|
|
9
|
+
ReactGA.initialize([{ trackingId: CommonEnvironmentHelper.GoogleAnalyticsTag }]);
|
|
18
10
|
_a.logPageView();
|
|
19
11
|
}
|
|
20
12
|
};
|
|
21
13
|
AnalyticsHelper.logPageView = () => {
|
|
22
|
-
if (
|
|
14
|
+
if (CommonEnvironmentHelper.GoogleAnalyticsTag !== "" && typeof (window) !== "undefined") {
|
|
23
15
|
_a.setChurchKey();
|
|
24
|
-
|
|
16
|
+
ReactGA.send({ hitType: "pageview", page: window.location.pathname + window.location.search });
|
|
25
17
|
}
|
|
26
18
|
};
|
|
27
19
|
AnalyticsHelper.logEvent = (category, action, label) => {
|
|
28
|
-
if (
|
|
20
|
+
if (CommonEnvironmentHelper.GoogleAnalyticsTag !== "" && typeof (window) !== "undefined") {
|
|
29
21
|
_a.setChurchKey();
|
|
30
|
-
|
|
22
|
+
ReactGA.event({ category, action, label });
|
|
31
23
|
}
|
|
32
24
|
};
|
|
33
25
|
AnalyticsHelper.setChurchKey = () => {
|
|
34
|
-
const churchKey =
|
|
26
|
+
const churchKey = UserHelper?.currentUserChurch?.church?.subDomain;
|
|
35
27
|
if (churchKey)
|
|
36
|
-
|
|
28
|
+
ReactGA.set({ church_key: churchKey });
|
|
37
29
|
};
|
|
38
30
|
//# sourceMappingURL=AnalyticsHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalyticsHelper.js","sourceRoot":"","sources":["../../src/helpers/AnalyticsHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnalyticsHelper.js","sourceRoot":"","sources":["../../src/helpers/AnalyticsHelper.ts"],"names":[],"mappings":";AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE1E,MAAM,OAAO,eAAe;;;AAEnB,oBAAI,GAAG,GAAG,EAAE;IACjB,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAAE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAG,WAAW,EAAE,CAAC;QACtF,OAAO,CAAC,UAAU,CAAC,CAAC,EAAC,UAAU,EAAE,uBAAuB,CAAC,kBAAkB,EAAC,CAAC,CAAC,CAAC;QAC/E,EAAe,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC;AACH,CAAC,AALU,CAKV;AAEM,2BAAW,GAAG,GAAG,EAAE;IACxB,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAAE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAG,WAAW,EAAE,CAAC;QACtF,EAAI,CAAC,YAAY,EAAE,CAAC;QACpB,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IACjG,CAAC;AACH,CAAC,AALiB,CAKjB;AAEM,wBAAQ,GAAG,CAAC,QAAgB,EAAE,MAAc,EAAE,KAAa,EAAE,EAAE;IACpE,IAAI,uBAAuB,CAAC,kBAAkB,KAAK,EAAE,IAAI,OAAM,CAAC,MAAM,CAAC,KAAG,WAAW,EAAE,CAAC;QACtF,EAAI,CAAC,YAAY,EAAE,CAAC;QACpB,OAAO,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC,AALc,CAKd;AAEc,4BAAY,GAAG,GAAG,EAAE;IACjC,MAAM,SAAS,GAAG,UAAU,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,CAAC;IACnE,IAAI,SAAS;QAAE,OAAO,CAAC,GAAG,CAAC,EAAC,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC;AACvD,CAAC,AAH0B,CAG1B"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ApiHelper = void 0;
|
|
4
|
-
const ErrorHelper_1 = require("./ErrorHelper");
|
|
5
|
-
class ApiHelper {
|
|
1
|
+
import { ErrorHelper } from "./ErrorHelper";
|
|
2
|
+
export class ApiHelper {
|
|
6
3
|
static getConfig(keyName) {
|
|
7
4
|
let result;
|
|
8
5
|
this.apiConfigs.forEach(config => { if (config.keyName === keyName)
|
|
@@ -113,11 +110,10 @@ class ApiHelper {
|
|
|
113
110
|
msg = json.errors[0];
|
|
114
111
|
}
|
|
115
112
|
catch { }
|
|
116
|
-
|
|
113
|
+
ErrorHelper.logError(response.status.toString(), response.url, msg);
|
|
117
114
|
throw new Error(msg || "Error");
|
|
118
115
|
}
|
|
119
116
|
}
|
|
120
|
-
exports.ApiHelper = ApiHelper;
|
|
121
117
|
ApiHelper.apiConfigs = [];
|
|
122
118
|
ApiHelper.isAuthenticated = false;
|
|
123
119
|
//# sourceMappingURL=ApiHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiHelper.js","sourceRoot":"","sources":["../../src/helpers/ApiHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiHelper.js","sourceRoot":"","sources":["../../src/helpers/ApiHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,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GAAG,IAAI,OAAO,CAAC,CAAC;IACjC,CAAC;;AAvHM,oBAAU,GAAgB,EAAE,CAAC;AAC7B,yBAAe,GAAG,KAAK,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppearanceHelper = void 0;
|
|
4
|
-
class AppearanceHelper {
|
|
1
|
+
export class AppearanceHelper {
|
|
5
2
|
static getLogoDark(appearanceSettings, defaultLogo) {
|
|
6
3
|
return (appearanceSettings?.logoDark) ? appearanceSettings.logoDark : defaultLogo;
|
|
7
4
|
}
|
|
@@ -63,5 +60,4 @@ class AppearanceHelper {
|
|
|
63
60
|
return result;
|
|
64
61
|
}
|
|
65
62
|
}
|
|
66
|
-
exports.AppearanceHelper = AppearanceHelper;
|
|
67
63
|
//# sourceMappingURL=AppearanceHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppearanceHelper.js","sourceRoot":"","sources":["../../src/helpers/AppearanceHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppearanceHelper.js","sourceRoot":"","sources":["../../src/helpers/AppearanceHelper.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,gBAAgB;IAEpB,MAAM,CAAC,WAAW,CAAC,kBAAuC,EAAE,WAAmB;QACpF,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC;IACpF,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,kBAAuC,EAAE,WAAmB;QACrF,OAAO,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC;IACtF,CAAC;IAEM,MAAM,CAAC,UAAU,CAAC,kBAAuC,EAAE,IAAkB;QAClF,IAAI,IAAI,KAAK,KAAK,EAAE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AC3C,OAAO,MAAM,CAAC;IAChB,CAAC;CAEF"}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ArrayHelper = void 0;
|
|
4
|
-
const UniqueIdHelper_1 = require("./UniqueIdHelper");
|
|
5
|
-
class ArrayHelper {
|
|
1
|
+
import { UniqueIdHelper } from "./UniqueIdHelper";
|
|
2
|
+
export class ArrayHelper {
|
|
6
3
|
static getIds(array, propertyName) {
|
|
7
4
|
const result = [];
|
|
8
5
|
for (const item of array) {
|
|
9
6
|
const id = item[propertyName]?.toString();
|
|
10
|
-
if (!
|
|
7
|
+
if (!UniqueIdHelper.isMissing(id) && result.indexOf(id) === -1)
|
|
11
8
|
result.push(id);
|
|
12
9
|
}
|
|
13
10
|
return result;
|
|
@@ -90,5 +87,4 @@ class ArrayHelper {
|
|
|
90
87
|
return result;
|
|
91
88
|
}
|
|
92
89
|
}
|
|
93
|
-
exports.ArrayHelper = ArrayHelper;
|
|
94
90
|
//# sourceMappingURL=ArrayHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayHelper.js","sourceRoot":"","sources":["../../src/helpers/ArrayHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArrayHelper.js","sourceRoot":"","sources":["../../src/helpers/ArrayHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,OAAO,WAAW;IAEtB,MAAM,CAAC,MAAM,CAAC,KAAY,EAAE,YAAoB;QAC9C,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,MAAM,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,CAAC;YAC1C,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC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.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CurrencyHelper = void 0;
|
|
4
|
-
class CurrencyHelper {
|
|
1
|
+
export class CurrencyHelper {
|
|
5
2
|
static formatCurrency(amount) {
|
|
6
3
|
const formatter = new Intl.NumberFormat("en-US", {
|
|
7
4
|
style: "currency",
|
|
@@ -11,5 +8,4 @@ class CurrencyHelper {
|
|
|
11
8
|
return formatter.format(amount);
|
|
12
9
|
}
|
|
13
10
|
}
|
|
14
|
-
exports.CurrencyHelper = CurrencyHelper;
|
|
15
11
|
//# sourceMappingURL=CurrencyHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CurrencyHelper.js","sourceRoot":"","sources":["../../src/helpers/CurrencyHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CurrencyHelper.js","sourceRoot":"","sources":["../../src/helpers/CurrencyHelper.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAc;IACzB,MAAM,CAAC,cAAc,CAAC,MAAc;QAClC,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;YAC/C,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,KAAK;YACf,qBAAqB,EAAE,CAAC;SACzB,CAAC,CAAC;QACH,OAAO,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;CACF"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.DateHelper = void 0;
|
|
4
|
-
const date_fns_1 = require("date-fns");
|
|
5
|
-
class DateHelper {
|
|
1
|
+
import { format as dateFormat } from "date-fns";
|
|
2
|
+
export class DateHelper {
|
|
6
3
|
//Fixes timezone issues when you just need the date.
|
|
7
4
|
static toDate(input) {
|
|
8
5
|
return new Date(Date.parse(input.toString().replace("Z", "")));
|
|
@@ -95,12 +92,11 @@ class DateHelper {
|
|
|
95
92
|
}
|
|
96
93
|
static formatDateTime(date, format) {
|
|
97
94
|
try {
|
|
98
|
-
return (
|
|
95
|
+
return dateFormat(date, format);
|
|
99
96
|
}
|
|
100
97
|
catch {
|
|
101
98
|
return "";
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
101
|
}
|
|
105
|
-
exports.DateHelper = DateHelper;
|
|
106
102
|
//# sourceMappingURL=DateHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateHelper.js","sourceRoot":"","sources":["../../src/helpers/DateHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateHelper.js","sourceRoot":"","sources":["../../src/helpers/DateHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,UAAU,CAAA;AAE/C,MAAM,OAAO,UAAU;IAErB,oDAAoD;IACpD,MAAM,CAAC,MAAM,CAAC,KAAU;QACtB,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,KAAU;QAC1B,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAChD,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,IAAU,EAAE,IAAY;QACrC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,IAAU;QAC1B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI;YAAE,OAAO,EAAE,CAAC;QACnD,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,I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,MAAM,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3E,OAAO,IAAI,IAAI,EAAE,CAAC;IACpB,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,IAAU,EAAE,MAAc;QACtD,IAAI,CAAC;YACH,OAAO,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAClC,CAAC;QAAC,MAAM,CAAC;YAAC,OAAO,EAAE,CAAC;QAAC,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var _a;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const ApiHelper_1 = require("./ApiHelper");
|
|
6
|
-
class ErrorHelper {
|
|
2
|
+
import { ApiHelper } from "./ApiHelper";
|
|
3
|
+
export class ErrorHelper {
|
|
7
4
|
}
|
|
8
|
-
exports.ErrorHelper = ErrorHelper;
|
|
9
5
|
_a = ErrorHelper;
|
|
10
6
|
ErrorHelper.init = (getAppData, customErrorHandler) => {
|
|
11
7
|
_a.getAppData = getAppData;
|
|
@@ -30,7 +26,7 @@ ErrorHelper.logError = (errorType, message, details) => {
|
|
|
30
26
|
if (log.message.indexOf("clientErrors") > -1)
|
|
31
27
|
return;
|
|
32
28
|
try {
|
|
33
|
-
|
|
29
|
+
ApiHelper.postAnonymous("/clientErrors", [log], "MembershipApi");
|
|
34
30
|
}
|
|
35
31
|
catch (error) {
|
|
36
32
|
console.log(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHelper.js","sourceRoot":"","sources":["../../src/helpers/ErrorHelper.ts"],"names":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AChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QACnB,CAAC;QACD,IAAI,EAAW,CAAC,kBAAkB;YAAE,EAAW,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACzE,CAAC;AACF,CAAC,AAzBc,CAyBd"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.EventHelper = void 0;
|
|
4
|
-
const rrule_1 = require("rrule");
|
|
5
|
-
class EventHelper {
|
|
1
|
+
import { RRule } from "rrule";
|
|
2
|
+
export class EventHelper {
|
|
6
3
|
}
|
|
7
|
-
exports.EventHelper = EventHelper;
|
|
8
4
|
EventHelper.getRange = (event, startDate, endDate) => {
|
|
9
5
|
const start = new Date(event.start);
|
|
10
6
|
const rrule = EventHelper.getFullRRule(event);
|
|
@@ -17,7 +13,7 @@ EventHelper.getRange = (event, startDate, endDate) => {
|
|
|
17
13
|
return dates;
|
|
18
14
|
};
|
|
19
15
|
EventHelper.getFullRRule = (event) => {
|
|
20
|
-
let rrule =
|
|
16
|
+
let rrule = RRule.fromString(event.recurrenceRule);
|
|
21
17
|
rrule.options.dtstart = new Date(event.start);
|
|
22
18
|
console.log("START", rrule.options.dtstart, event.start, rrule);
|
|
23
19
|
return rrule;
|
|
@@ -33,9 +29,9 @@ EventHelper.removeExcludeDates = (events) => {
|
|
|
33
29
|
}
|
|
34
30
|
};
|
|
35
31
|
EventHelper.getPartialRRuleString = (options) => {
|
|
36
|
-
const parts = new
|
|
32
|
+
const parts = new RRule(options).toString().split("RRULE:");
|
|
37
33
|
const result = parts.length === 2 ? parts[1] : "";
|
|
38
|
-
console.log("getPartialRRuleString", options, new
|
|
34
|
+
console.log("getPartialRRuleString", options, new RRule(options).toString(), result);
|
|
39
35
|
return result;
|
|
40
36
|
};
|
|
41
37
|
EventHelper.cleanRule = (options) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventHelper.js","sourceRoot":"","sources":["../../src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