@openedx/frontend-app-catalog 1.0.0-alpha.0
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/LICENSE +661 -0
- package/README.rst +300 -0
- package/dist/Main.d.ts +3 -0
- package/dist/Main.js +8 -0
- package/dist/Main.js.map +1 -0
- package/dist/app.d.ts +3 -0
- package/dist/app.js +22 -0
- package/dist/app.js.map +1 -0
- package/dist/assets/images/no-course-image.svg +4 -0
- package/dist/assets/scss/_animations.scss +23 -0
- package/dist/catalog/CatalogPage.d.ts +2 -0
- package/dist/catalog/CatalogPage.js +64 -0
- package/dist/catalog/CatalogPage.js.map +1 -0
- package/dist/catalog/hooks/types.d.ts +24 -0
- package/dist/catalog/hooks/types.js +2 -0
- package/dist/catalog/hooks/types.js.map +1 -0
- package/dist/catalog/hooks/useCatalog.d.ts +29 -0
- package/dist/catalog/hooks/useCatalog.js +52 -0
- package/dist/catalog/hooks/useCatalog.js.map +1 -0
- package/dist/catalog/hooks/useCourseData.d.ts +12 -0
- package/dist/catalog/hooks/useCourseData.js +21 -0
- package/dist/catalog/hooks/useCourseData.js.map +1 -0
- package/dist/catalog/hooks/useDebouncedSearchInput.d.ts +7 -0
- package/dist/catalog/hooks/useDebouncedSearchInput.js +26 -0
- package/dist/catalog/hooks/useDebouncedSearchInput.js.map +1 -0
- package/dist/catalog/hooks/useFilter.d.ts +18 -0
- package/dist/catalog/hooks/useFilter.js +58 -0
- package/dist/catalog/hooks/useFilter.js.map +1 -0
- package/dist/catalog/hooks/usePagination.d.ts +13 -0
- package/dist/catalog/hooks/usePagination.js +25 -0
- package/dist/catalog/hooks/usePagination.js.map +1 -0
- package/dist/catalog/hooks/useSearch.d.ts +16 -0
- package/dist/catalog/hooks/useSearch.js +63 -0
- package/dist/catalog/hooks/useSearch.js.map +1 -0
- package/dist/catalog/messages.d.ts +68 -0
- package/dist/catalog/messages.js +70 -0
- package/dist/catalog/messages.js.map +1 -0
- package/dist/catalog/types.d.ts +6 -0
- package/dist/catalog/types.js +2 -0
- package/dist/catalog/types.js.map +1 -0
- package/dist/catalog/utils.d.ts +25 -0
- package/dist/catalog/utils.js +82 -0
- package/dist/catalog/utils.js.map +1 -0
- package/dist/constants.d.ts +18 -0
- package/dist/constants.js +15 -0
- package/dist/constants.js.map +1 -0
- package/dist/course-about/CourseAboutPage.d.ts +2 -0
- package/dist/course-about/CourseAboutPage.js +39 -0
- package/dist/course-about/CourseAboutPage.js.map +1 -0
- package/dist/course-about/CourseAboutPage.scss +36 -0
- package/dist/course-about/course-intro/CourseIntro.d.ts +4 -0
- package/dist/course-about/course-intro/CourseIntro.js +19 -0
- package/dist/course-about/course-intro/CourseIntro.js.map +1 -0
- package/dist/course-about/course-intro/components/EnrolledStatus.d.ts +2 -0
- package/dist/course-about/course-intro/components/EnrolledStatus.js +13 -0
- package/dist/course-about/course-intro/components/EnrolledStatus.js.map +1 -0
- package/dist/course-about/course-intro/components/EnrollmentButton.d.ts +2 -0
- package/dist/course-about/course-intro/components/EnrollmentButton.js +12 -0
- package/dist/course-about/course-intro/components/EnrollmentButton.js.map +1 -0
- package/dist/course-about/course-intro/components/StatusMessage.d.ts +2 -0
- package/dist/course-about/course-intro/components/StatusMessage.js +12 -0
- package/dist/course-about/course-intro/components/StatusMessage.js.map +1 -0
- package/dist/course-about/course-intro/components/index.d.ts +3 -0
- package/dist/course-about/course-intro/components/index.js +4 -0
- package/dist/course-about/course-intro/components/index.js.map +1 -0
- package/dist/course-about/course-intro/components/types.d.ts +18 -0
- package/dist/course-about/course-intro/components/types.js +2 -0
- package/dist/course-about/course-intro/components/types.js.map +1 -0
- package/dist/course-about/course-intro/constants.d.ts +10 -0
- package/dist/course-about/course-intro/constants.js +12 -0
- package/dist/course-about/course-intro/constants.js.map +1 -0
- package/dist/course-about/course-intro/course-media/CourseMedia.d.ts +3 -0
- package/dist/course-about/course-intro/course-media/CourseMedia.js +17 -0
- package/dist/course-about/course-intro/course-media/CourseMedia.js.map +1 -0
- package/dist/course-about/course-intro/course-media/CourseMedia.scss +24 -0
- package/dist/course-about/course-intro/course-media/messages.d.ts +8 -0
- package/dist/course-about/course-intro/course-media/messages.js +10 -0
- package/dist/course-about/course-intro/course-media/messages.js.map +1 -0
- package/dist/course-about/course-intro/course-media/types.d.ts +8 -0
- package/dist/course-about/course-intro/course-media/types.js +2 -0
- package/dist/course-about/course-intro/course-media/types.js.map +1 -0
- package/dist/course-about/course-intro/course-media/utils.d.ts +12 -0
- package/dist/course-about/course-intro/course-media/utils.js +18 -0
- package/dist/course-about/course-intro/course-media/utils.js.map +1 -0
- package/dist/course-about/course-intro/hooks/index.d.ts +2 -0
- package/dist/course-about/course-intro/hooks/index.js +3 -0
- package/dist/course-about/course-intro/hooks/index.js.map +1 -0
- package/dist/course-about/course-intro/hooks/types.d.ts +16 -0
- package/dist/course-about/course-intro/hooks/types.js +2 -0
- package/dist/course-about/course-intro/hooks/types.js.map +1 -0
- package/dist/course-about/course-intro/hooks/useEnrollmentActions.d.ts +7 -0
- package/dist/course-about/course-intro/hooks/useEnrollmentActions.js +47 -0
- package/dist/course-about/course-intro/hooks/useEnrollmentActions.js.map +1 -0
- package/dist/course-about/course-intro/hooks/useEnrollmentStatus.d.ts +4 -0
- package/dist/course-about/course-intro/hooks/useEnrollmentStatus.js +35 -0
- package/dist/course-about/course-intro/hooks/useEnrollmentStatus.js.map +1 -0
- package/dist/course-about/course-intro/messages.d.ts +43 -0
- package/dist/course-about/course-intro/messages.js +45 -0
- package/dist/course-about/course-intro/messages.js.map +1 -0
- package/dist/course-about/course-intro/utils.d.ts +4 -0
- package/dist/course-about/course-intro/utils.js +7 -0
- package/dist/course-about/course-intro/utils.js.map +1 -0
- package/dist/course-about/course-overview/index.d.ts +2 -0
- package/dist/course-about/course-overview/index.js +21 -0
- package/dist/course-about/course-overview/index.js.map +1 -0
- package/dist/course-about/course-overview/types.d.ts +4 -0
- package/dist/course-about/course-overview/types.js +2 -0
- package/dist/course-about/course-overview/types.js.map +1 -0
- package/dist/course-about/course-overview/utils.d.ts +6 -0
- package/dist/course-about/course-overview/utils.js +12 -0
- package/dist/course-about/course-overview/utils.js.map +1 -0
- package/dist/course-about/course-sidebar/CourseSidebar.d.ts +5 -0
- package/dist/course-about/course-sidebar/CourseSidebar.js +7 -0
- package/dist/course-about/course-sidebar/CourseSidebar.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-details/SidebarDetails.d.ts +5 -0
- package/dist/course-about/course-sidebar/sidebar-details/SidebarDetails.js +38 -0
- package/dist/course-about/course-sidebar/sidebar-details/SidebarDetails.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-details/SidebarDetailsItem.d.ts +3 -0
- package/dist/course-about/course-sidebar/sidebar-details/SidebarDetailsItem.js +5 -0
- package/dist/course-about/course-sidebar/sidebar-details/SidebarDetailsItem.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-details/constants.d.ts +7 -0
- package/dist/course-about/course-sidebar/sidebar-details/constants.js +8 -0
- package/dist/course-about/course-sidebar/sidebar-details/constants.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-details/messages.d.ts +43 -0
- package/dist/course-about/course-sidebar/sidebar-details/messages.js +45 -0
- package/dist/course-about/course-sidebar/sidebar-details/messages.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-details/types.d.ts +8 -0
- package/dist/course-about/course-sidebar/sidebar-details/types.js +2 -0
- package/dist/course-about/course-sidebar/sidebar-details/types.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-details/utils.d.ts +37 -0
- package/dist/course-about/course-sidebar/sidebar-details/utils.js +49 -0
- package/dist/course-about/course-sidebar/sidebar-details/utils.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-social/SidebarSocial.d.ts +5 -0
- package/dist/course-about/course-sidebar/sidebar-social/SidebarSocial.js +14 -0
- package/dist/course-about/course-sidebar/sidebar-social/SidebarSocial.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-social/SocialLinks.d.ts +5 -0
- package/dist/course-about/course-sidebar/sidebar-social/SocialLinks.js +5 -0
- package/dist/course-about/course-sidebar/sidebar-social/SocialLinks.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-social/messages.d.ts +43 -0
- package/dist/course-about/course-sidebar/sidebar-social/messages.js +45 -0
- package/dist/course-about/course-sidebar/sidebar-social/messages.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-social/types.d.ts +7 -0
- package/dist/course-about/course-sidebar/sidebar-social/types.js +2 -0
- package/dist/course-about/course-sidebar/sidebar-social/types.js.map +1 -0
- package/dist/course-about/course-sidebar/sidebar-social/utils.d.ts +23 -0
- package/dist/course-about/course-sidebar/sidebar-social/utils.js +71 -0
- package/dist/course-about/course-sidebar/sidebar-social/utils.js.map +1 -0
- package/dist/course-about/data/api.d.ts +10 -0
- package/dist/course-about/data/api.js +36 -0
- package/dist/course-about/data/api.js.map +1 -0
- package/dist/course-about/data/hooks.d.ts +3 -0
- package/dist/course-about/data/hooks.js +35 -0
- package/dist/course-about/data/hooks.js.map +1 -0
- package/dist/course-about/data/types.d.ts +10 -0
- package/dist/course-about/data/types.js +2 -0
- package/dist/course-about/data/types.js.map +1 -0
- package/dist/course-about/data/urls.d.ts +8 -0
- package/dist/course-about/data/urls.js +10 -0
- package/dist/course-about/data/urls.js.map +1 -0
- package/dist/course-about/layout.d.ts +31 -0
- package/dist/course-about/layout.js +11 -0
- package/dist/course-about/layout.js.map +1 -0
- package/dist/course-about/messages.d.ts +18 -0
- package/dist/course-about/messages.js +20 -0
- package/dist/course-about/messages.js.map +1 -0
- package/dist/course-about/types.d.ts +125 -0
- package/dist/course-about/types.js +2 -0
- package/dist/course-about/types.js.map +1 -0
- package/dist/data/course-list-search/api.d.ts +6 -0
- package/dist/data/course-list-search/api.js +33 -0
- package/dist/data/course-list-search/api.js.map +1 -0
- package/dist/data/course-list-search/constants.d.ts +2 -0
- package/dist/data/course-list-search/constants.js +3 -0
- package/dist/data/course-list-search/constants.js.map +1 -0
- package/dist/data/course-list-search/hooks.d.ts +5 -0
- package/dist/data/course-list-search/hooks.js +47 -0
- package/dist/data/course-list-search/hooks.js.map +1 -0
- package/dist/data/course-list-search/types.d.ts +65 -0
- package/dist/data/course-list-search/types.js +2 -0
- package/dist/data/course-list-search/types.js.map +1 -0
- package/dist/data/course-list-search/urls.d.ts +2 -0
- package/dist/data/course-list-search/urls.js +4 -0
- package/dist/data/course-list-search/urls.js.map +1 -0
- package/dist/data/course-list-search/utils.d.ts +9 -0
- package/dist/data/course-list-search/utils.js +40 -0
- package/dist/data/course-list-search/utils.js.map +1 -0
- package/dist/generic/alert-notification/index.d.ts +2 -0
- package/dist/generic/alert-notification/index.js +5 -0
- package/dist/generic/alert-notification/index.js.map +1 -0
- package/dist/generic/alert-notification/types.d.ts +6 -0
- package/dist/generic/alert-notification/types.js +2 -0
- package/dist/generic/alert-notification/types.js.map +1 -0
- package/dist/generic/course-card/index.d.ts +2 -0
- package/dist/generic/course-card/index.js +27 -0
- package/dist/generic/course-card/index.js.map +1 -0
- package/dist/generic/course-card/messages.d.ts +8 -0
- package/dist/generic/course-card/messages.js +10 -0
- package/dist/generic/course-card/messages.js.map +1 -0
- package/dist/generic/course-card/types.d.ts +35 -0
- package/dist/generic/course-card/types.js +2 -0
- package/dist/generic/course-card/types.js.map +1 -0
- package/dist/generic/course-card/utils.d.ts +10 -0
- package/dist/generic/course-card/utils.js +24 -0
- package/dist/generic/course-card/utils.js.map +1 -0
- package/dist/generic/index.d.ts +5 -0
- package/dist/generic/index.js +6 -0
- package/dist/generic/index.js.map +1 -0
- package/dist/generic/loading-spinner/index.d.ts +3 -0
- package/dist/generic/loading-spinner/index.js +10 -0
- package/dist/generic/loading-spinner/index.js.map +1 -0
- package/dist/generic/loading-spinner/messages.d.ts +8 -0
- package/dist/generic/loading-spinner/messages.js +10 -0
- package/dist/generic/loading-spinner/messages.js.map +1 -0
- package/dist/generic/loading-spinner/types.d.ts +3 -0
- package/dist/generic/loading-spinner/types.js +2 -0
- package/dist/generic/loading-spinner/types.js.map +1 -0
- package/dist/generic/sub-header/index.d.ts +2 -0
- package/dist/generic/sub-header/index.js +4 -0
- package/dist/generic/sub-header/index.js.map +1 -0
- package/dist/generic/sub-header/types.d.ts +4 -0
- package/dist/generic/sub-header/types.js +2 -0
- package/dist/generic/sub-header/types.js.map +1 -0
- package/dist/generic/video-modal/index.d.ts +2 -0
- package/dist/generic/video-modal/index.js +10 -0
- package/dist/generic/video-modal/index.js.map +1 -0
- package/dist/generic/video-modal/messages.d.ts +13 -0
- package/dist/generic/video-modal/messages.js +15 -0
- package/dist/generic/video-modal/messages.js.map +1 -0
- package/dist/generic/video-modal/types.d.ts +6 -0
- package/dist/generic/video-modal/types.js +2 -0
- package/dist/generic/video-modal/types.js.map +1 -0
- package/dist/home/HomePage.d.ts +2 -0
- package/dist/home/HomePage.js +14 -0
- package/dist/home/HomePage.js.map +1 -0
- package/dist/home/components/courses-list/CoursesList.d.ts +2 -0
- package/dist/home/components/courses-list/CoursesList.js +50 -0
- package/dist/home/components/courses-list/CoursesList.js.map +1 -0
- package/dist/home/components/courses-list/messages.d.ts +23 -0
- package/dist/home/components/courses-list/messages.js +25 -0
- package/dist/home/components/courses-list/messages.js.map +1 -0
- package/dist/home/components/home-banner/HomeBanner.d.ts +2 -0
- package/dist/home/components/home-banner/HomeBanner.js +25 -0
- package/dist/home/components/home-banner/HomeBanner.js.map +1 -0
- package/dist/home/components/home-banner/HomePageOverlay.d.ts +2 -0
- package/dist/home/components/home-banner/HomePageOverlay.js +10 -0
- package/dist/home/components/home-banner/HomePageOverlay.js.map +1 -0
- package/dist/home/components/home-banner/HomePromoVideoBtn.d.ts +3 -0
- package/dist/home/components/home-banner/HomePromoVideoBtn.js +10 -0
- package/dist/home/components/home-banner/HomePromoVideoBtn.js.map +1 -0
- package/dist/home/components/home-banner/index.scss +20 -0
- package/dist/home/components/home-banner/messages.d.ts +28 -0
- package/dist/home/components/home-banner/messages.js +30 -0
- package/dist/home/components/home-banner/messages.js.map +1 -0
- package/dist/home/components/home-banner/types.d.ts +3 -0
- package/dist/home/components/home-banner/types.js +2 -0
- package/dist/home/components/home-banner/types.js.map +1 -0
- package/dist/home/components/index.d.ts +2 -0
- package/dist/home/components/index.js +3 -0
- package/dist/home/components/index.js.map +1 -0
- package/dist/home/constants.d.ts +1 -0
- package/dist/home/constants.js +2 -0
- package/dist/home/constants.js.map +1 -0
- package/dist/home/messages.d.ts +8 -0
- package/dist/home/messages.js +10 -0
- package/dist/home/messages.js.map +1 -0
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.js +2 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/dist/routes.d.ts +28 -0
- package/dist/routes.js +62 -0
- package/dist/routes.js.map +1 -0
- package/dist/slots/CourseAboutCourseImageSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutCourseImageSlot/index.js +9 -0
- package/dist/slots/CourseAboutCourseImageSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutCourseMediaSlot/index.d.ts +9 -0
- package/dist/slots/CourseAboutCourseMediaSlot/index.js +6 -0
- package/dist/slots/CourseAboutCourseMediaSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutEnrollmentButtonSlot/index.d.ts +10 -0
- package/dist/slots/CourseAboutEnrollmentButtonSlot/index.js +6 -0
- package/dist/slots/CourseAboutEnrollmentButtonSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutIntroSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutIntroSlot/index.js +6 -0
- package/dist/slots/CourseAboutIntroSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoButtonSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoButtonSlot/index.js +11 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoButtonSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalContentSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalContentSlot/index.js +9 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalContentSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalSlot/index.js +6 -0
- package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutIntroVideoSlots/index.d.ts +4 -0
- package/dist/slots/CourseAboutIntroVideoSlots/index.js +5 -0
- package/dist/slots/CourseAboutIntroVideoSlots/index.js.map +1 -0
- package/dist/slots/CourseAboutOverviewSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutOverviewSlot/index.js +6 -0
- package/dist/slots/CourseAboutOverviewSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutSidebarCoursePriceSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutSidebarCoursePriceSlot/index.js +11 -0
- package/dist/slots/CourseAboutSidebarCoursePriceSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutSidebarSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutSidebarSlot/index.js +6 -0
- package/dist/slots/CourseAboutSidebarSlot/index.js.map +1 -0
- package/dist/slots/CourseAboutSidebarSocialSlot/index.d.ts +6 -0
- package/dist/slots/CourseAboutSidebarSocialSlot/index.js +22 -0
- package/dist/slots/CourseAboutSidebarSocialSlot/index.js.map +1 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/CourseCatalogDataTableCourseCardSlot/index.d.ts +16 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/CourseCatalogDataTableCourseCardSlot/index.js +18 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/CourseCatalogDataTableCourseCardSlot/index.js.map +1 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/index.d.ts +6 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/index.js +11 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/index.js.map +1 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableControlBarSlot/index.d.ts +6 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableControlBarSlot/index.js +6 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableControlBarSlot/index.js.map +1 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableSlot/index.d.ts +23 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableSlot/index.js +17 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableSlot/index.js.map +1 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableTableFooterSlot/index.d.ts +2 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableTableFooterSlot/index.js +6 -0
- package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableTableFooterSlot/index.js.map +1 -0
- package/dist/slots/CourseCatalogDataTableSlots/index.d.ts +6 -0
- package/dist/slots/CourseCatalogDataTableSlots/index.js +7 -0
- package/dist/slots/CourseCatalogDataTableSlots/index.js.map +1 -0
- package/dist/slots/CourseCatalogIntroSlot/index.d.ts +6 -0
- package/dist/slots/CourseCatalogIntroSlot/index.js +17 -0
- package/dist/slots/CourseCatalogIntroSlot/index.js.map +1 -0
- package/dist/slots/CourseCatalogSearchFieldSlot/index.d.ts +7 -0
- package/dist/slots/CourseCatalogSearchFieldSlot/index.js +21 -0
- package/dist/slots/CourseCatalogSearchFieldSlot/index.js.map +1 -0
- package/dist/slots/HomeBannerSlot/index.d.ts +2 -0
- package/dist/slots/HomeBannerSlot/index.js +6 -0
- package/dist/slots/HomeBannerSlot/index.js.map +1 -0
- package/dist/slots/HomeCourseCardSlot/index.d.ts +16 -0
- package/dist/slots/HomeCourseCardSlot/index.js +18 -0
- package/dist/slots/HomeCourseCardSlot/index.js.map +1 -0
- package/dist/slots/HomeCoursesListSlot/index.d.ts +2 -0
- package/dist/slots/HomeCoursesListSlot/index.js +6 -0
- package/dist/slots/HomeCoursesListSlot/index.js.map +1 -0
- package/dist/slots/HomeOverlayHtmlSlot/index.d.ts +2 -0
- package/dist/slots/HomeOverlayHtmlSlot/index.js +6 -0
- package/dist/slots/HomeOverlayHtmlSlot/index.js.map +1 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoButtonSlot/index.d.ts +4 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoButtonSlot/index.js +8 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoButtonSlot/index.js.map +1 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoModalContentSlot/index.d.ts +6 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoModalContentSlot/index.js +9 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoModalContentSlot/index.js.map +1 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoModalSlot/index.d.ts +6 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoModalSlot/index.js +6 -0
- package/dist/slots/HomePromoVideoSlots/HomePromoVideoModalSlot/index.js.map +1 -0
- package/dist/slots/HomePromoVideoSlots/index.d.ts +4 -0
- package/dist/slots/HomePromoVideoSlots/index.js +5 -0
- package/dist/slots/HomePromoVideoSlots/index.js.map +1 -0
- package/dist/slots/LoaderSlot/index.d.ts +3 -0
- package/dist/slots/LoaderSlot/index.js +4 -0
- package/dist/slots/LoaderSlot/index.js.map +1 -0
- package/dist/slots.d.ts +3 -0
- package/dist/slots.js +7 -0
- package/dist/slots.js.map +1 -0
- package/dist/style.scss +4 -0
- package/dist/utils.d.ts +6 -0
- package/dist/utils.js +9 -0
- package/dist/utils.js.map +1 -0
- package/dist/widgets/CatalogHeader/CoursesLinkMenuItem.d.ts +3 -0
- package/dist/widgets/CatalogHeader/CoursesLinkMenuItem.js +9 -0
- package/dist/widgets/CatalogHeader/CoursesLinkMenuItem.js.map +1 -0
- package/dist/widgets/CatalogHeader/DiscoverLinkMenuItem.d.ts +3 -0
- package/dist/widgets/CatalogHeader/DiscoverLinkMenuItem.js +9 -0
- package/dist/widgets/CatalogHeader/DiscoverLinkMenuItem.js.map +1 -0
- package/dist/widgets/CatalogHeader/ExploreCoursesLinkMenuItem.d.ts +3 -0
- package/dist/widgets/CatalogHeader/ExploreCoursesLinkMenuItem.js +9 -0
- package/dist/widgets/CatalogHeader/ExploreCoursesLinkMenuItem.js.map +1 -0
- package/dist/widgets/CatalogHeader/ProgramsLinkMenuItem.d.ts +3 -0
- package/dist/widgets/CatalogHeader/ProgramsLinkMenuItem.js +9 -0
- package/dist/widgets/CatalogHeader/ProgramsLinkMenuItem.js.map +1 -0
- package/dist/widgets/CatalogHeader/app.d.ts +3 -0
- package/dist/widgets/CatalogHeader/app.js +55 -0
- package/dist/widgets/CatalogHeader/app.js.map +1 -0
- package/dist/widgets/CatalogHeader/index.d.ts +1 -0
- package/dist/widgets/CatalogHeader/index.js +2 -0
- package/dist/widgets/CatalogHeader/index.js.map +1 -0
- package/dist/widgets/CatalogHeader/messages.d.ts +32 -0
- package/dist/widgets/CatalogHeader/messages.js +25 -0
- package/dist/widgets/CatalogHeader/messages.js.map +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import { CourseIntro } from '../../course-about/course-intro/CourseIntro';
|
|
4
|
+
const CourseAboutIntroSlot = ({ courseAboutData }) => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutIntro.v1", courseAboutData: courseAboutData, children: _jsx(CourseIntro, { courseAboutData: courseAboutData }) }));
|
|
5
|
+
export default CourseAboutIntroSlot;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseAboutIntroSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAMzE,MAAM,oBAAoB,GAAG,CAAC,EAAE,eAAe,EAA6B,EAAE,EAAE,CAAC,CAC/E,KAAC,IAAI,IACH,EAAE,EAAC,uDAAuD,EAC1D,eAAe,EAAE,eAAe,YAEhC,KAAC,WAAW,IAAC,eAAe,EAAE,eAAe,GAAI,GAC5C,CACR,CAAC;AAEF,eAAe,oBAAoB,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport type { CourseAboutDataPartial } from '@src/course-about/types';\nimport { CourseIntro } from '@src/course-about/course-intro/CourseIntro';\n\nexport interface CourseAboutIntroSlotProps {\n courseAboutData: CourseAboutDataPartial,\n}\n\nconst CourseAboutIntroSlot = ({ courseAboutData }: CourseAboutIntroSlotProps) => (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutIntro.v1\"\n courseAboutData={courseAboutData}\n >\n <CourseIntro courseAboutData={courseAboutData} />\n </Slot>\n);\n\nexport default CourseAboutIntroSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CourseAboutIntroVideoButtonSlotProps {
|
|
2
|
+
courseImageSrc: string;
|
|
3
|
+
courseImageAltText: string;
|
|
4
|
+
openVideoModal: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const CourseAboutIntroVideoButtonSlot: ({ courseImageSrc, courseImageAltText, openVideoModal, }: CourseAboutIntroVideoButtonSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Icon } from '@openedx/paragon';
|
|
3
|
+
import { Slot, useIntl } from '@openedx/frontend-base';
|
|
4
|
+
import { PlayCircleFilledWhite as PlayCircleFilledWhiteIcon } from '@openedx/paragon/icons';
|
|
5
|
+
import messages from '../../../course-about/course-intro/course-media/messages';
|
|
6
|
+
import CourseAboutCourseImageSlot from '../../../slots/CourseAboutCourseImageSlot';
|
|
7
|
+
export const CourseAboutIntroVideoButtonSlot = ({ courseImageSrc, courseImageAltText, openVideoModal, }) => {
|
|
8
|
+
const intl = useIntl();
|
|
9
|
+
return (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutIntroVideoButton.v1", courseImageSrc: courseImageSrc, courseImageAltText: courseImageAltText, openVideoModal: openVideoModal, children: _jsxs(Button, { className: "border-0 p-0 position-relative bg-transparent", onClick: openVideoModal, "aria-label": intl.formatMessage(messages.playCourseIntroductionVideo), children: [_jsx(CourseAboutCourseImageSlot, { imgSrc: courseImageSrc, altText: courseImageAltText }), _jsx(Icon, { className: "position-absolute bg-primary rounded-circle", src: PlayCircleFilledWhiteIcon, size: "lg" })] }) }));
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoButtonSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,IAAI,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,QAAQ,MAAM,sDAAsD,CAAC;AAC5E,OAAO,0BAA0B,MAAM,uCAAuC,CAAC;AAQ/E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,EAC9C,cAAc,EAAE,kBAAkB,EAAE,cAAc,GACb,EAAE,EAAE;IACzC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,OAAO,CACL,KAAC,IAAI,IACH,EAAE,EAAC,kEAAkE,EACrE,cAAc,EAAE,cAAc,EAC9B,kBAAkB,EAAE,kBAAkB,EACtC,cAAc,EAAE,cAAc,YAE9B,MAAC,MAAM,IACL,SAAS,EAAC,+CAA+C,EACzD,OAAO,EAAE,cAAc,gBACX,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,2BAA2B,CAAC,aAEpE,KAAC,0BAA0B,IAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,kBAAkB,GAAI,EACnF,KAAC,IAAI,IACH,SAAS,EAAC,6CAA6C,EACvD,GAAG,EAAE,yBAAyB,EAC9B,IAAI,EAAC,IAAI,GACT,IACK,GACJ,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Button, Icon } from '@openedx/paragon';\nimport { Slot, useIntl } from '@openedx/frontend-base';\nimport { PlayCircleFilledWhite as PlayCircleFilledWhiteIcon } from '@openedx/paragon/icons';\n\nimport messages from '@src/course-about/course-intro/course-media/messages';\nimport CourseAboutCourseImageSlot from '@src/slots/CourseAboutCourseImageSlot';\n\nexport interface CourseAboutIntroVideoButtonSlotProps {\n courseImageSrc: string,\n courseImageAltText: string,\n openVideoModal: () => void,\n}\n\nexport const CourseAboutIntroVideoButtonSlot = ({\n courseImageSrc, courseImageAltText, openVideoModal,\n}: CourseAboutIntroVideoButtonSlotProps) => {\n const intl = useIntl();\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutIntroVideoButton.v1\"\n courseImageSrc={courseImageSrc}\n courseImageAltText={courseImageAltText}\n openVideoModal={openVideoModal}\n >\n <Button\n className=\"border-0 p-0 position-relative bg-transparent\"\n onClick={openVideoModal}\n aria-label={intl.formatMessage(messages.playCourseIntroductionVideo)}\n >\n <CourseAboutCourseImageSlot imgSrc={courseImageSrc} altText={courseImageAltText} />\n <Icon\n className=\"position-absolute bg-primary rounded-circle\"\n src={PlayCircleFilledWhiteIcon}\n size=\"lg\"\n />\n </Button>\n </Slot>\n );\n};\n"]}
|
package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalContentSlot/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CourseAboutIntroVideoModalContentSlotProps {
|
|
2
|
+
videoId: string;
|
|
3
|
+
width?: string;
|
|
4
|
+
height?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const CourseAboutIntroVideoModalContentSlot: ({ videoId, width, height, }: CourseAboutIntroVideoModalContentSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot, useIntl } from '@openedx/frontend-base';
|
|
3
|
+
import { DEFAULT_VIDEO_MODAL_HEIGHT, DEFAULT_VIDEO_MODAL_WIDTH, IFRAME_FEATURE_POLICY } from '../../../constants';
|
|
4
|
+
import messages from '../../../generic/video-modal/messages';
|
|
5
|
+
export const CourseAboutIntroVideoModalContentSlot = ({ videoId, width = DEFAULT_VIDEO_MODAL_WIDTH, height = DEFAULT_VIDEO_MODAL_HEIGHT, }) => {
|
|
6
|
+
const intl = useIntl();
|
|
7
|
+
return (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutIntroVideoModalContent.v1", videoId: videoId, width: width, height: height, children: _jsx("iframe", { title: intl.formatMessage(messages.videoIframeTitle), width: width, height: height, src: `//www.youtube.com/embed/${videoId}?showinfo=0`, frameBorder: "0", allowFullScreen: true, allow: IFRAME_FEATURE_POLICY }) }));
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
package/dist/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalContentSlot/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalContentSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC9G,OAAO,QAAQ,MAAM,mCAAmC,CAAC;AAQzD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,EACpD,OAAO,EACP,KAAK,GAAG,yBAAyB,EACjC,MAAM,GAAG,0BAA0B,GACQ,EAAE,EAAE;IAC/C,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,OAAO,CACL,KAAC,IAAI,IACH,EAAE,EAAC,wEAAwE,EAC3E,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,iBACE,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EACpD,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,2BAA2B,OAAO,aAAa,EACpD,WAAW,EAAC,GAAG,EACf,eAAe,QACf,KAAK,EAAE,qBAAqB,GAC5B,GACG,CACR,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { Slot, useIntl } from '@openedx/frontend-base';\n\nimport { DEFAULT_VIDEO_MODAL_HEIGHT, DEFAULT_VIDEO_MODAL_WIDTH, IFRAME_FEATURE_POLICY } from '@src/constants';\nimport messages from '@src/generic/video-modal/messages';\n\nexport interface CourseAboutIntroVideoModalContentSlotProps {\n videoId: string,\n width?: string,\n height?: number,\n}\n\nexport const CourseAboutIntroVideoModalContentSlot = ({\n videoId,\n width = DEFAULT_VIDEO_MODAL_WIDTH,\n height = DEFAULT_VIDEO_MODAL_HEIGHT,\n}: CourseAboutIntroVideoModalContentSlotProps) => {\n const intl = useIntl();\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutIntroVideoModalContent.v1\"\n videoId={videoId}\n width={width}\n height={height}\n >\n <iframe\n title={intl.formatMessage(messages.videoIframeTitle)}\n width={width}\n height={height}\n src={`//www.youtube.com/embed/${videoId}?showinfo=0`}\n frameBorder=\"0\"\n allowFullScreen\n allow={IFRAME_FEATURE_POLICY}\n />\n </Slot>\n );\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CourseAboutIntroVideoModalSlotProps {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
close: () => void;
|
|
4
|
+
videoId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const CourseAboutIntroVideoModalSlot: ({ isOpen, close, videoId }: CourseAboutIntroVideoModalSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import { VideoModal } from '../../../generic';
|
|
4
|
+
import { CourseAboutIntroVideoModalContentSlot } from '../CourseAboutIntroVideoModalContentSlot';
|
|
5
|
+
export const CourseAboutIntroVideoModalSlot = ({ isOpen, close, videoId }) => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutIntroVideoModal.v1", isOpen: isOpen, close: close, videoId: videoId, children: _jsx(VideoModal, { isOpen: isOpen, close: close, children: _jsx(CourseAboutIntroVideoModalContentSlot, { videoId: videoId }) }) }));
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/slots/CourseAboutIntroVideoSlots/CourseAboutIntroVideoModalSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,qCAAqC,EAAE,MAAM,0CAA0C,CAAC;AAQjG,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAuC,EAAE,EAAE,CAAC,CACjH,KAAC,IAAI,IACH,EAAE,EAAC,iEAAiE,EACpE,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,YAEhB,KAAC,UAAU,IAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,YACtC,KAAC,qCAAqC,IAAC,OAAO,EAAE,OAAO,GAAI,GAChD,GACR,CACR,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport { VideoModal } from '@src/generic';\nimport { CourseAboutIntroVideoModalContentSlot } from '../CourseAboutIntroVideoModalContentSlot';\n\nexport interface CourseAboutIntroVideoModalSlotProps {\n isOpen: boolean,\n close: () => void,\n videoId: string,\n}\n\nexport const CourseAboutIntroVideoModalSlot = ({ isOpen, close, videoId }: CourseAboutIntroVideoModalSlotProps) => (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutIntroVideoModal.v1\"\n isOpen={isOpen}\n close={close}\n videoId={videoId}\n >\n <VideoModal isOpen={isOpen} close={close}>\n <CourseAboutIntroVideoModalContentSlot videoId={videoId} />\n </VideoModal>\n </Slot>\n);\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CourseAboutIntroVideoButtonSlot } from './CourseAboutIntroVideoButtonSlot';
|
|
2
|
+
import { CourseAboutIntroVideoModalSlot } from './CourseAboutIntroVideoModalSlot';
|
|
3
|
+
import { CourseAboutIntroVideoModalContentSlot } from './CourseAboutIntroVideoModalContentSlot';
|
|
4
|
+
export { CourseAboutIntroVideoButtonSlot, CourseAboutIntroVideoModalSlot, CourseAboutIntroVideoModalContentSlot, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CourseAboutIntroVideoButtonSlot } from './CourseAboutIntroVideoButtonSlot';
|
|
2
|
+
import { CourseAboutIntroVideoModalSlot } from './CourseAboutIntroVideoModalSlot';
|
|
3
|
+
import { CourseAboutIntroVideoModalContentSlot } from './CourseAboutIntroVideoModalContentSlot';
|
|
4
|
+
export { CourseAboutIntroVideoButtonSlot, CourseAboutIntroVideoModalSlot, CourseAboutIntroVideoModalContentSlot, };
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseAboutIntroVideoSlots/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAEhG,OAAO,EACL,+BAA+B,EAC/B,8BAA8B,EAC9B,qCAAqC,GACtC,CAAC","sourcesContent":["import { CourseAboutIntroVideoButtonSlot } from './CourseAboutIntroVideoButtonSlot';\nimport { CourseAboutIntroVideoModalSlot } from './CourseAboutIntroVideoModalSlot';\nimport { CourseAboutIntroVideoModalContentSlot } from './CourseAboutIntroVideoModalContentSlot';\n\nexport {\n CourseAboutIntroVideoButtonSlot,\n CourseAboutIntroVideoModalSlot,\n CourseAboutIntroVideoModalContentSlot,\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CourseAboutOverviewSlotProps {
|
|
2
|
+
overviewData: string;
|
|
3
|
+
courseId: string;
|
|
4
|
+
}
|
|
5
|
+
declare const CourseAboutOverviewSlot: ({ overviewData, courseId }: CourseAboutOverviewSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CourseAboutOverviewSlot;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import { CourseOverview } from '../../course-about/course-overview';
|
|
4
|
+
const CourseAboutOverviewSlot = ({ overviewData, courseId }) => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutOverview.v1", overviewData: overviewData, courseId: courseId, children: _jsx(CourseOverview, { overviewData: overviewData, courseId: courseId }) }));
|
|
5
|
+
export default CourseAboutOverviewSlot;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseAboutOverviewSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAOnE,MAAM,uBAAuB,GAAG,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAgC,EAAE,EAAE,CAAC,CAC5F,KAAC,IAAI,IACH,EAAE,EAAC,0DAA0D,EAC7D,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,QAAQ,YAElB,KAAC,cAAc,IAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC7D,CACR,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport { CourseOverview } from '@src/course-about/course-overview';\n\nexport interface CourseAboutOverviewSlotProps {\n overviewData: string,\n courseId: string,\n}\n\nconst CourseAboutOverviewSlot = ({ overviewData, courseId }: CourseAboutOverviewSlotProps) => (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutOverview.v1\"\n overviewData={overviewData}\n courseId={courseId}\n >\n <CourseOverview overviewData={overviewData} courseId={courseId} />\n </Slot>\n);\n\nexport default CourseAboutOverviewSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CourseAboutData } from '../../course-about/types';
|
|
2
|
+
export interface CourseAboutSidebarCoursePriceSlotProps {
|
|
3
|
+
coursePrice: CourseAboutData['coursePrice'];
|
|
4
|
+
}
|
|
5
|
+
declare const CourseAboutSidebarCoursePriceSlot: ({ coursePrice }: CourseAboutSidebarCoursePriceSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CourseAboutSidebarCoursePriceSlot;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { MoneyFilled as MoneyFilledIcon } from '@openedx/paragon/icons';
|
|
3
|
+
import { Slot, useIntl } from '@openedx/frontend-base';
|
|
4
|
+
import SidebarDetailsItem from '../../course-about/course-sidebar/sidebar-details/SidebarDetailsItem';
|
|
5
|
+
import messages from '../../course-about/course-sidebar/sidebar-details/messages';
|
|
6
|
+
const CourseAboutSidebarCoursePriceSlot = ({ coursePrice }) => {
|
|
7
|
+
const intl = useIntl();
|
|
8
|
+
return (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutSidebarCoursePrice.v1", coursePrice: coursePrice, children: _jsx(SidebarDetailsItem, { icon: MoneyFilledIcon, label: intl.formatMessage(messages.price), value: coursePrice }, "price") }));
|
|
9
|
+
};
|
|
10
|
+
export default CourseAboutSidebarCoursePriceSlot;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseAboutSidebarCoursePriceSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,kBAAkB,MAAM,qEAAqE,CAAC;AACrG,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AAMjF,MAAM,iCAAiC,GAAG,CAAC,EAAE,WAAW,EAA0C,EAAE,EAAE;IACpG,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,OAAO,CACL,KAAC,IAAI,IACH,EAAE,EAAC,oEAAoE,EACvE,WAAW,EAAE,WAAW,YAExB,KAAC,kBAAkB,IAEjB,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EACzC,KAAK,EAAE,WAAW,IAHd,OAAO,CAIX,GACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iCAAiC,CAAC","sourcesContent":["import { MoneyFilled as MoneyFilledIcon } from '@openedx/paragon/icons';\nimport { Slot, useIntl } from '@openedx/frontend-base';\n\nimport type { CourseAboutData } from '@src/course-about/types';\nimport SidebarDetailsItem from '@src/course-about/course-sidebar/sidebar-details/SidebarDetailsItem';\nimport messages from '@src/course-about/course-sidebar/sidebar-details/messages';\n\nexport interface CourseAboutSidebarCoursePriceSlotProps {\n coursePrice: CourseAboutData['coursePrice'],\n}\n\nconst CourseAboutSidebarCoursePriceSlot = ({ coursePrice }: CourseAboutSidebarCoursePriceSlotProps) => {\n const intl = useIntl();\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutSidebarCoursePrice.v1\"\n coursePrice={coursePrice}\n >\n <SidebarDetailsItem\n key=\"price\"\n icon={MoneyFilledIcon}\n label={intl.formatMessage(messages.price)}\n value={coursePrice}\n />\n </Slot>\n );\n};\n\nexport default CourseAboutSidebarCoursePriceSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CourseAboutData } from '../../course-about/types';
|
|
2
|
+
export interface CourseAboutSidebarSlotProps {
|
|
3
|
+
courseAboutData: CourseAboutData;
|
|
4
|
+
}
|
|
5
|
+
declare const CourseAboutSidebarSlot: ({ courseAboutData }: CourseAboutSidebarSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CourseAboutSidebarSlot;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import CourseSidebar from '../../course-about/course-sidebar/CourseSidebar';
|
|
4
|
+
const CourseAboutSidebarSlot = ({ courseAboutData }) => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutSidebar.v1", courseAboutData: courseAboutData, children: _jsx("aside", { children: _jsx(CourseSidebar, { courseAboutData: courseAboutData }) }) }));
|
|
5
|
+
export default CourseAboutSidebarSlot;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseAboutSidebarSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,aAAa,MAAM,gDAAgD,CAAC;AAO3E,MAAM,sBAAsB,GAAG,CAAC,EAAE,eAAe,EAA+B,EAAE,EAAE,CAAC,CACnF,KAAC,IAAI,IACH,EAAE,EAAC,yDAAyD,EAC5D,eAAe,EAAE,eAAe,YAEhC,0BACE,KAAC,aAAa,IAAC,eAAe,EAAE,eAAe,GAAI,GAC7C,GACH,CACR,CAAC;AAEF,eAAe,sBAAsB,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport CourseSidebar from '@src/course-about/course-sidebar/CourseSidebar';\nimport type { CourseAboutData } from '@src/course-about/types';\n\nexport interface CourseAboutSidebarSlotProps {\n courseAboutData: CourseAboutData,\n}\n\nconst CourseAboutSidebarSlot = ({ courseAboutData }: CourseAboutSidebarSlotProps) => (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutSidebar.v1\"\n courseAboutData={courseAboutData}\n >\n <aside>\n <CourseSidebar courseAboutData={courseAboutData} />\n </aside>\n </Slot>\n);\n\nexport default CourseAboutSidebarSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SocialLink } from '../../course-about/course-sidebar/sidebar-social/types';
|
|
2
|
+
export interface CourseAboutSidebarSocialSlotProps {
|
|
3
|
+
socialLinks: SocialLink[];
|
|
4
|
+
}
|
|
5
|
+
declare const CourseAboutSidebarSocialSlot: ({ socialLinks }: CourseAboutSidebarSocialSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CourseAboutSidebarSocialSlot;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Stack } from '@openedx/paragon';
|
|
3
|
+
import { Slot, useIntl, useSlotContext, useWidgets, useWidgetOptions, } from '@openedx/frontend-base';
|
|
4
|
+
import SocialLinks from '../../course-about/course-sidebar/sidebar-social/SocialLinks';
|
|
5
|
+
import messages from '../../course-about/course-sidebar/sidebar-social/messages';
|
|
6
|
+
const SocialStackLayout = () => {
|
|
7
|
+
const intl = useIntl();
|
|
8
|
+
const widgets = useWidgets();
|
|
9
|
+
return (_jsx(Stack, { className: "justify-content-center my-3", direction: "horizontal", gap: 4, "aria-label": intl.formatMessage(messages.socialSharingOptionsAriaLabel), children: widgets }));
|
|
10
|
+
};
|
|
11
|
+
const DefaultSocialLinksWidget = () => {
|
|
12
|
+
var _a;
|
|
13
|
+
const { socialLinks } = useSlotContext();
|
|
14
|
+
const options = useWidgetOptions();
|
|
15
|
+
const resolved = typeof options.socialLinks === 'function'
|
|
16
|
+
? options.socialLinks(socialLinks)
|
|
17
|
+
: (_a = options.socialLinks) !== null && _a !== void 0 ? _a : socialLinks;
|
|
18
|
+
return _jsx(SocialLinks, { socialLinks: resolved });
|
|
19
|
+
};
|
|
20
|
+
const CourseAboutSidebarSocialSlot = ({ socialLinks }) => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseAboutSidebarSocial.v1", layout: SocialStackLayout, socialLinks: socialLinks, children: _jsx(DefaultSocialLinksWidget, {}) }));
|
|
21
|
+
export default CourseAboutSidebarSocialSlot;
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseAboutSidebarSocialSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EACL,IAAI,EACJ,OAAO,EACP,cAAc,EACd,UAAU,EACV,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,WAAW,MAAM,6DAA6D,CAAC;AACtF,OAAO,QAAQ,MAAM,0DAA0D,CAAC;AAOhF,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC7B,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,OAAO,CACL,KAAC,KAAK,IACJ,SAAS,EAAC,6BAA6B,EACvC,SAAS,EAAC,YAAY,EACtB,GAAG,EAAE,CAAC,gBACM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,6BAA6B,CAAC,YAErE,OAAO,GACF,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,wBAAwB,GAAG,GAAG,EAAE;;IACpC,MAAM,EAAE,WAAW,EAAE,GAAG,cAAc,EAAkD,CAAC;IACzF,MAAM,OAAO,GAAG,gBAAgB,EAE/B,CAAC;IACF,MAAM,QAAQ,GAAG,OAAO,OAAO,CAAC,WAAW,KAAK,UAAU;QACxD,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC;QAClC,CAAC,CAAC,MAAA,OAAO,CAAC,WAAW,mCAAI,WAAW,CAAC;IACvC,OAAO,KAAC,WAAW,IAAC,WAAW,EAAE,QAAQ,GAAI,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,4BAA4B,GAAG,CAAC,EAAE,WAAW,EAAqC,EAAE,EAAE,CAAC,CAC3F,KAAC,IAAI,IACH,EAAE,EAAC,+DAA+D,EAClE,MAAM,EAAE,iBAAiB,EACzB,WAAW,EAAE,WAAW,YAExB,KAAC,wBAAwB,KAAG,GACvB,CACR,CAAC;AAEF,eAAe,4BAA4B,CAAC","sourcesContent":["import { Stack } from '@openedx/paragon';\nimport {\n Slot,\n useIntl,\n useSlotContext,\n useWidgets,\n useWidgetOptions,\n} from '@openedx/frontend-base';\n\nimport SocialLinks from '@src/course-about/course-sidebar/sidebar-social/SocialLinks';\nimport messages from '@src/course-about/course-sidebar/sidebar-social/messages';\nimport type { SocialLink } from '@src/course-about/course-sidebar/sidebar-social/types';\n\nexport interface CourseAboutSidebarSocialSlotProps {\n socialLinks: SocialLink[],\n}\n\nconst SocialStackLayout = () => {\n const intl = useIntl();\n const widgets = useWidgets();\n return (\n <Stack\n className=\"justify-content-center my-3\"\n direction=\"horizontal\"\n gap={4}\n aria-label={intl.formatMessage(messages.socialSharingOptionsAriaLabel)}\n >\n {widgets}\n </Stack>\n );\n};\n\nconst DefaultSocialLinksWidget = () => {\n const { socialLinks } = useSlotContext() as unknown as CourseAboutSidebarSocialSlotProps;\n const options = useWidgetOptions() as {\n socialLinks?: SocialLink[] | ((current: SocialLink[]) => SocialLink[]),\n };\n const resolved = typeof options.socialLinks === 'function'\n ? options.socialLinks(socialLinks)\n : options.socialLinks ?? socialLinks;\n return <SocialLinks socialLinks={resolved} />;\n};\n\nconst CourseAboutSidebarSocialSlot = ({ socialLinks }: CourseAboutSidebarSocialSlotProps) => (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseAboutSidebarSocial.v1\"\n layout={SocialStackLayout}\n socialLinks={socialLinks}\n >\n <DefaultSocialLinksWidget />\n </Slot>\n);\n\nexport default CourseAboutSidebarSocialSlot;\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Course } from '../../../../generic/course-card/types';
|
|
2
|
+
export interface CourseCatalogDataTableCourseCardSlotProps {
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
courseId?: string;
|
|
5
|
+
courseOrg?: string;
|
|
6
|
+
courseName?: string;
|
|
7
|
+
courseNumber?: string;
|
|
8
|
+
courseImageUrl?: string;
|
|
9
|
+
courseStartDate?: string;
|
|
10
|
+
courseAdvertisedStart?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const CourseCatalogDataTableCourseCardSlot: ({ original: courseData, isLoading, }: {
|
|
13
|
+
original?: Course;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default CourseCatalogDataTableCourseCardSlot;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import { CourseCard } from '../../../../generic';
|
|
4
|
+
const CourseCatalogDataTableCourseCardSlot = ({ original: courseData, isLoading, }) => {
|
|
5
|
+
const slotProps = {
|
|
6
|
+
isLoading,
|
|
7
|
+
courseId: courseData === null || courseData === void 0 ? void 0 : courseData.id,
|
|
8
|
+
courseOrg: courseData === null || courseData === void 0 ? void 0 : courseData.data.org,
|
|
9
|
+
courseName: courseData === null || courseData === void 0 ? void 0 : courseData.data.content.displayName,
|
|
10
|
+
courseNumber: courseData === null || courseData === void 0 ? void 0 : courseData.data.number,
|
|
11
|
+
courseImageUrl: courseData === null || courseData === void 0 ? void 0 : courseData.data.imageUrl,
|
|
12
|
+
courseStartDate: courseData === null || courseData === void 0 ? void 0 : courseData.data.start,
|
|
13
|
+
courseAdvertisedStart: courseData === null || courseData === void 0 ? void 0 : courseData.data.advertisedStart,
|
|
14
|
+
};
|
|
15
|
+
return (_jsx(Slot, Object.assign({ id: "org.openedx.frontend.slot.catalog.courseCatalogDataTableCourseCard.v1" }, slotProps, { children: _jsx(CourseCard, Object.assign({}, slotProps)) })));
|
|
16
|
+
};
|
|
17
|
+
export default CourseCatalogDataTableCourseCardSlot;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/CourseCatalogDataTableCourseCardSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAc1C,MAAM,oCAAoC,GAAG,CAAC,EAC5C,QAAQ,EAAE,UAAU,EACpB,SAAS,GAIV,EAAE,EAAE;IACH,MAAM,SAAS,GAA8C;QAC3D,SAAS;QACT,QAAQ,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,EAAE;QACxB,SAAS,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,GAAG;QAC/B,UAAU,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,OAAO,CAAC,WAAW;QAChD,YAAY,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,MAAM;QACrC,cAAc,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,QAAQ;QACzC,eAAe,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,KAAK;QACvC,qBAAqB,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,eAAe;KACxD,CAAC;IAEF,OAAO,CACL,KAAC,IAAI,kBACH,EAAE,EAAC,uEAAuE,IACtE,SAAS,cAEb,KAAC,UAAU,oBAAK,SAAS,EAAI,IACxB,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oCAAoC,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport { CourseCard } from '@src/generic';\nimport type { Course } from '@src/generic/course-card/types';\n\nexport interface CourseCatalogDataTableCourseCardSlotProps {\n isLoading?: boolean,\n courseId?: string,\n courseOrg?: string,\n courseName?: string,\n courseNumber?: string,\n courseImageUrl?: string,\n courseStartDate?: string,\n courseAdvertisedStart?: string,\n}\n\nconst CourseCatalogDataTableCourseCardSlot = ({\n original: courseData,\n isLoading,\n}: {\n original?: Course,\n isLoading?: boolean,\n}) => {\n const slotProps: CourseCatalogDataTableCourseCardSlotProps = {\n isLoading,\n courseId: courseData?.id,\n courseOrg: courseData?.data.org,\n courseName: courseData?.data.content.displayName,\n courseNumber: courseData?.data.number,\n courseImageUrl: courseData?.data.imageUrl,\n courseStartDate: courseData?.data.start,\n courseAdvertisedStart: courseData?.data.advertisedStart,\n };\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseCatalogDataTableCourseCard.v1\"\n {...slotProps}\n >\n <CourseCard {...slotProps} />\n </Slot>\n );\n};\n\nexport default CourseCatalogDataTableCourseCardSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CourseListSearchResponse } from '../../../data/course-list-search/types';
|
|
2
|
+
export interface CourseCatalogDataTableCardViewSlotProps {
|
|
3
|
+
displayData?: CourseListSearchResponse;
|
|
4
|
+
}
|
|
5
|
+
declare const CourseCatalogDataTableCardViewSlot: ({ displayData }: CourseCatalogDataTableCardViewSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CourseCatalogDataTableCardViewSlot;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { CardView } from '@openedx/paragon';
|
|
3
|
+
import { Slot } from '@openedx/frontend-base';
|
|
4
|
+
import { DEFAULT_PAGE_SIZE } from '../../../data/course-list-search/constants';
|
|
5
|
+
import CourseCatalogDataTableCourseCardSlot from './CourseCatalogDataTableCourseCardSlot';
|
|
6
|
+
const CourseCatalogDataTableCardViewSlot = ({ displayData }) => {
|
|
7
|
+
var _a;
|
|
8
|
+
return (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseCatalogDataTableCardView.v1", displayData: displayData, children: _jsx(CardView, { CardComponent: CourseCatalogDataTableCourseCardSlot, skeletonCardCount: Math.min((_a = displayData === null || displayData === void 0 ? void 0 : displayData.total) !== null && _a !== void 0 ? _a : DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE) }) }));
|
|
9
|
+
};
|
|
10
|
+
export default CourseCatalogDataTableCardViewSlot;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableCardViewSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,OAAO,oCAAoC,MAAM,wCAAwC,CAAC;AAM1F,MAAM,kCAAkC,GAAG,CAAC,EAAE,WAAW,EAA2C,EAAE,EAAE;;IAAC,OAAA,CACvG,KAAC,IAAI,IACH,EAAE,EAAC,qEAAqE,EACxE,WAAW,EAAE,WAAW,YAExB,KAAC,QAAQ,IACP,aAAa,EAAE,oCAAoC,EACnD,iBAAiB,EAAE,IAAI,CAAC,GAAG,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,mCAAI,iBAAiB,EAAE,iBAAiB,CAAC,GACvF,GACG,CACR,CAAA;CAAA,CAAC;AAEF,eAAe,kCAAkC,CAAC","sourcesContent":["import { CardView } from '@openedx/paragon';\nimport { Slot } from '@openedx/frontend-base';\n\nimport { DEFAULT_PAGE_SIZE } from '@src/data/course-list-search/constants';\nimport type { CourseListSearchResponse } from '@src/data/course-list-search/types';\nimport CourseCatalogDataTableCourseCardSlot from './CourseCatalogDataTableCourseCardSlot';\n\nexport interface CourseCatalogDataTableCardViewSlotProps {\n displayData?: CourseListSearchResponse,\n}\n\nconst CourseCatalogDataTableCardViewSlot = ({ displayData }: CourseCatalogDataTableCardViewSlotProps) => (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseCatalogDataTableCardView.v1\"\n displayData={displayData}\n >\n <CardView\n CardComponent={CourseCatalogDataTableCourseCardSlot}\n skeletonCardCount={Math.min(displayData?.total ?? DEFAULT_PAGE_SIZE, DEFAULT_PAGE_SIZE)}\n />\n </Slot>\n);\n\nexport default CourseCatalogDataTableCardViewSlot;\n"]}
|
package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableControlBarSlot/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CourseCatalogDataTableControlBarSlotProps {
|
|
2
|
+
currentPageResultsCount: number;
|
|
3
|
+
totalResultsCount: number;
|
|
4
|
+
}
|
|
5
|
+
declare const CourseCatalogDataTableControlBarSlot: ({ currentPageResultsCount, totalResultsCount, }: CourseCatalogDataTableControlBarSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CourseCatalogDataTableControlBarSlot;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DataTable } from '@openedx/paragon';
|
|
3
|
+
import { Slot } from '@openedx/frontend-base';
|
|
4
|
+
const CourseCatalogDataTableControlBarSlot = ({ currentPageResultsCount, totalResultsCount, }) => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseCatalogDataTableControlBar.v1", currentPageResultsCount: currentPageResultsCount, totalResultsCount: totalResultsCount, children: _jsx(DataTable.TableControlBar, {}) }));
|
|
5
|
+
export default CourseCatalogDataTableControlBarSlot;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableControlBarSlot/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableControlBarSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAO9C,MAAM,oCAAoC,GAAG,CAAC,EAC5C,uBAAuB,EACvB,iBAAiB,GACyB,EAAE,EAAE,CAAC,CAC/C,KAAC,IAAI,IACH,EAAE,EAAC,uEAAuE,EAC1E,uBAAuB,EAAE,uBAAuB,EAChD,iBAAiB,EAAE,iBAAiB,YAEpC,KAAC,SAAS,CAAC,eAAe,KAAG,GACxB,CACR,CAAC;AAEF,eAAe,oCAAoC,CAAC","sourcesContent":["import { DataTable } from '@openedx/paragon';\nimport { Slot } from '@openedx/frontend-base';\n\nexport interface CourseCatalogDataTableControlBarSlotProps {\n currentPageResultsCount: number,\n totalResultsCount: number,\n}\n\nconst CourseCatalogDataTableControlBarSlot = ({\n currentPageResultsCount,\n totalResultsCount,\n}: CourseCatalogDataTableControlBarSlotProps) => (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseCatalogDataTableControlBar.v1\"\n currentPageResultsCount={currentPageResultsCount}\n totalResultsCount={totalResultsCount}\n >\n <DataTable.TableControlBar />\n </Slot>\n);\n\nexport default CourseCatalogDataTableControlBarSlot;\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { CourseListSearchResponse, DataTableParams } from '../../../data/course-list-search/types';
|
|
2
|
+
export interface TableColumnFilterChoice {
|
|
3
|
+
name: string;
|
|
4
|
+
number: number;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface TableColumn {
|
|
8
|
+
Header: string;
|
|
9
|
+
accessor: string;
|
|
10
|
+
Filter: React.ComponentType<any>;
|
|
11
|
+
filter: string;
|
|
12
|
+
filterChoices: TableColumnFilterChoice[];
|
|
13
|
+
}
|
|
14
|
+
export interface CourseCatalogDataTableSlotProps {
|
|
15
|
+
displayData?: CourseListSearchResponse;
|
|
16
|
+
totalCourses: number;
|
|
17
|
+
pageCount: number;
|
|
18
|
+
pageIndex: number;
|
|
19
|
+
tableColumns: TableColumn[];
|
|
20
|
+
handleFetchData: (params: DataTableParams) => void;
|
|
21
|
+
}
|
|
22
|
+
declare const CourseCatalogDataTableSlot: ({ displayData, totalCourses, pageCount, pageIndex, tableColumns, handleFetchData, }: CourseCatalogDataTableSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default CourseCatalogDataTableSlot;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { breakpoints, DataTable, useMediaQuery, TextFilter, } from '@openedx/paragon';
|
|
3
|
+
import { getAppConfig, Slot, useIntl } from '@openedx/frontend-base';
|
|
4
|
+
import { appId } from '../../../constants';
|
|
5
|
+
import { DEFAULT_PAGE_SIZE } from '../../../data/course-list-search/constants';
|
|
6
|
+
import messages from '../../../catalog/messages';
|
|
7
|
+
import CourseCatalogDataTableControlBarSlot from '../CourseCatalogDataTableControlBarSlot';
|
|
8
|
+
import CourseCatalogDataTableCardViewSlot from '../CourseCatalogDataTableCardViewSlot';
|
|
9
|
+
import CourseCatalogDataTableTableFooterSlot from '../CourseCatalogDataTableTableFooterSlot';
|
|
10
|
+
const CourseCatalogDataTableSlot = ({ displayData, totalCourses, pageCount, pageIndex, tableColumns, handleFetchData, }) => {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
const intl = useIntl();
|
|
13
|
+
const isMedium = useMediaQuery({ maxWidth: breakpoints.large.maxWidth });
|
|
14
|
+
return (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseCatalogDataTable.v1", displayData: displayData, totalCourses: totalCourses, pageCount: pageCount, pageIndex: pageIndex, tableColumns: tableColumns, handleFetchData: handleFetchData, children: _jsxs(DataTable, { showFiltersInSidebar: !isMedium, numBreakoutFilters: 0, isFilterable: getAppConfig(appId).ENABLE_COURSE_DISCOVERY === true, isSortable: true, isPaginated: true, manualFilters: true, manualPagination: true, defaultColumnValues: { Filter: TextFilter }, itemCount: (displayData === null || displayData === void 0 ? void 0 : displayData.total) || totalCourses, pageSize: DEFAULT_PAGE_SIZE, pageCount: pageCount, initialState: { pageSize: DEFAULT_PAGE_SIZE, pageIndex }, data: displayData === null || displayData === void 0 ? void 0 : displayData.results, columns: tableColumns, fetchData: handleFetchData, initialTableOptions: { getRowId: (row) => row.id }, children: [_jsx(CourseCatalogDataTableControlBarSlot, { currentPageResultsCount: (_b = (_a = displayData === null || displayData === void 0 ? void 0 : displayData.results) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0, totalResultsCount: (_c = displayData === null || displayData === void 0 ? void 0 : displayData.total) !== null && _c !== void 0 ? _c : 0 }), _jsx(CourseCatalogDataTableCardViewSlot, { displayData: displayData }), _jsx(DataTable.EmptyTable, { content: intl.formatMessage(messages.noResultsFound) }), _jsx(CourseCatalogDataTableTableFooterSlot, {})] }) }));
|
|
15
|
+
};
|
|
16
|
+
export default CourseCatalogDataTableSlot;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,GAClD,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAG7C,OAAO,oCAAoC,MAAM,yCAAyC,CAAC;AAC3F,OAAO,kCAAkC,MAAM,uCAAuC,CAAC;AACvF,OAAO,qCAAqC,MAAM,0CAA0C,CAAC;AAyB7F,MAAM,0BAA0B,GAAG,CAAC,EAClC,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,YAAY,EACZ,eAAe,GACiB,EAAE,EAAE;;IACpC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,aAAa,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEzE,OAAO,CACL,KAAC,IAAI,IACH,EAAE,EAAC,6DAA6D,EAChE,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,YAEhC,MAAC,SAAS,IACR,oBAAoB,EAAE,CAAC,QAAQ,EAC/B,kBAAkB,EAAE,CAAC,EACrB,YAAY,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,uBAAuB,KAAK,IAAI,EAClE,UAAU,QACV,WAAW,QACX,aAAa,QACb,gBAAgB,QAChB,mBAAmB,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAC3C,SAAS,EAAE,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,KAAI,YAAY,EAC7C,QAAQ,EAAE,iBAAiB,EAC3B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,EACxD,IAAI,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,EAC1B,OAAO,EAAE,YAAY,EACrB,SAAS,EAAE,eAAe,EAC1B,mBAAmB,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,aAElD,KAAC,oCAAoC,IACnC,uBAAuB,EAAE,MAAA,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,0CAAE,MAAM,mCAAI,CAAC,EAC1D,iBAAiB,EAAE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,mCAAI,CAAC,GAC1C,EACF,KAAC,kCAAkC,IAAC,WAAW,EAAE,WAAW,GAAI,EAChE,KAAC,SAAS,CAAC,UAAU,IAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAI,EAC9E,KAAC,qCAAqC,KAAG,IAC/B,GACP,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC","sourcesContent":["import {\n breakpoints, DataTable, useMediaQuery, TextFilter,\n} from '@openedx/paragon';\nimport { getAppConfig, Slot, useIntl } from '@openedx/frontend-base';\n\nimport { appId } from '@src/constants';\nimport { DEFAULT_PAGE_SIZE } from '@src/data/course-list-search/constants';\nimport messages from '@src/catalog/messages';\nimport type { CourseListSearchResponse, DataTableParams } from '@src/data/course-list-search/types';\n\nimport CourseCatalogDataTableControlBarSlot from '../CourseCatalogDataTableControlBarSlot';\nimport CourseCatalogDataTableCardViewSlot from '../CourseCatalogDataTableCardViewSlot';\nimport CourseCatalogDataTableTableFooterSlot from '../CourseCatalogDataTableTableFooterSlot';\n\nexport interface TableColumnFilterChoice {\n name: string,\n number: number,\n value: string,\n}\n\nexport interface TableColumn {\n Header: string,\n accessor: string,\n Filter: React.ComponentType<any>,\n filter: string,\n filterChoices: TableColumnFilterChoice[],\n}\n\nexport interface CourseCatalogDataTableSlotProps {\n displayData?: CourseListSearchResponse,\n totalCourses: number,\n pageCount: number,\n pageIndex: number,\n tableColumns: TableColumn[],\n handleFetchData: (params: DataTableParams) => void,\n}\n\nconst CourseCatalogDataTableSlot = ({\n displayData,\n totalCourses,\n pageCount,\n pageIndex,\n tableColumns,\n handleFetchData,\n}: CourseCatalogDataTableSlotProps) => {\n const intl = useIntl();\n const isMedium = useMediaQuery({ maxWidth: breakpoints.large.maxWidth });\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseCatalogDataTable.v1\"\n displayData={displayData}\n totalCourses={totalCourses}\n pageCount={pageCount}\n pageIndex={pageIndex}\n tableColumns={tableColumns}\n handleFetchData={handleFetchData}\n >\n <DataTable\n showFiltersInSidebar={!isMedium}\n numBreakoutFilters={0}\n isFilterable={getAppConfig(appId).ENABLE_COURSE_DISCOVERY === true}\n isSortable\n isPaginated\n manualFilters\n manualPagination\n defaultColumnValues={{ Filter: TextFilter }}\n itemCount={displayData?.total || totalCourses}\n pageSize={DEFAULT_PAGE_SIZE}\n pageCount={pageCount}\n initialState={{ pageSize: DEFAULT_PAGE_SIZE, pageIndex }}\n data={displayData?.results}\n columns={tableColumns}\n fetchData={handleFetchData}\n initialTableOptions={{ getRowId: (row) => row.id }}\n >\n <CourseCatalogDataTableControlBarSlot\n currentPageResultsCount={displayData?.results?.length ?? 0}\n totalResultsCount={displayData?.total ?? 0}\n />\n <CourseCatalogDataTableCardViewSlot displayData={displayData} />\n <DataTable.EmptyTable content={intl.formatMessage(messages.noResultsFound)} />\n <CourseCatalogDataTableTableFooterSlot />\n </DataTable>\n </Slot>\n );\n};\n\nexport default CourseCatalogDataTableSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DataTable } from '@openedx/paragon';
|
|
3
|
+
import { Slot } from '@openedx/frontend-base';
|
|
4
|
+
const CourseCatalogDataTableTableFooterSlot = () => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseCatalogDataTableTableFooter.v1", children: _jsx(DataTable.TableFooter, {}) }));
|
|
5
|
+
export default CourseCatalogDataTableTableFooterSlot;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
package/dist/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableTableFooterSlot/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/slots/CourseCatalogDataTableSlots/CourseCatalogDataTableTableFooterSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,MAAM,qCAAqC,GAAG,GAAG,EAAE,CAAC,CAClD,KAAC,IAAI,IAAC,EAAE,EAAC,wEAAwE,YAC/E,KAAC,SAAS,CAAC,WAAW,KAAG,GACpB,CACR,CAAC;AAEF,eAAe,qCAAqC,CAAC","sourcesContent":["import { DataTable } from '@openedx/paragon';\nimport { Slot } from '@openedx/frontend-base';\n\nconst CourseCatalogDataTableTableFooterSlot = () => (\n <Slot id=\"org.openedx.frontend.slot.catalog.courseCatalogDataTableTableFooter.v1\">\n <DataTable.TableFooter />\n </Slot>\n);\n\nexport default CourseCatalogDataTableTableFooterSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import CourseCatalogDataTableSlot from './CourseCatalogDataTableSlot';
|
|
2
|
+
import CourseCatalogDataTableControlBarSlot from './CourseCatalogDataTableControlBarSlot';
|
|
3
|
+
import CourseCatalogDataTableCardViewSlot from './CourseCatalogDataTableCardViewSlot';
|
|
4
|
+
import CourseCatalogDataTableTableFooterSlot from './CourseCatalogDataTableTableFooterSlot';
|
|
5
|
+
import CourseCatalogDataTableCourseCardSlot from './CourseCatalogDataTableCardViewSlot/CourseCatalogDataTableCourseCardSlot';
|
|
6
|
+
export { CourseCatalogDataTableSlot, CourseCatalogDataTableControlBarSlot, CourseCatalogDataTableCardViewSlot, CourseCatalogDataTableTableFooterSlot, CourseCatalogDataTableCourseCardSlot, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import CourseCatalogDataTableSlot from './CourseCatalogDataTableSlot';
|
|
2
|
+
import CourseCatalogDataTableControlBarSlot from './CourseCatalogDataTableControlBarSlot';
|
|
3
|
+
import CourseCatalogDataTableCardViewSlot from './CourseCatalogDataTableCardViewSlot';
|
|
4
|
+
import CourseCatalogDataTableTableFooterSlot from './CourseCatalogDataTableTableFooterSlot';
|
|
5
|
+
import CourseCatalogDataTableCourseCardSlot from './CourseCatalogDataTableCardViewSlot/CourseCatalogDataTableCourseCardSlot';
|
|
6
|
+
export { CourseCatalogDataTableSlot, CourseCatalogDataTableControlBarSlot, CourseCatalogDataTableCardViewSlot, CourseCatalogDataTableTableFooterSlot, CourseCatalogDataTableCourseCardSlot, };
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseCatalogDataTableSlots/index.tsx"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AACtE,OAAO,oCAAoC,MAAM,wCAAwC,CAAC;AAC1F,OAAO,kCAAkC,MAAM,sCAAsC,CAAC;AACtF,OAAO,qCAAqC,MAAM,yCAAyC,CAAC;AAC5F,OAAO,oCAAoC,MAAM,2EAA2E,CAAC;AAE7H,OAAO,EACL,0BAA0B,EAC1B,oCAAoC,EACpC,kCAAkC,EAClC,qCAAqC,EACrC,oCAAoC,GACrC,CAAC","sourcesContent":["import CourseCatalogDataTableSlot from './CourseCatalogDataTableSlot';\nimport CourseCatalogDataTableControlBarSlot from './CourseCatalogDataTableControlBarSlot';\nimport CourseCatalogDataTableCardViewSlot from './CourseCatalogDataTableCardViewSlot';\nimport CourseCatalogDataTableTableFooterSlot from './CourseCatalogDataTableTableFooterSlot';\nimport CourseCatalogDataTableCourseCardSlot from './CourseCatalogDataTableCardViewSlot/CourseCatalogDataTableCourseCardSlot';\n\nexport {\n CourseCatalogDataTableSlot,\n CourseCatalogDataTableControlBarSlot,\n CourseCatalogDataTableCardViewSlot,\n CourseCatalogDataTableTableFooterSlot,\n CourseCatalogDataTableCourseCardSlot,\n};\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CourseCatalogIntroSlotProps {
|
|
2
|
+
searchString: string;
|
|
3
|
+
courseDataResultsLength?: number;
|
|
4
|
+
}
|
|
5
|
+
declare const CourseCatalogIntroSlot: ({ searchString, courseDataResultsLength, }: CourseCatalogIntroSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CourseCatalogIntroSlot;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { Slot, useIntl } from '@openedx/frontend-base';
|
|
4
|
+
import { breakpoints, useMediaQuery } from '@openedx/paragon';
|
|
5
|
+
import { getPageTitle } from '../../catalog/utils';
|
|
6
|
+
import { SubHeader } from '../../generic';
|
|
7
|
+
const CourseCatalogIntroSlot = ({ searchString, courseDataResultsLength, }) => {
|
|
8
|
+
const intl = useIntl();
|
|
9
|
+
const isMedium = useMediaQuery({ maxWidth: breakpoints.medium.maxWidth });
|
|
10
|
+
return (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseCatalogIntro.v1", searchString: searchString, courseDataResultsLength: courseDataResultsLength, children: _jsx(SubHeader, { title: getPageTitle({
|
|
11
|
+
intl,
|
|
12
|
+
searchString,
|
|
13
|
+
courseDataResultsLength,
|
|
14
|
+
}), className: classNames({ 'mx-2.5': isMedium }) }) }));
|
|
15
|
+
};
|
|
16
|
+
export default CourseCatalogIntroSlot;
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseCatalogIntroSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,MAAM,sBAAsB,GAAG,CAAC,EAC9B,YAAY,EACZ,uBAAuB,GACK,EAAE,EAAE;IAChC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,aAAa,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IAE1E,OAAO,CACL,KAAC,IAAI,IACH,EAAE,EAAC,yDAAyD,EAC5D,YAAY,EAAE,YAAY,EAC1B,uBAAuB,EAAE,uBAAuB,YAEhD,KAAC,SAAS,IACR,KAAK,EAAE,YAAY,CAAC;gBAClB,IAAI;gBACJ,YAAY;gBACZ,uBAAuB;aACxB,CAAC,EACF,SAAS,EAAE,UAAU,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,GAC7C,GACG,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC","sourcesContent":["import classNames from 'classnames';\nimport { Slot, useIntl } from '@openedx/frontend-base';\nimport { breakpoints, useMediaQuery } from '@openedx/paragon';\n\nimport { getPageTitle } from '@src/catalog/utils';\nimport { SubHeader } from '@src/generic';\n\nexport interface CourseCatalogIntroSlotProps {\n searchString: string,\n courseDataResultsLength?: number,\n}\n\nconst CourseCatalogIntroSlot = ({\n searchString,\n courseDataResultsLength,\n}: CourseCatalogIntroSlotProps) => {\n const intl = useIntl();\n const isMedium = useMediaQuery({ maxWidth: breakpoints.medium.maxWidth });\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseCatalogIntro.v1\"\n searchString={searchString}\n courseDataResultsLength={courseDataResultsLength}\n >\n <SubHeader\n title={getPageTitle({\n intl,\n searchString,\n courseDataResultsLength,\n })}\n className={classNames({ 'mx-2.5': isMedium })}\n />\n </Slot>\n );\n};\n\nexport default CourseCatalogIntroSlot;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface CourseCatalogSearchFieldSlotProps {
|
|
2
|
+
setSearchInput: (value: string) => void;
|
|
3
|
+
handleSearch: (value: string) => void;
|
|
4
|
+
initialSearchValue?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const CourseCatalogSearchFieldSlot: ({ setSearchInput, handleSearch, initialSearchValue, }: CourseCatalogSearchFieldSlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CourseCatalogSearchFieldSlot;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { breakpoints, SearchField, useMediaQuery } from '@openedx/paragon';
|
|
3
|
+
import { getAppConfig, Slot, useIntl } from '@openedx/frontend-base';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { appId } from '../../constants';
|
|
6
|
+
import messages from '../../catalog/messages';
|
|
7
|
+
const CourseCatalogSearchFieldSlot = ({ setSearchInput, handleSearch, initialSearchValue, }) => {
|
|
8
|
+
const intl = useIntl();
|
|
9
|
+
const isMedium = useMediaQuery({ maxWidth: breakpoints.large.maxWidth });
|
|
10
|
+
return (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.courseCatalogSearchField.v1", setSearchInput: setSearchInput, handleSearch: handleSearch, initialSearchValue: initialSearchValue, children: getAppConfig(appId).ENABLE_COURSE_DISCOVERY === true && (_jsx(SearchField, { className: classNames({
|
|
11
|
+
'w-auto mx-2.5 mb-0': isMedium,
|
|
12
|
+
'mb-4 w-25': !isMedium,
|
|
13
|
+
}), placeholder: intl.formatMessage(messages.searchPlaceholder), onChange: (value) => {
|
|
14
|
+
setSearchInput(value);
|
|
15
|
+
}, onSubmit: (value) => {
|
|
16
|
+
setSearchInput(value);
|
|
17
|
+
handleSearch(value);
|
|
18
|
+
}, value: initialSearchValue }, "search-field")) }));
|
|
19
|
+
};
|
|
20
|
+
export default CourseCatalogSearchFieldSlot;
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/CourseCatalogSearchFieldSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAQ7C,MAAM,4BAA4B,GAAG,CAAC,EACpC,cAAc,EACd,YAAY,EACZ,kBAAkB,GACgB,EAAE,EAAE;IACtC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,aAAa,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEzE,OAAO,CACL,KAAC,IAAI,IACH,EAAE,EAAC,+DAA+D,EAClE,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,YAErC,YAAY,CAAC,KAAK,CAAC,CAAC,uBAAuB,KAAK,IAAI,IAAI,CACvD,KAAC,WAAW,IAEV,SAAS,EAAE,UAAU,CAAC;gBACpB,oBAAoB,EAAE,QAAQ;gBAC9B,WAAW,EAAE,CAAC,QAAQ;aACvB,CAAC,EACF,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAC3D,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;gBAC1B,cAAc,CAAC,KAAK,CAAC,CAAC;YACxB,CAAC,EACD,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;gBAC1B,cAAc,CAAC,KAAK,CAAC,CAAC;gBACtB,YAAY,CAAC,KAAK,CAAC,CAAC;YACtB,CAAC,EACD,KAAK,EAAE,kBAAkB,IAbrB,cAAc,CAclB,CACH,GACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,4BAA4B,CAAC","sourcesContent":["import { breakpoints, SearchField, useMediaQuery } from '@openedx/paragon';\nimport { getAppConfig, Slot, useIntl } from '@openedx/frontend-base';\nimport classNames from 'classnames';\n\nimport { appId } from '@src/constants';\nimport messages from '@src/catalog/messages';\n\nexport interface CourseCatalogSearchFieldSlotProps {\n setSearchInput: (value: string) => void,\n handleSearch: (value: string) => void,\n initialSearchValue?: string,\n}\n\nconst CourseCatalogSearchFieldSlot = ({\n setSearchInput,\n handleSearch,\n initialSearchValue,\n}: CourseCatalogSearchFieldSlotProps) => {\n const intl = useIntl();\n const isMedium = useMediaQuery({ maxWidth: breakpoints.large.maxWidth });\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.courseCatalogSearchField.v1\"\n setSearchInput={setSearchInput}\n handleSearch={handleSearch}\n initialSearchValue={initialSearchValue}\n >\n {getAppConfig(appId).ENABLE_COURSE_DISCOVERY === true && (\n <SearchField\n key=\"search-field\"\n className={classNames({\n 'w-auto mx-2.5 mb-0': isMedium,\n 'mb-4 w-25': !isMedium,\n })}\n placeholder={intl.formatMessage(messages.searchPlaceholder)}\n onChange={(value: string) => {\n setSearchInput(value);\n }}\n onSubmit={(value: string) => {\n setSearchInput(value);\n handleSearch(value);\n }}\n value={initialSearchValue}\n />\n )}\n </Slot>\n );\n};\n\nexport default CourseCatalogSearchFieldSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import HomeBanner from '../../home/components/home-banner/HomeBanner';
|
|
4
|
+
const HomeBannerSlot = () => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.homeBanner.v1", children: _jsx(HomeBanner, {}) }));
|
|
5
|
+
export default HomeBannerSlot;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/HomeBannerSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,UAAU,MAAM,6CAA6C,CAAC;AAErE,MAAM,cAAc,GAAG,GAAG,EAAE,CAAC,CAC3B,KAAC,IAAI,IAAC,EAAE,EAAC,iDAAiD,YACxD,KAAC,UAAU,KAAG,GACT,CACR,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport HomeBanner from '@src/home/components/home-banner/HomeBanner';\n\nconst HomeBannerSlot = () => (\n <Slot id=\"org.openedx.frontend.slot.catalog.homeBanner.v1\">\n <HomeBanner />\n </Slot>\n);\n\nexport default HomeBannerSlot;\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Course } from '../../generic/course-card/types';
|
|
2
|
+
export interface HomeCourseCardSlotProps {
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
courseId?: string;
|
|
5
|
+
courseOrg?: string;
|
|
6
|
+
courseName?: string;
|
|
7
|
+
courseNumber?: string;
|
|
8
|
+
courseImageUrl?: string;
|
|
9
|
+
courseStartDate?: string;
|
|
10
|
+
courseAdvertisedStart?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const HomeCourseCardSlot: ({ original: courseData, isLoading, }: {
|
|
13
|
+
original?: Course;
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default HomeCourseCardSlot;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import { CourseCard } from '../../generic';
|
|
4
|
+
const HomeCourseCardSlot = ({ original: courseData, isLoading, }) => {
|
|
5
|
+
const slotProps = {
|
|
6
|
+
isLoading,
|
|
7
|
+
courseId: courseData === null || courseData === void 0 ? void 0 : courseData.id,
|
|
8
|
+
courseOrg: courseData === null || courseData === void 0 ? void 0 : courseData.data.org,
|
|
9
|
+
courseName: courseData === null || courseData === void 0 ? void 0 : courseData.data.content.displayName,
|
|
10
|
+
courseNumber: courseData === null || courseData === void 0 ? void 0 : courseData.data.number,
|
|
11
|
+
courseImageUrl: courseData === null || courseData === void 0 ? void 0 : courseData.data.imageUrl,
|
|
12
|
+
courseStartDate: courseData === null || courseData === void 0 ? void 0 : courseData.data.start,
|
|
13
|
+
courseAdvertisedStart: courseData === null || courseData === void 0 ? void 0 : courseData.data.advertisedStart,
|
|
14
|
+
};
|
|
15
|
+
return (_jsx(Slot, Object.assign({ id: "org.openedx.frontend.slot.catalog.homeCourseCard.v1" }, slotProps, { children: _jsx(CourseCard, Object.assign({}, slotProps)) })));
|
|
16
|
+
};
|
|
17
|
+
export default HomeCourseCardSlot;
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/HomeCourseCardSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAc1C,MAAM,kBAAkB,GAAG,CAAC,EAC1B,QAAQ,EAAE,UAAU,EACpB,SAAS,GAIV,EAAE,EAAE;IACH,MAAM,SAAS,GAA4B;QACzC,SAAS;QACT,QAAQ,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,EAAE;QACxB,SAAS,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,GAAG;QAC/B,UAAU,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,OAAO,CAAC,WAAW;QAChD,YAAY,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,MAAM;QACrC,cAAc,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,QAAQ;QACzC,eAAe,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,KAAK;QACvC,qBAAqB,EAAE,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,CAAC,eAAe;KACxD,CAAC;IAEF,OAAO,CACL,KAAC,IAAI,kBACH,EAAE,EAAC,qDAAqD,IACpD,SAAS,cAEb,KAAC,UAAU,oBAAK,SAAS,EAAI,IACxB,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport { CourseCard } from '@src/generic';\nimport type { Course } from '@src/generic/course-card/types';\n\nexport interface HomeCourseCardSlotProps {\n isLoading?: boolean,\n courseId?: string,\n courseOrg?: string,\n courseName?: string,\n courseNumber?: string,\n courseImageUrl?: string,\n courseStartDate?: string,\n courseAdvertisedStart?: string,\n}\n\nconst HomeCourseCardSlot = ({\n original: courseData,\n isLoading,\n}: {\n original?: Course,\n isLoading?: boolean,\n}) => {\n const slotProps: HomeCourseCardSlotProps = {\n isLoading,\n courseId: courseData?.id,\n courseOrg: courseData?.data.org,\n courseName: courseData?.data.content.displayName,\n courseNumber: courseData?.data.number,\n courseImageUrl: courseData?.data.imageUrl,\n courseStartDate: courseData?.data.start,\n courseAdvertisedStart: courseData?.data.advertisedStart,\n };\n\n return (\n <Slot\n id=\"org.openedx.frontend.slot.catalog.homeCourseCard.v1\"\n {...slotProps}\n >\n <CourseCard {...slotProps} />\n </Slot>\n );\n};\n\nexport default HomeCourseCardSlot;\n"]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot } from '@openedx/frontend-base';
|
|
3
|
+
import CoursesList from '../../home/components/courses-list/CoursesList';
|
|
4
|
+
const HomeCoursesListSlot = () => (_jsx(Slot, { id: "org.openedx.frontend.slot.catalog.homeCoursesList.v1", children: _jsx(CoursesList, {}) }));
|
|
5
|
+
export default HomeCoursesListSlot;
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slots/HomeCoursesListSlot/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,WAAW,MAAM,+CAA+C,CAAC;AAExE,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,CAChC,KAAC,IAAI,IAAC,EAAE,EAAC,sDAAsD,YAC7D,KAAC,WAAW,KAAG,GACV,CACR,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["import { Slot } from '@openedx/frontend-base';\n\nimport CoursesList from '@src/home/components/courses-list/CoursesList';\n\nconst HomeCoursesListSlot = () => (\n <Slot id=\"org.openedx.frontend.slot.catalog.homeCoursesList.v1\">\n <CoursesList />\n </Slot>\n);\n\nexport default HomeCoursesListSlot;\n"]}
|