@clickview/curator 1.0.19-dev.2 → 1.0.19-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/curator-app.css +4 -0
- package/dist/curator-app.css.map +1 -0
- package/dist/curator-app.js +3 -3
- package/dist/curator-app.js.map +1 -0
- package/dist/en.json +1 -1
- package/dist/libs/shared/src/apps/playlists/enums/PlaylistSortType.d.ts +4 -2
- package/dist/libs/shared/src/apps/playlists/enums/PlaylistType.d.ts +5 -0
- package/dist/libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.d.ts +4 -1
- package/dist/libs/shared/src/components/actions/ActionButton.d.ts +4 -0
- package/dist/libs/shared/src/components/actions/Actions.d.ts +4 -0
- package/dist/libs/shared/src/components/app-link/AppLink.d.ts +4 -0
- package/dist/libs/shared/src/components/forms/form-buttons/FormButtons.d.ts +3 -0
- package/dist/libs/shared/src/components/icon-button/IconButton.d.ts +4 -0
- package/dist/libs/shared/src/components/svg-container/SvgContainer.d.ts +2 -1
- package/dist/libs/shared/src/enums/SettingName.d.ts +2 -1
- package/dist/libs/shared/src/flight-requests/UserRequests.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +4 -1
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +4 -1
- package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +2 -2
- package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
- package/dist/libs/shared/src/interfaces/models/index.d.ts +2 -0
- package/dist/projects/curator/src/apps/customers/CustomersApplication.d.ts +11 -0
- package/dist/projects/curator/src/apps/customers/components/add-or-remove-presentations/AddOrRemovePresentations.d.ts +10 -0
- package/dist/projects/curator/src/apps/customers/flight-requests/CustomerRequests.d.ts +4 -0
- package/dist/projects/curator/src/apps/customers/views/edit-customer-presentations/EditCustomerPresentationsView.d.ts +6 -0
- package/dist/projects/curator/src/apps/customers/views/edit-customer-presentations/index.d.ts +1 -0
- package/dist/projects/curator/src/apps/subjects/SubjectsApplication.d.ts +28 -4
- package/dist/projects/curator/src/apps/subjects/components/audiences/audience-member-list/AudienceMemberItem.d.ts +11 -0
- package/dist/projects/curator/src/apps/subjects/components/audiences/audience-member-list/AudienceMemberList.d.ts +13 -0
- package/dist/projects/curator/src/apps/subjects/components/audiences/edit-audience-nav/EditAudienceNav.d.ts +10 -0
- package/dist/projects/curator/src/apps/subjects/components/audiences/index.d.ts +2 -0
- package/dist/projects/curator/src/apps/subjects/components/levels/edit-level-nav/EditLevelNav.d.ts +8 -0
- package/dist/projects/curator/src/apps/subjects/components/levels/index.d.ts +2 -0
- package/dist/projects/curator/src/apps/subjects/components/levels/level-audiences/LevelAudiences.d.ts +11 -0
- package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/LevelMemberItem.d.ts +12 -0
- package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/LevelMemberList.d.ts +25 -0
- package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/LevelMemberListHeader.d.ts +14 -0
- package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/index.d.ts +1 -0
- package/dist/projects/curator/src/apps/subjects/components/presentations/presentation-select/PresentationSelect.d.ts +1 -1
- package/dist/projects/curator/src/apps/subjects/components/subjects/edit-subject-nav/EditSubjectNav.d.ts +2 -1
- package/dist/projects/curator/src/apps/subjects/enums/ObjectMemberType.d.ts +10 -0
- package/dist/projects/curator/src/apps/subjects/enums/OwnerType.d.ts +3 -1
- package/dist/projects/curator/src/apps/subjects/enums/index.d.ts +1 -1
- package/dist/projects/curator/src/apps/subjects/services/SubjectDataService.d.ts +12 -2
- package/dist/projects/curator/src/apps/subjects/utils/LevelMemberHelper.d.ts +8 -0
- package/dist/projects/curator/src/apps/subjects/utils/LevelsNavHelper.d.ts +5 -0
- package/dist/projects/curator/src/apps/subjects/utils/SubjectsNavHelper.d.ts +1 -1
- package/dist/projects/curator/src/apps/subjects/utils/index.d.ts +2 -0
- package/dist/projects/curator/src/apps/subjects/views/audiences/audience-nav/AudienceNavView.d.ts +7 -0
- package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audience-members/EditAudienceMembers.d.ts +9 -0
- package/dist/projects/curator/src/apps/subjects/views/audiences/index.d.ts +2 -1
- package/dist/projects/curator/src/apps/subjects/views/audiences/remove-audience-member/RemoveAudienceMemberView.d.ts +11 -0
- package/dist/projects/curator/src/apps/subjects/views/levels/edit-level-members/EditLevelMembersUtils.d.ts +16 -0
- package/dist/projects/curator/src/apps/subjects/views/levels/edit-level-members/EditLevelMembersView.d.ts +18 -0
- package/dist/projects/curator/src/apps/subjects/views/levels/index.d.ts +5 -1
- package/dist/projects/curator/src/apps/subjects/views/levels/level-audiences/LevelAudiencesView.d.ts +6 -0
- package/dist/projects/curator/src/apps/subjects/views/levels/level-nav/LevelNavView.d.ts +6 -0
- package/dist/projects/curator/src/apps/subjects/views/levels/levels-redirect/LevelsRedirectView.d.ts +2 -0
- package/dist/projects/curator/src/apps/subjects/views/levels/levels-redirect/index.d.ts +1 -0
- package/dist/projects/curator/src/apps/subjects/views/levels/remove-level-member/RemoveLevelMemberView.d.ts +11 -0
- package/dist/projects/curator/src/apps/subjects/views/subjects/edit-subject-members/EditSubjectMembersView.d.ts +2 -0
- package/dist/projects/curator/src/index.d.ts +2 -0
- package/dist/projects/curator/src/shared/constants/CuratorActions.d.ts +12 -0
- package/dist/projects/curator/src/shared/constants/DataPrefixes.d.ts +2 -0
- package/dist/projects/curator/src/shared/constants/RadioChannels.d.ts +1 -0
- package/dist/projects/curator/src/shared/flight-requests/SubjectRequests.d.ts +9 -0
- package/package.json +3 -3
- package/dist/projects/curator/src/apps/subjects/enums/SubjectMemberType.d.ts +0 -5
- package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audiences-list/EditAudiencesListView.d.ts +0 -6
- package/dist/projects/curator/src/apps/subjects/views/audiences/edit-audiences-list/index.d.ts +0 -1
- package/dist/projects/curator/src/apps/subjects/views/levels/edit-levels-list/EditLevelsListView.d.ts +0 -2
- package/dist/projects/curator/src/apps/subjects/views/levels/edit-levels-list/index.d.ts +0 -1
- package/dist/projects/curator/src/shared/flight-requests/index.d.ts +0 -1
package/dist/en.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"playlists":{"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>
|
|
1
|
+
{"subjects":{"selectPresentation":{"heading":"Select a presentation to view its %{objectType}:"},"comingSoon":{"comingSoon":"Coming Soon","info":"We are currently building this topic. In the meantime, we can remind you when it's available.","remindMe":"Remind Me"},"heroVideo":{"resourcesHeading":"Resources","linksHeading":"Links","clipsHeading":"Clips","tagsHeading":"Tags","links":"%{smart_count} link |||| %{smart_count} links","resources":"%{smart_count} resource |||| %{smart_count} resources","clips":"%{smart_count} clip |||| %{smart_count} clips"}},"notifications":{"notificationList":{"noNotifications":"You have no notifications"},"services":{"suggestEditSubmit":"Suggestion was successfully submitted"},"utils":{"viewVideoDetails":"View video details","viewVideo":"View video","reviewVideos":"Review videos","viewNewContent":"View new content","reviewVideo":"Review video","seeNow":"See now"},"notifications":{"title":"Notifications","notifications":"Notifications"},"notificationsPopover":{"notifications":"Notifications","seeAll":"See all notifications"}},"playlists":{"emptyState":{"noPlaylistsHeading":"You have no playlists","noPlaylistsInfo":"Click <strong>New Playlist</strong> above to create one.","noVideosHeading":"There are no videos in this playlist","noVideosInfo":"Learn how to add videos to a playlist."},"playlistItem":{"videos":"%{smart_count} video |||| %{smart_count} videos","lastUpdated":"Last updated: %{timeAgo}"},"playlistSortSelect":{"recentlyUpdated":"Recently updated","atoz":"A to Z","ztoa":"Z to A","newest":"Newest","oldest":"Oldest"},"hooks":{"somethingWentWrong":"Something went wrong"},"validation":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long"}},"search":{"searchTips":{"heading":"Search Tips","firstTerm":"\"atomic bonding\"","firstDescription":"Search for exact phrases using quotation marks","secondTerm":"\"romeo and juliet\" english","secondDescription":"Combine normal and exact phrases together","thirdTerm":"-pollution","thirdDescription":"Exclude a keyword from your search","fourthTerm1":"tag:literature","fourthTerm2":"folder:science","fourthDescription":"Search for results within a tag, folder or series","fifthTerm":"folder:-physics","fifthDescription":"Use a \"-\" to exclude a folder, title or series"},"services":{"folderTag":"This folder","seriesTag":"This series"},"searchBar":{"findingResults":"Finding results...","recentSearches":"Recent Searches","allResults":"Show all results for","noLibraries":"There are currently no libraries to search. Add a new library to get started.","placeholder":"Search within your library... |||| Search within your libraries...","classifications":"topics","videos":"videos","tags":"tags","series":"series"}},"upload":{"fileType":{"heading":"Invalid file type","body":"Sorry but you cannot upload files of that type.","okay":"Okay","close":"Close"},"internetConnectivityError":{"title":"Internet connectivity issue","heading":"Connectivity issue.","body":"There seems to be an issue with your internet connection. Please try uploading your files again.","okay":"Okay"},"utils":{"videoProcessingError":"Something went wrong processing this video.","waiting":"Waiting to be processed","processing":"Processing %{progress}%","complete":"Complete","readyToWatch":"Ready to watch, still processing higher resolutions."}},"shared":{"backButton":{"back":"Back","backTo":"Back to %{backToName}"},"editVideoDetails":{"nameExceeds":"Name is too long","nameRequired":"Name is required","descriptionExceeds":"Description is too long","namePlaceholder":"Enter a name for your video","descriptionPlaceholder":"Enter a description for your video","cancel":"Cancel","nameLabel":"Title","descriptionLabel":"Description"},"favouriteButton":{"favouriteError":"Failed to favourite video.","unfavouriteError":"Failed to unfavourite video."},"formButtons":{"create":"Create","save":"Save","next":"Next"},"pagination":{"next":"Next","previous":"Previous"},"searchBar":{"placeholder":"Enter a search query","recentSearchHeading":"Recent Searches"},"videoItemDescription":{"showMore":"... Show more","showLess":"Show less"},"dynamicWidget":{"topics":"Topics","teach":"What would you like to teach?","preferencesTooltip":"Update your preferences"},"fixedWidget":{"preferencesTooltip":"Update your preferences"},"greeting":{"morning":"Good morning","afternoon":"Good afternoon","evening":"Good evening","fallback":"Hello","prompt":"What would you like to teach today?"},"subjectWidgetItem":{"comingSoon":"Coming Soon","edit":"Edit My Subjects"},"_pagination":{"next":"Next","previous":"Previous"},"shared-utils":{"responsive":"Responsive","small":"Small","medium":"Medium","large":"Large"},"videoActionsHelper":{"addToPlaylist":"Add to playlist","removeFromPlaylist":"Remove from playlist","share":"Share","edit":"Edit"}}}
|
package/dist/libs/shared/src/apps/playlists/interfaces/identifiers/PlaylistCollectionIdentifier.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { BaseCollectionIdentifier } from "../../../../../../common/src/backbone/interfaces";
|
|
2
2
|
import { PlaylistSortType } from "../../enums/PlaylistSortType";
|
|
3
|
+
import { PlaylistType } from "../../enums/PlaylistType";
|
|
3
4
|
export declare class PlaylistCollectionIdentifier extends BaseCollectionIdentifier<PlaylistSortType> {
|
|
4
|
-
|
|
5
|
+
type: PlaylistType;
|
|
6
|
+
constructor(sort?: PlaylistSortType, cursor?: string, type?: PlaylistType);
|
|
7
|
+
toString(): string;
|
|
5
8
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Core } from "../../../../common/src/backbone";
|
|
3
|
+
import { HashObject } from "../../../../common/src/react/interfaces";
|
|
4
|
+
import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
|
|
3
5
|
interface ActionButtonProps {
|
|
4
6
|
appLink?: Core.AppLink;
|
|
5
7
|
onClick?: (e: React.MouseEvent) => void;
|
|
@@ -7,6 +9,8 @@ interface ActionButtonProps {
|
|
|
7
9
|
className?: string;
|
|
8
10
|
tooltip?: string;
|
|
9
11
|
showSpinner?: boolean;
|
|
12
|
+
analyticsData?: HashObject;
|
|
13
|
+
analyticsOptions?: AnalyticsOptions;
|
|
10
14
|
}
|
|
11
15
|
export declare function ActionButton(props: React.PropsWithChildren<ActionButtonProps>): JSX.Element;
|
|
12
16
|
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Core } from "../../../../common/src/backbone";
|
|
3
|
+
import { HashObject } from "../../../../common/src/react/interfaces";
|
|
4
|
+
import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
|
|
3
5
|
import { BaseObject } from "../../interfaces";
|
|
4
6
|
export interface ActionOptions {
|
|
5
7
|
label: string;
|
|
@@ -10,6 +12,8 @@ export interface ActionOptions {
|
|
|
10
12
|
button?: boolean;
|
|
11
13
|
tooltip?: string;
|
|
12
14
|
showSpinner?: boolean;
|
|
15
|
+
analyticsData?: HashObject;
|
|
16
|
+
analyticsOptions?: AnalyticsOptions;
|
|
13
17
|
}
|
|
14
18
|
export declare type ActionGenerator = (obj: BaseObject) => ActionOptions[];
|
|
15
19
|
interface ActionsProps {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Core } from "../../../../common/src/backbone";
|
|
3
|
+
import { HashObject } from "../../../../common/src/react/interfaces/HashObject";
|
|
4
|
+
import { AnalyticsOptions } from "../../../../analytics/src/interfaces";
|
|
3
5
|
export interface AppLinkProps {
|
|
4
6
|
appLink: Core.AppLink;
|
|
5
7
|
className?: string;
|
|
6
8
|
tag?: 'a' | 'button';
|
|
7
9
|
onClick?: (e: React.MouseEvent) => void;
|
|
10
|
+
analyticsData?: HashObject;
|
|
11
|
+
analyticsOptions?: AnalyticsOptions;
|
|
8
12
|
}
|
|
9
13
|
export declare function AppLink(props: React.PropsWithChildren<AppLinkProps>): React.ReactElement;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from 'react-bootstrap';
|
|
2
3
|
interface FormButtonsProps {
|
|
3
4
|
isNew: boolean;
|
|
4
5
|
hasNext?: boolean;
|
|
6
|
+
submitText?: string;
|
|
7
|
+
variant?: ButtonProps['variant'];
|
|
5
8
|
}
|
|
6
9
|
export declare function FormButtons<Values extends object>(props: FormButtonsProps): JSX.Element;
|
|
7
10
|
export {};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Core } from "../../../../common/src/backbone";
|
|
3
|
+
import { HashObject } from "../../../../common/src/react/interfaces/HashObject";
|
|
4
|
+
import { AnalyticsOptions } from "../../../../analytics/src/interfaces/AnalyticsTypes";
|
|
3
5
|
interface IconButtonProps {
|
|
4
6
|
svgName: string;
|
|
5
7
|
className?: string;
|
|
6
8
|
appLink?: Core.AppLink;
|
|
7
9
|
onClick?: (e: React.MouseEvent) => void;
|
|
10
|
+
analyticsData?: HashObject;
|
|
11
|
+
analyticsOptions?: AnalyticsOptions;
|
|
8
12
|
}
|
|
9
13
|
/**
|
|
10
14
|
* Renders a button with an svg followed by text.
|
|
@@ -2,4 +2,5 @@ import { Flight } from "../../../common/src/react";
|
|
|
2
2
|
export declare const UserRequests: {
|
|
3
3
|
currentUser: Flight.Request;
|
|
4
4
|
workspace: Flight.Request;
|
|
5
|
+
sendVerificationEmail(emailAddress: string, success: () => void, error: () => void, always: () => void): Flight.Request;
|
|
5
6
|
};
|
|
@@ -23,6 +23,9 @@ import Series from './series.svg';
|
|
|
23
23
|
import WhiteWave from './white-wave.svg';
|
|
24
24
|
import Compass from './compass.svg';
|
|
25
25
|
import History from './history.svg';
|
|
26
|
+
import Email from './email.svg';
|
|
27
|
+
import YearLevel from './year-level.svg';
|
|
28
|
+
import Subjects from './subjects.svg';
|
|
26
29
|
import File from './file.svg';
|
|
27
30
|
import FilePDF from './file-pdf.svg';
|
|
28
31
|
import FileImg from './file-img.svg';
|
|
@@ -30,4 +33,4 @@ import FilePowerpoint from './file-ppt.svg';
|
|
|
30
33
|
import FileWord from './file-word.svg';
|
|
31
34
|
import FileZip from './file-zip.svg';
|
|
32
35
|
import FileExcel from './file-excel.svg';
|
|
33
|
-
export { Archive, Bell, Bookmark, Broadcast, Calendar, Cog, Folder, Handle, Interactive, Link, Playlist, PublisherArchive, Resources, StarOutline, Star, Tag, Time, Video, Subject, Series, File, FilePDF, FileImg, FilePowerpoint, FileWord, FileZip, FileExcel, Heart, HeartOutline, WhiteWave, Compass, History };
|
|
36
|
+
export { Archive, Bell, Bookmark, Broadcast, Calendar, Cog, Folder, Handle, Interactive, Link, Playlist, PublisherArchive, Resources, StarOutline, Star, Tag, Time, Video, Subject, Series, File, FilePDF, FileImg, FilePowerpoint, FileWord, FileZip, FileExcel, Heart, HeartOutline, WhiteWave, Compass, History, Email, YearLevel, Subjects };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseObject, Group } from "./..";
|
|
1
|
+
import { BaseObject, Group, Avatar } from "./..";
|
|
2
2
|
import { UserRole } from "../../enums/UserRole";
|
|
3
3
|
import { CustomerType } from "../../enums/CustomerType";
|
|
4
4
|
import { OnlineUserRole } from "../../enums/UserRole";
|
|
@@ -16,6 +16,7 @@ export interface User extends BaseObject {
|
|
|
16
16
|
status: string;
|
|
17
17
|
role: UserRole;
|
|
18
18
|
customers: CustomerCollection;
|
|
19
|
+
avatar?: Avatar;
|
|
19
20
|
}
|
|
20
21
|
export interface CuratorUser extends User {
|
|
21
22
|
userId: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './primitives';
|
|
2
2
|
export * from './Audience';
|
|
3
|
+
export * from './Avatar';
|
|
3
4
|
export * from './Banner';
|
|
4
5
|
export * from './Category';
|
|
5
6
|
export * from './Channel';
|
|
6
7
|
export * from './Config';
|
|
7
8
|
export * from './Cover';
|
|
9
|
+
export * from './EntitySetting';
|
|
8
10
|
export * from './HeroBanner';
|
|
9
11
|
export * from './Image';
|
|
10
12
|
export * from './Interactive';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Core } from "../../../../../libs/common/src/backbone";
|
|
2
|
+
import { ReactApplication } from "../../../../../libs/common/src/react/core/ReactApplication";
|
|
3
|
+
import { CuratorLayoutView, CuratorLayoutViewOptions } from "../../shared/layouts/curator-layout";
|
|
4
|
+
export declare class CustomersApplication extends ReactApplication {
|
|
5
|
+
protected layout: CuratorLayoutView;
|
|
6
|
+
get name(): string;
|
|
7
|
+
static get router(): any;
|
|
8
|
+
get channelName(): string;
|
|
9
|
+
get layoutOptions(): Core.LayoutOptions<CuratorLayoutViewOptions>;
|
|
10
|
+
editCustomerPresentations(id: string): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Presentation } from "../../../subjects/interfaces";
|
|
3
|
+
interface AddOrRemovePresentationsProps {
|
|
4
|
+
availablePresentations: Presentation[];
|
|
5
|
+
currentPresentations: Presentation[];
|
|
6
|
+
addPresentation: (presentation: Presentation) => void;
|
|
7
|
+
removePresentation: React.Dispatch<React.SetStateAction<Presentation>>;
|
|
8
|
+
}
|
|
9
|
+
export declare function AddOrRemovePresentations(props: AddOrRemovePresentationsProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './EditCustomerPresentationsView';
|
|
@@ -2,7 +2,7 @@ import { ObjectHash } from 'backbone';
|
|
|
2
2
|
import { Core } from "../../../../../libs/common/src/backbone";
|
|
3
3
|
import { ImageType } from "../../../../../libs/shared/src/enums/Images";
|
|
4
4
|
import { CuratorLayoutView, CuratorLayoutViewOptions } from "../../shared/layouts";
|
|
5
|
-
import { SubjectMemberType } from "./enums";
|
|
5
|
+
import { SubjectMemberType, LevelMemberType } from "./enums";
|
|
6
6
|
export declare class SubjectsApplication extends Core.Application {
|
|
7
7
|
protected layout: CuratorLayoutView;
|
|
8
8
|
private subjectDataService;
|
|
@@ -15,9 +15,15 @@ export declare class SubjectsApplication extends Core.Application {
|
|
|
15
15
|
subjects(): void;
|
|
16
16
|
newSubject(params: ObjectHash): void;
|
|
17
17
|
editSubject(subjectId: string): void;
|
|
18
|
-
editSubjectPlaylists(subjectId: string
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
editSubjectPlaylists(subjectId: string, params?: {
|
|
19
|
+
presentationId: string;
|
|
20
|
+
}): void;
|
|
21
|
+
editSubjectSeries(subjectId: string, params?: {
|
|
22
|
+
presentationId: string;
|
|
23
|
+
}): void;
|
|
24
|
+
editSubjectVideos(subjectId: string, params?: {
|
|
25
|
+
presentationId: string;
|
|
26
|
+
}): void;
|
|
21
27
|
subjectClassifications(subjectId: string): void;
|
|
22
28
|
addSubjectMembers(params: ObjectHash): void;
|
|
23
29
|
removeSubjectMember(subjectId: string, memberId: string, memberType: SubjectMemberType): void;
|
|
@@ -33,11 +39,27 @@ export declare class SubjectsApplication extends Core.Application {
|
|
|
33
39
|
deleteClassification(presentationId: string, classificationId: string): void;
|
|
34
40
|
levels(): void;
|
|
35
41
|
newLevel(): void;
|
|
42
|
+
level(id: string): void;
|
|
36
43
|
editLevel(id: string): void;
|
|
44
|
+
levelAudiences(levelId: string): void;
|
|
45
|
+
editLevelPlaylists(levelId: string, params?: {
|
|
46
|
+
presentationId: string;
|
|
47
|
+
}): void;
|
|
48
|
+
editLevelSeries(levelId: string, params?: {
|
|
49
|
+
presentationId: string;
|
|
50
|
+
}): void;
|
|
51
|
+
editLevelVideos(levelId: string, params?: {
|
|
52
|
+
presentationId: string;
|
|
53
|
+
}): void;
|
|
54
|
+
removeLevelMember(levelId: string, memberId: string, memberType: LevelMemberType): void;
|
|
37
55
|
audiences(): void;
|
|
56
|
+
removeAudienceMember(audienceId: string, memberId: string, memberType: LevelMemberType): void;
|
|
38
57
|
presentationAudiences(presentationId: string): void;
|
|
39
58
|
newAudience(presentationId: string): void;
|
|
40
59
|
editAudience(presentationId: string, audienceId: string): void;
|
|
60
|
+
editAudiencePlaylists(presentationId: string, audienceId: string): void;
|
|
61
|
+
editAudienceSeries(presentationId: string, audienceId: string): void;
|
|
62
|
+
editAudienceVideos(presentationId: string, audienceId: string): void;
|
|
41
63
|
deleteAudience(presentationId: string, audienceId: string): void;
|
|
42
64
|
presentations(): void;
|
|
43
65
|
newPresentation(): void;
|
|
@@ -46,6 +68,8 @@ export declare class SubjectsApplication extends Core.Application {
|
|
|
46
68
|
protected onShowAlert(options?: ObjectHash): void;
|
|
47
69
|
private renderClassificationLeftNav;
|
|
48
70
|
private renderSubjectsLeftNav;
|
|
71
|
+
private renderAudienceLeftNav;
|
|
72
|
+
private renderLevelsLeftNav;
|
|
49
73
|
private setCurrentLeftNavItem;
|
|
50
74
|
private hideLeftNav;
|
|
51
75
|
private getTopNav;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { BaseObject } from "../../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { ActionOptions } from "../../../../../../../../libs/shared/src/components/actions/Actions";
|
|
5
|
+
interface AudienceMemberItemProps<T extends BaseObject> {
|
|
6
|
+
item: T;
|
|
7
|
+
getItemAppLink: (item: T) => Core.AppLink;
|
|
8
|
+
actions?: ActionOptions[];
|
|
9
|
+
}
|
|
10
|
+
export declare function AudienceMemberItem<T extends BaseObject>(props: AudienceMemberItemProps<T>): React.ReactElement;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { BaseObject } from "../../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { ActionOptions } from "../../../../../../../../libs/shared/src/components/actions/Actions";
|
|
5
|
+
import { LevelMemberType } from "../../../enums";
|
|
6
|
+
interface AudienceMemberListProps<T extends BaseObject> {
|
|
7
|
+
items: T[];
|
|
8
|
+
memberType: LevelMemberType;
|
|
9
|
+
getItemAppLink: (item: T) => Core.AppLink;
|
|
10
|
+
getActions?: (item: T) => ActionOptions[];
|
|
11
|
+
}
|
|
12
|
+
export declare function AudienceMemberList<T extends BaseObject>(props: AudienceMemberListProps<T>): React.ReactElement;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Presentation } from "../../../interfaces";
|
|
3
|
+
import { LevelMemberType } from "../../../enums";
|
|
4
|
+
interface EditAudienceNavProps {
|
|
5
|
+
presentation: Presentation;
|
|
6
|
+
audienceId: string;
|
|
7
|
+
memberType?: LevelMemberType;
|
|
8
|
+
}
|
|
9
|
+
export declare function EditAudienceNav(props: EditAudienceNavProps): React.ReactElement;
|
|
10
|
+
export {};
|
|
@@ -2,3 +2,5 @@ export * from './audience-levels';
|
|
|
2
2
|
export * from './edit-audience-details';
|
|
3
3
|
export * from './edit-object-audiences';
|
|
4
4
|
export * from './select-audiences';
|
|
5
|
+
export * from './edit-audience-nav/EditAudienceNav';
|
|
6
|
+
export * from './audience-member-list/AudienceMemberList';
|
package/dist/projects/curator/src/apps/subjects/components/levels/edit-level-nav/EditLevelNav.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface EditLevelNavProps {
|
|
3
|
+
levelId: string;
|
|
4
|
+
activeAction: string;
|
|
5
|
+
presentationId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function EditLevelNav({ levelId, activeAction, presentationId }: EditLevelNavProps): React.ReactElement;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PresentationAudience } from "../../../../../../../../libs/shared/src/interfaces";
|
|
3
|
+
import { Presentation } from "../../../interfaces";
|
|
4
|
+
interface LevelAudiencesProps {
|
|
5
|
+
presentations: Presentation[];
|
|
6
|
+
audienceDictionary: {
|
|
7
|
+
[presentationId: string]: PresentationAudience[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export declare const LevelAudiences: (props: LevelAudiencesProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { ActionOptions } from "../../../../../../../../libs/shared/src/components/actions/Actions";
|
|
4
|
+
import { LevelMemberViewModel } from './LevelMemberList';
|
|
5
|
+
interface LevelMemberItemProps {
|
|
6
|
+
member: LevelMemberViewModel;
|
|
7
|
+
getMemberAppLink: (memberId: string) => Core.AppLink;
|
|
8
|
+
onToggleAudience: (audienceId: string, selected: boolean, memberId: string) => void;
|
|
9
|
+
actions?: ActionOptions[];
|
|
10
|
+
}
|
|
11
|
+
export declare function LevelMemberItem(props: LevelMemberItemProps): React.ReactElement;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { PresentationAudience } from "../../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { ActionOptions } from "../../../../../../../../libs/shared/src/components/actions/Actions";
|
|
5
|
+
import { LevelMemberType } from "../../../enums";
|
|
6
|
+
declare type AudienceViewModel = {
|
|
7
|
+
id: string;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
};
|
|
10
|
+
export interface LevelMemberViewModel {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
audiences?: AudienceViewModel[];
|
|
14
|
+
}
|
|
15
|
+
interface LevelMemberListProps {
|
|
16
|
+
members: LevelMemberViewModel[];
|
|
17
|
+
memberType: LevelMemberType;
|
|
18
|
+
audiences: PresentationAudience[];
|
|
19
|
+
getMemberAppLink: (memberId: string) => Core.AppLink;
|
|
20
|
+
getAudienceAppLink: (audienceId: string) => Core.AppLink;
|
|
21
|
+
onToggleAudience: (audienceId: string, selected: boolean, memberId?: string) => void;
|
|
22
|
+
getActions?: (itemId: string) => ActionOptions[];
|
|
23
|
+
}
|
|
24
|
+
export declare function LevelMemberList(props: LevelMemberListProps): React.ReactElement;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Core } from "../../../../../../../../libs/common/src/backbone";
|
|
3
|
+
import { PresentationAudience } from "../../../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { LevelMemberType } from "../../../enums";
|
|
5
|
+
interface LevelMemberListHeaderProps {
|
|
6
|
+
memberType: LevelMemberType;
|
|
7
|
+
hasActions: boolean;
|
|
8
|
+
audiences: PresentationAudience[];
|
|
9
|
+
getIsAudienceSelected: (audience: PresentationAudience) => boolean;
|
|
10
|
+
onToggleAudience: (audienceId: string, selected: boolean) => void;
|
|
11
|
+
getAudienceAppLink: (audienceId: string) => Core.AppLink;
|
|
12
|
+
}
|
|
13
|
+
export declare function LevelMemberListHeader(props: LevelMemberListHeaderProps): React.ReactElement;
|
|
14
|
+
export {};
|
package/dist/projects/curator/src/apps/subjects/components/levels/level-member-list/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './LevelMemberList';
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Presentation } from "../../../interfaces";
|
|
3
3
|
interface PresentationSelectProps {
|
|
4
4
|
presentations: Presentation[];
|
|
5
|
-
|
|
5
|
+
currentPresentationId?: string;
|
|
6
6
|
setCurrentPresentation: (presentation: Presentation) => void;
|
|
7
7
|
label?: string;
|
|
8
8
|
}
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
interface EditSubjectNavProps {
|
|
3
3
|
subjectId: string;
|
|
4
4
|
activeAction: string;
|
|
5
|
+
presentationId?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare function EditSubjectNav({ subjectId, activeAction }: EditSubjectNavProps): React.ReactElement;
|
|
7
|
+
export declare function EditSubjectNav({ subjectId, activeAction, presentationId }: EditSubjectNavProps): React.ReactElement;
|
|
7
8
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseDataService } from "../../../../../../libs/common/src/backbone/services/BaseDataService";
|
|
2
2
|
import { DataServiceError } from "../../../../../../libs/common/src/backbone/interfaces";
|
|
3
3
|
import { FetchOptions } from "../../../../../../libs/common/src/react/utils/FetchHelper";
|
|
4
|
-
import { Subject, BasePaginatedCollection, BaseObject, Classification, PresentationAudience } from "../../../../../../libs/shared/src/interfaces";
|
|
4
|
+
import { Subject, BasePaginatedCollection, BaseObject, Classification, PresentationAudience, Audience } from "../../../../../../libs/shared/src/interfaces";
|
|
5
5
|
import { SubjectTree, Presentation, ClassificationTree, CreateOrUpdatePresentationRequest, CreateClassificationRequest, UpdateClassificationRequest, CreateOrUpdateSubjectRequest, CreateOrUpdateLevelRequest, CreateOrUpdateAudienceRequest } from "../interfaces";
|
|
6
|
-
import { SubjectMemberType } from "../enums";
|
|
6
|
+
import { SubjectMemberType, LevelMemberType } from "../enums";
|
|
7
7
|
import { Level } from "../interfaces";
|
|
8
8
|
export declare class SubjectDataService extends BaseDataService {
|
|
9
9
|
get name(): string;
|
|
@@ -35,17 +35,24 @@ export declare class SubjectDataService extends BaseDataService {
|
|
|
35
35
|
removeObjectsFromClassification(classificationId: string, objectIds: string[], memberType: SubjectMemberType, subjectId?: string, presentationId?: string, callback?: () => void, errorCallback?: () => void): void;
|
|
36
36
|
getLevels(callback?: (data: Level[]) => void, errorCallback?: () => void): Level[];
|
|
37
37
|
getLevel(id: string, callback?: (data: Level) => void, errorCallback?: () => void): Level;
|
|
38
|
+
getLevelMemberIds(levelId: string, memberType: LevelMemberType, callback?: (data: string[]) => void, errorCallback?: () => void): string[];
|
|
39
|
+
getLevelAudiences(levelId: string, presentationId?: string, memberType?: LevelMemberType, callback?: (data: Audience[]) => void, errorCallback?: () => void): Audience[];
|
|
38
40
|
createLevel(data: CreateOrUpdateLevelRequest, callback?: (data: Level) => void, errorCallback?: () => void): void;
|
|
39
41
|
updateLevel(id: string, data: CreateOrUpdateLevelRequest, callback?: (data: Level) => void, errorCallback?: () => void): void;
|
|
40
42
|
getObjectLevels(id: string, memberType: SubjectMemberType, callback?: (data: Level[]) => void, errorCallback?: () => void): Level[];
|
|
41
43
|
updateObjectLevels(objectId: string, levelsIds: string[], memberType: SubjectMemberType, addToAudiences?: boolean, callback?: () => void, errorCallback?: () => void): void;
|
|
44
|
+
addObjectsToLevel(levelId: string, objectIds: string[], memberType: LevelMemberType, addToAudiences?: boolean, callback?: (data: Audience) => void, errorCallback?: () => void): void;
|
|
45
|
+
removeObjectsFromLevel(levelId: string, objectIds: string[], memberType: LevelMemberType, callback?: () => void, errorCallback?: () => void): void;
|
|
42
46
|
getAudiences(presentationId: string, callback?: (data: PresentationAudience[]) => void, errorCallback?: () => void): PresentationAudience[];
|
|
43
47
|
getAudience(id: string, callback?: (data: PresentationAudience) => void, errorCallback?: () => void): PresentationAudience;
|
|
48
|
+
getAudienceMembers(audienceId: string, memberType: LevelMemberType, callback?: (data: BasePaginatedCollection<BaseObject>) => void, errorCallback?: () => void): BasePaginatedCollection<BaseObject>;
|
|
44
49
|
createAudience(data: CreateOrUpdateAudienceRequest, callback?: (data: PresentationAudience) => void, errorCallback?: () => void): void;
|
|
45
50
|
updateAudience(id: string, data: CreateOrUpdateAudienceRequest, callback?: (data: PresentationAudience) => void, errorCallback?: () => void): void;
|
|
46
51
|
deleteAudience(id: string, callback?: () => void, errorCallback?: () => void): void;
|
|
47
52
|
getObjectAudiences(id: string, memberType: SubjectMemberType, callback?: (data: PresentationAudience[]) => void, errorCallback?: () => void): PresentationAudience[];
|
|
48
53
|
updateObjectAudiences(objectId: string, presentationId: string, audienceIds: string[], memberType: SubjectMemberType, callback?: () => void, errorCallback?: () => void): void;
|
|
54
|
+
addObjectsToAudience(audienceId: string, objectIds: string[], memberType: LevelMemberType, levelId?: string, presentationId?: string, callback?: (data: Audience) => void, errorCallback?: () => void): void;
|
|
55
|
+
removeObjectsFromAudience(audienceId: string, objectIds: string[], memberType: LevelMemberType, levelId?: string, presentationId?: string, callback?: () => void, errorCallback?: () => void): void;
|
|
49
56
|
}
|
|
50
57
|
export declare const SubjectDataServiceHelper: {
|
|
51
58
|
getSubjectTreeFetchOptions: (setData: (data: SubjectTree) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
@@ -61,8 +68,11 @@ export declare const SubjectDataServiceHelper: {
|
|
|
61
68
|
getObjectClassificationsFetchOptions: (id: string, memberType: SubjectMemberType, setData: (data: Classification[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
62
69
|
getLevelsFetchOptions: (setData: (data: Level[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
63
70
|
getLevelFetchOptions: (levelId: string, setData: (data: Level) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
71
|
+
getLevelMemberIdsFetchOptions: (levelId: string, memberType: LevelMemberType, setData: (data: string[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
72
|
+
getLevelAudiencesFetchOptions: (levelId: string, setData: (data: Audience[]) => void, presentationId?: string, memberType?: LevelMemberType, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
64
73
|
getObjectLevelsFetchOptions: (id: string, memberType: SubjectMemberType, setData: (data: Level[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
65
74
|
getAudiencesFetchOptions: (presentationId: string, setData: (data: PresentationAudience[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
66
75
|
getAudienceFetchOptions: (id: string, setData: (data: PresentationAudience) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
76
|
+
getAudienceMembersFetchOptions: (audienceId: string, memberType: LevelMemberType, setData: (data: BasePaginatedCollection<BaseObject>) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
67
77
|
getObjectAudiencesFetchOptions: (id: string, memberType: SubjectMemberType, setData: (data: PresentationAudience[]) => void, onError?: (error: DataServiceError) => void) => FetchOptions;
|
|
68
78
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Core } from "../../../../../../libs/common/src/backbone";
|
|
2
|
+
import { ActionOptions } from "../../../../../../libs/shared/src/components/actions/Actions";
|
|
3
|
+
import { LevelMemberType, OwnerType } from "../enums";
|
|
4
|
+
export declare const LevelMemberHelper: {
|
|
5
|
+
singularizeMemberType(memberType: LevelMemberType): string;
|
|
6
|
+
getMemberAppLink(memberType: LevelMemberType, memberId: string): Core.AppLink;
|
|
7
|
+
getMemberActions(id: string, ownerType: OwnerType, memberType: LevelMemberType, memberId: string): ActionOptions[];
|
|
8
|
+
};
|