@clickview/library-editor 1.1.8 → 1.1.9

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.
Files changed (92) hide show
  1. package/dist/bundle.js +2 -2
  2. package/dist/en.json +1 -1
  3. package/dist/library-editor-app.css +1 -1
  4. package/dist/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +1 -0
  5. package/dist/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +4 -2
  6. package/dist/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +1 -0
  7. package/dist/src/apps/library-editor/components/index.d.ts +0 -1
  8. package/dist/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +3 -0
  9. package/dist/src/apps/library-editor/services/VideoDataService.d.ts +2 -1
  10. package/dist/src/apps/library-editor/services/VideoDragDropService.d.ts +5 -0
  11. package/dist/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +16 -7
  12. package/dist/src/apps/notifications/utils/NotificationsHelper.d.ts +1 -1
  13. package/dist/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +1 -0
  14. package/dist/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +1 -0
  15. package/dist/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +2 -0
  16. package/dist/src/shared/components/video-actions/VideoActionsComponent.d.ts +1 -0
  17. package/dist/src/shared/components/video-item/VideoItemComponent.d.ts +1 -0
  18. package/dist/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +3 -2
  19. package/dist/src/shared/components/video-list/VideoListComponent.d.ts +1 -0
  20. package/package.json +5 -5
  21. package/dist/bundle.js.map +0 -1
  22. package/dist/cv-app-dev.js +0 -104026
  23. package/dist/cv-app-dev.js.map +0 -1
  24. package/dist/cv-svg-dev.js +0 -1449
  25. package/dist/cv-svg-dev.js.map +0 -1
  26. package/dist/library-editor-app.css.map +0 -1
  27. package/dist/src/apps/library-editor/components/folder-link-list/FolderLinkComponent.d.ts +0 -14
  28. package/dist/src/apps/library-editor/components/folder-link-list/FolderLinkComponentCollection.d.ts +0 -13
  29. package/dist/src/apps/notifications/collections/NotificationCollection.d.ts +0 -6
  30. package/dist/src/apps/notifications/components/index.d.ts +0 -3
  31. package/dist/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +0 -23
  32. package/dist/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +0 -26
  33. package/dist/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +0 -9
  34. package/dist/src/apps/notifications/models/Notification.d.ts +0 -3
  35. package/dist/src/apps/notifications/models/index.d.ts +0 -1
  36. package/dist/src/apps/notifications/services/NotificationDataService.d.ts +0 -14
  37. package/dist/src/apps/notifications/services/NotificationService.d.ts +0 -33
  38. package/dist/src/apps/notifications/services/NotificationSocketService.d.ts +0 -8
  39. package/dist/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +0 -4
  40. package/dist/src/apps/notifications/services/index.d.ts +0 -4
  41. package/dist/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +0 -10
  42. package/dist/src/apps/notifications/views/header/NotificationHeaderView.d.ts +0 -14
  43. package/dist/src/apps/notifications/views/index.d.ts +0 -3
  44. package/dist/src/apps/notifications/views/notifications/NotificationsView.d.ts +0 -26
  45. package/dist/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +0 -33
  46. package/dist/src/apps/search/components/index.d.ts +0 -2
  47. package/dist/src/apps/search/components/instant-search/index.d.ts +0 -4
  48. package/dist/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +0 -15
  49. package/dist/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +0 -9
  50. package/dist/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +0 -9
  51. package/dist/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +0 -15
  52. package/dist/src/apps/search/components/search-context/SearchContextComponent.d.ts +0 -18
  53. package/dist/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +0 -11
  54. package/dist/src/apps/search/services/ContextualSearchService.d.ts +0 -37
  55. package/dist/src/apps/search/views/search-bar/SearchBarView.d.ts +0 -102
  56. package/dist/src/apps/search/views/search-bar/templates/index.d.ts +0 -9
  57. package/dist/src/apps/upload/enums/FileLifestyle.d.ts +0 -4
  58. package/dist/src/apps/upload/enums/PendingItemStatus.d.ts +0 -5
  59. package/dist/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +0 -7
  60. package/dist/src/apps/upload/services/DropzoneWrapper.d.ts +0 -30
  61. package/dist/src/apps/upload/services/UploadService.d.ts +0 -64
  62. package/dist/src/apps/upload/utils/PendingItemsHelper.d.ts +0 -9
  63. package/dist/src/apps/upload/utils/index.d.ts +0 -1
  64. package/dist/src/shared/behaviors/empty-state/EmptyStateBehavior.d.ts +0 -22
  65. package/dist/src/shared/behaviors/popover/PopoverBehavior.d.ts +0 -40
  66. package/dist/src/shared/behaviors/tooltip/TooltipBehavior.d.ts +0 -12
  67. package/dist/src/shared/collections/PendingItemsCollection.d.ts +0 -8
  68. package/dist/src/shared/components/empty-state/EmptyStateComponent.d.ts +0 -24
  69. package/dist/src/shared/components/pagination/PaginationComponent.d.ts +0 -28
  70. package/dist/src/shared/components/thumbnail/ThumbnailComponent.d.ts +0 -32
  71. package/dist/src/shared/enums/AppLinkReferrer.d.ts +0 -3
  72. package/dist/src/shared/enums/CurationStatus.d.ts +0 -12
  73. package/dist/src/shared/errors/file-type/FileTypeError.d.ts +0 -15
  74. package/dist/src/shared/errors/primitives/AlertError.d.ts +0 -4
  75. package/dist/src/shared/errors/primitives/DialogError.d.ts +0 -9
  76. package/dist/src/shared/errors/primitives/ErrorPageError.d.ts +0 -7
  77. package/dist/src/shared/errors/primitives/index.d.ts +0 -3
  78. package/dist/src/shared/interfaces/CollectionIdentifier.d.ts +0 -7
  79. package/dist/src/shared/interfaces/Tooltip.d.ts +0 -6
  80. package/dist/src/shared/services/ContextService.d.ts +0 -38
  81. package/dist/src/shared/services/LanguageDataService.d.ts +0 -12
  82. package/dist/src/shared/services/LanguageService.d.ts +0 -16
  83. package/dist/src/shared/utils/EmptyStateHelper.d.ts +0 -4
  84. package/dist/src/shared/utils/FileExtensionsHelper.d.ts +0 -9
  85. package/dist/src/shared/utils/MaskHelper.d.ts +0 -15
  86. package/dist/src/shared/utils/handlebars/LangHelper.d.ts +0 -5
  87. package/dist/src/shared/utils/handlebars/index.d.ts +0 -1
  88. package/dist/src/shared/utils/search/InstantSearchHelper.d.ts +0 -21
  89. package/dist/src/shared/utils/search/RecentSearchHelper.d.ts +0 -12
  90. package/dist/src/shared/utils/search/SearchTypes.d.ts +0 -28
  91. package/dist/src/shared/utils/search/TypeaheadHelper.d.ts +0 -76
  92. package/dist/src/shared/utils/search/raw-search-components/confirm-selection/ConfirmSelectionComponent.d.ts +0 -12
@@ -1,33 +0,0 @@
1
- import { Core } from '@clickview/common';
2
- import { Cursors } from '@clickview/common';
3
- import { CollectionIdentifier } from "../../../shared/interfaces/CollectionIdentifier";
4
- import { NotificationCollectionRequest } from "../utils/Constants";
5
- export declare class NotificationService extends Core.Service {
6
- private notificationDataService;
7
- private notificationSocketService;
8
- private userDataService;
9
- constructor();
10
- get name(): string;
11
- private initDataServices;
12
- private bindSocketListeners;
13
- private bindAppListeners;
14
- private getDataServices;
15
- private dataServicesExist;
16
- /**
17
- * On receiving a new notification via signalr, add the model to the top of the
18
- * first page's collection.
19
- */
20
- private addNewNotification;
21
- /**
22
- * Triggered by signalr callback event when loading notifications in the top bar
23
- */
24
- private updateUnreadCount;
25
- getNotifications(params: NotificationCollectionRequest, collectionIdentifier: CollectionIdentifier, callback?: (data?: any) => any): void;
26
- /**
27
- * Retrive current unread notification count
28
- */
29
- getNotificationsMetadata(): Core.Model;
30
- markNotificationsSeen(): void;
31
- markNotificationRead(id: string): void;
32
- getNotificationsCursors(collectionIdentifier: CollectionIdentifier): Cursors;
33
- }
@@ -1,8 +0,0 @@
1
- import { BaseDataService } from '@clickview/common';
2
- import { Notification } from "../models/Notification";
3
- export declare class NotificationSocketService extends BaseDataService {
4
- get name(): string;
5
- get channelName(): string;
6
- receiveLatestNotifications(callback?: (notification: Notification) => any): Notification;
7
- receiveUnreadNotificationCount(callback?: (unreadCount: number) => any): number;
8
- }
@@ -1,4 +0,0 @@
1
- import { SignalRDataProvider } from '@clickview/common';
2
- export declare class NotificationsSocketDataProvider extends SignalRDataProvider {
3
- get name(): string;
4
- }
@@ -1,4 +0,0 @@
1
- export * from './NotificationDataService';
2
- export * from './NotificationSocketService';
3
- export * from './data-providers/NotificationsSocketDataProvider';
4
- export * from './NotificationService';
@@ -1,10 +0,0 @@
1
- import { NotificationType } from "./Constants";
2
- import { Core } from '@clickview/common';
3
- export declare const NotificationAppLinkHelper: {
4
- /**
5
- * Determine if the current notificationType is supported within LE so that
6
- * we can construct an AppLink. Where it is not supported, we will just use the link.
7
- */
8
- canBuildAppLink: (Notificationtype: NotificationType) => boolean;
9
- parseAppLink: (appLink: string, type: string) => Core.AppLink;
10
- };
@@ -1,14 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare class NotificationHeaderView extends Core.View {
4
- get name(): string;
5
- get title(): boolean;
6
- get className(): string;
7
- get template(): any;
8
- regions(): ObjectHash;
9
- events(): ObjectHash;
10
- private renderNotificationList;
11
- private renderNotificationStatus;
12
- viewOptions(): ObjectHash;
13
- onRender(): void;
14
- }
@@ -1,3 +0,0 @@
1
- export * from './notifications/NotificationsView';
2
- export * from './header/NotificationHeaderView';
3
- export * from './popover/NotificationsPopoverView';
@@ -1,26 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- import { NotificationCollection } from "../../collections/NotificationCollection";
4
- export interface NotificationsViewOptions extends Core.ViewOptions {
5
- params: ObjectHash;
6
- }
7
- export declare class NotificationsView extends Core.View {
8
- protected options: NotificationsViewOptions;
9
- collection: NotificationCollection;
10
- private collectionIdentifier;
11
- private notificationService;
12
- constructor(options: NotificationsViewOptions);
13
- get name(): string;
14
- get title(): string;
15
- get lang(): string;
16
- get className(): string;
17
- get template(): any;
18
- regions(): ObjectHash;
19
- initialize(): void;
20
- private onData;
21
- private getCollectionIdentifier;
22
- private renderNotificationList;
23
- private renderPagination;
24
- onBeforeRender(): boolean;
25
- onRender(): void;
26
- }
@@ -1,33 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- import { NotificationCollection } from "../../collections/NotificationCollection";
4
- import { NotificationChildType } from "../../components";
5
- export interface NotificationsPopoverViewOptions extends Core.ViewOptions {
6
- childType: NotificationChildType;
7
- }
8
- export declare class NotificationsPopoverView extends Core.View {
9
- options: NotificationsPopoverViewOptions;
10
- collection: NotificationCollection;
11
- private collectionIdentifier;
12
- private notificationService;
13
- constructor(options: NotificationsPopoverViewOptions);
14
- get name(): string;
15
- get title(): boolean;
16
- get lang(): string;
17
- get className(): string;
18
- get template(): any;
19
- regions(): ObjectHash;
20
- get elements(): ObjectHash;
21
- get appLinks(): Core.AppLinkHash;
22
- initialize(): void;
23
- private onData;
24
- private getCollectionIdentifier;
25
- private renderNotificationList;
26
- /**
27
- * Only trigger the notification seen event once the collection has been loaded.
28
- */
29
- private triggerSeen;
30
- onBeforeRender(): boolean;
31
- viewOptions(): ObjectHash;
32
- onRender(): void;
33
- }
@@ -1,2 +0,0 @@
1
- export * from './search-tips/SearchTipsComponent';
2
- export * from './search-context/SearchContextComponent';
@@ -1,4 +0,0 @@
1
- export * from './recent-search/RecentSearchResultComponent';
2
- export * from './series/SeriesSearchResultComponent';
3
- export * from './tag/TagSearchResultComponent';
4
- export * from './video-result/VideoSearchResultComponent';
@@ -1,15 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- interface RecentSearchResultComponentOptions extends Core.ComponentOptions {
4
- channelName: string;
5
- }
6
- export declare class RecentSearchResultComponent extends Core.Component {
7
- constructor(options: RecentSearchResultComponentOptions);
8
- get name(): string;
9
- get template(): string;
10
- get className(): string;
11
- events(): ObjectHash;
12
- viewOptions(): ObjectHash;
13
- private onClick;
14
- }
15
- export {};
@@ -1,9 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare class SeriesSearchResultComponent extends Core.Component {
4
- get name(): string;
5
- get template(): string;
6
- get className(): string;
7
- events(): ObjectHash;
8
- private onClick;
9
- }
@@ -1,9 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare class TagSearchResultComponent extends Core.Component {
4
- get name(): string;
5
- get template(): string;
6
- get className(): string;
7
- events(): ObjectHash;
8
- private onClick;
9
- }
@@ -1,15 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare class VideoSearchResultComponent extends Core.Component<any> {
4
- get name(): string;
5
- get template(): string;
6
- get className(): string;
7
- regions(): ObjectHash;
8
- events(): ObjectHash;
9
- private onClick;
10
- private getCollection;
11
- private getUrl;
12
- private renderThumbnail;
13
- viewOptions(): ObjectHash;
14
- onRender(): void;
15
- }
@@ -1,18 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare class SearchContextComponent extends Core.Component {
4
- initialize(): void;
5
- get name(): string;
6
- get template(): string;
7
- get tagName(): string;
8
- get className(): string;
9
- get behaviors(): any[];
10
- get elements(): ObjectHash;
11
- events(): ObjectHash;
12
- private onClick;
13
- private onMouseEnter;
14
- private onMouseLeave;
15
- private toggleFocus;
16
- viewOptions(): ObjectHash;
17
- onBeforeRender(): boolean;
18
- }
@@ -1,11 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare class SearchTipsComponent extends Core.Component {
4
- initialize(): void;
5
- get name(): string;
6
- get template(): string;
7
- get lang(): string;
8
- get behaviors(): any[];
9
- private renderTips;
10
- viewOptions(): ObjectHash;
11
- }
@@ -1,37 +0,0 @@
1
- import { Core } from '@clickview/common';
2
- export interface SearchContext {
3
- appLink: Core.AppLink;
4
- searchTag: string;
5
- title?: string;
6
- filterParam: string;
7
- filterValue?: string;
8
- setFilterValue: (context: SearchContext, self: any) => void;
9
- }
10
- declare class StaticContextualSearchService extends Core.Service {
11
- private static instance;
12
- private searchContext;
13
- static get Instance(): StaticContextualSearchService;
14
- initialize(): void;
15
- get name(): string;
16
- get lang(): string;
17
- getSearchContext(): Core.Model;
18
- /**
19
- * Event listeners
20
- */
21
- private onRouteChange;
22
- private onTypeaheadToggle;
23
- /**
24
- * Context mutation methods
25
- */
26
- private setSearchContext;
27
- private updateSearchContext;
28
- private setFilterValue;
29
- private resetSearchContext;
30
- /**
31
- * Validation methods
32
- */
33
- private isValidSearchContext;
34
- private inSearchView;
35
- }
36
- export declare const ContextualSearchService: StaticContextualSearchService;
37
- export {};
@@ -1,102 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export interface SearchBarViewOptions extends Core.ViewOptions {
4
- showRecentSearch?: boolean;
5
- }
6
- export declare class SearchBarView extends Core.View {
7
- protected options: SearchBarViewOptions;
8
- private currentUser;
9
- private libraryCollection;
10
- private storageHelper;
11
- private recentSearchEngine;
12
- private viewCache;
13
- private searchInput;
14
- private searchContext;
15
- private preventToggleEvent;
16
- constructor(options: SearchBarViewOptions);
17
- initialize(): void;
18
- get name(): string;
19
- get title(): boolean;
20
- get tagName(): string;
21
- get template(): any;
22
- get lang(): string;
23
- get channelName(): string;
24
- get className(): string;
25
- get defaults(): ObjectHash;
26
- get elements(): ObjectHash;
27
- events(): ObjectHash;
28
- get bindings(): ObjectHash;
29
- regions(): ObjectHash;
30
- private get recentSearchKey();
31
- private bindListeners;
32
- /**
33
- * View Cache management
34
- */
35
- private getOrCacheView;
36
- private clearViewCache;
37
- private getDynamicTemplate;
38
- private getLimits;
39
- /**
40
- * Recent search logic
41
- */
42
- private updateSearchHistory;
43
- private handleRecentSearch;
44
- private onDeleteRecentSearch;
45
- private getInstantSearchAppLink;
46
- /**
47
- * Typeahead event handlers
48
- */
49
- private onTypeaheadSelect;
50
- private onClickSearch;
51
- private onSubmit;
52
- private submitQuery;
53
- private resetQuery;
54
- private updateInitialQuery;
55
- private logSearch;
56
- /**
57
- * When the user clicks away from the typeahead, the close event will be fired, unbinding the delete
58
- * event for recent search. Re-selecting the typehead will open it BUT it won't re-fetch the results and
59
- * render event won't be fired. We need to manually re-bind the click handlers to ensure the delete
60
- * functionality is retained.
61
- */
62
- private onTypeaheadOpen;
63
- private onBeforeTypeaheadClose;
64
- private onTypeaheadClose;
65
- private showMask;
66
- private hideMask;
67
- private alignTypeahead;
68
- private onTypeaheadRender;
69
- private initTypeaheadListeners;
70
- private initNoLibrariesTypeaheadListeners;
71
- private onKeydown;
72
- private onResetSearchContext;
73
- /**
74
- * Bloodhound & Typeadhead configs
75
- */
76
- private getRecentSearchBloodhound;
77
- private getDynamicBloodhoundConfig;
78
- private getDynamicTypeaheadConfig;
79
- private getDynamicOptions;
80
- /**
81
- * Typeahead sources
82
- */
83
- private getRecentSearchSources;
84
- private getDirectSearchSources;
85
- private getDynamicSearchSources;
86
- private getSources;
87
- private getNoLibrariesSource;
88
- private initializeTypeahead;
89
- private hasLibraries;
90
- private getLibraryIds;
91
- /**
92
- * Render methods
93
- */
94
- viewOptions(): ObjectHash;
95
- get requiredResources(): Core.RequiredResourceHash;
96
- private renderSearchTips;
97
- private renderSearch;
98
- private renderPartialSearch;
99
- private renderSearchContext;
100
- onRender(): void;
101
- onClose(): void;
102
- }
@@ -1,9 +0,0 @@
1
- import FolderResult from './FolderResult.hbs';
2
- import DirectSearchResult from './DirectSearchResult.hbs';
3
- import Loading from './Loading.hbs';
4
- import NotFound from './NotFound.hbs';
5
- import ResultFooter from './ResultFooter.hbs';
6
- import ResultHeader from './ResultHeader.hbs';
7
- import RecentSearchHeader from './RecentSearchHeader.hbs';
8
- import NoLibraries from './NoLibraries.hbs';
9
- export { FolderResult, DirectSearchResult, Loading, NotFound, ResultFooter, ResultHeader, RecentSearchHeader, NoLibraries };
@@ -1,4 +0,0 @@
1
- export declare enum FileLifestyle {
2
- Permanent = 0,
3
- Temporary = 1
4
- }
@@ -1,5 +0,0 @@
1
- export declare enum PendingItemStatus {
2
- Error = -1,
3
- Processing = 1,
4
- Completed = 2
5
- }
@@ -1,7 +0,0 @@
1
- import { DialogError } from "../../../../shared/errors/primitives";
2
- import { DialogViewOptions } from "../../../../shared/components";
3
- export declare class InternetConnectivityError extends DialogError {
4
- constructor();
5
- get name(): string;
6
- get dialogOptions(): DialogViewOptions;
7
- }
@@ -1,30 +0,0 @@
1
- import * as Dropzone from 'dropzone';
2
- import { Core } from '@clickview/common';
3
- export interface UploadApiWrapperOptions extends Core.ServiceOptions {
4
- maxFileSize: number;
5
- chunkSize: number;
6
- chunkingEnabled: boolean;
7
- loggingEnabled: boolean;
8
- acceptedFiles: string;
9
- channelName: string;
10
- }
11
- export interface UploadApiWrapper {
12
- addFile(file: File): void;
13
- destroy(): void;
14
- start(): void;
15
- getId(file: File): string;
16
- removeFile(file: File): void;
17
- }
18
- export declare class DropzoneWrapper extends Core.Service implements UploadApiWrapper {
19
- private dropzone;
20
- options: UploadApiWrapperOptions;
21
- get name(): string;
22
- constructor(options: UploadApiWrapperOptions);
23
- initialize(options: UploadApiWrapperOptions): void;
24
- getId(file: File): string;
25
- addFile(file: Dropzone.DropzoneFile): void;
26
- removeFile(file: Dropzone.DropzoneFile): void;
27
- start(): void;
28
- destroy(): void;
29
- static isValidFile(file: File, acceptedFiles: string): boolean;
30
- }
@@ -1,64 +0,0 @@
1
- import { Core } from '@clickview/common';
2
- import { FileLifestyle } from '../enums/FileLifestyle';
3
- interface UploadItem extends Core.Model {
4
- file: File;
5
- name: string;
6
- progress: number;
7
- }
8
- export declare enum UploadType {
9
- Video = 0,
10
- LearningResource = 1,
11
- Subtitle = 2
12
- }
13
- declare class UploadService extends Core.Service {
14
- protected uploadType: UploadType;
15
- protected fileLifestyle: FileLifestyle;
16
- private uploader;
17
- private progressViewModel;
18
- private uploadDataService;
19
- private collection;
20
- initialize(): void;
21
- get channelName(): string;
22
- get lang(): string;
23
- /**
24
- * Dropzone is initialized once after the first upload is requested and it's chunk size
25
- * is set for the rest of the uploads. If we happen to have multiple ingest
26
- * servers that have different chunk max / min sizes, this may voilate those
27
- * sizes.
28
- */
29
- private initUploader;
30
- private bindListeners;
31
- private onProgress;
32
- isUploading(): boolean;
33
- getCollection(): Core.Collection<UploadItem>;
34
- setOverallProgress(): void;
35
- isValidFile(file: File): boolean;
36
- /**
37
- * Request uploads from fileApi and starts uploading.
38
- * @param files Array of browser File objects
39
- * @returns Returns false if any of the files did not match the accepted file list.
40
- */
41
- addFiles(files: File[]): void;
42
- private requestUploads;
43
- addFile(file: File): void;
44
- cancelUpload(id: string): void;
45
- private onSuccess;
46
- cancelAllUploads(): void;
47
- private getAcceptedFiles;
48
- }
49
- export declare class VideoUploadService extends UploadService {
50
- protected get uploadType(): UploadType;
51
- get name(): string;
52
- get fileLifestyle(): FileLifestyle;
53
- }
54
- export declare class SubtitleUploadService extends UploadService {
55
- protected get uploadType(): UploadType;
56
- get name(): string;
57
- get fileLifestyle(): FileLifestyle;
58
- }
59
- export declare class LearningResourceUploadService extends UploadService {
60
- protected get uploadType(): UploadType;
61
- get name(): string;
62
- get fileLifestyle(): FileLifestyle;
63
- }
64
- export {};
@@ -1,9 +0,0 @@
1
- import { Core } from '@clickview/common';
2
- declare const PendingItemsHelper: {
3
- getStatus(model: Core.Model): string;
4
- hasError(model: Core.Model): boolean;
5
- isDone(model: Core.Model): boolean;
6
- getProgress(model: Core.Model): number;
7
- hasExpired(model: Core.Model, maxSessionLength: number): boolean;
8
- };
9
- export { PendingItemsHelper };
@@ -1 +0,0 @@
1
- export * from './PendingItemsHelper';
@@ -1,22 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- import { EmptyStateComponentOptions, EmptyStateComponent } from "../../components";
4
- interface EmptyStateBehaviorOptions {
5
- region: string;
6
- type: number;
7
- shouldRender: () => boolean;
8
- componentOptions?: EmptyStateComponentOptions;
9
- emptyStateComponents: {
10
- [type: number]: (self: any) => EmptyStateComponentOptions;
11
- };
12
- }
13
- export declare class EmptyStateBehavior extends Core.Behavior {
14
- options: EmptyStateBehaviorOptions;
15
- get defaults(): ObjectHash;
16
- set defaults(defaults: ObjectHash);
17
- private shouldRender;
18
- getComponent(): EmptyStateComponent;
19
- renderEmptyState(): void;
20
- onRender(): void;
21
- }
22
- export {};
@@ -1,40 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare enum PopoverPlacement {
4
- auto = "auto",
5
- top = "top",
6
- bottom = "bottom",
7
- left = "left",
8
- right = "right"
9
- }
10
- export declare type PopoverSize = 'popover-sm' | 'popover-md' | 'popover-lg';
11
- export interface PopoverBehaviorOptions {
12
- toggleEventName?: string;
13
- renderContent: (region: string) => void;
14
- placement?: PopoverPlacement;
15
- title?: string;
16
- containerSelector?: string;
17
- size?: PopoverSize;
18
- boundary?: any;
19
- customClasses?: string;
20
- }
21
- export declare class PopoverBehavior extends Core.Behavior {
22
- options: PopoverBehaviorOptions;
23
- private popoverInitialized;
24
- get defaults(): ObjectHash;
25
- set defaults(defaults: ObjectHash);
26
- get ui(): ObjectHash;
27
- set ui(ui: ObjectHash);
28
- events(): ObjectHash;
29
- private bindListeners;
30
- private bindBodyClickListener;
31
- private bindDropdownListener;
32
- private onPopoverInserted;
33
- private onPopoverHidden;
34
- private toggle;
35
- private hide;
36
- private onClickPopover;
37
- private onClickOutside;
38
- private getTrigger;
39
- private onAttach;
40
- }
@@ -1,12 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare class TooltipBehavior extends Core.Behavior {
4
- get defaults(): ObjectHash;
5
- set defaults(defaults: ObjectHash);
6
- get ui(): ObjectHash;
7
- set ui(ui: ObjectHash);
8
- private getElement;
9
- private getOptions;
10
- onRender(): void;
11
- onBeforeDetach(): void;
12
- }
@@ -1,8 +0,0 @@
1
- import { Core } from '@clickview/common';
2
- declare class PendingItem extends Core.Model {
3
- get idAttribute(): string;
4
- }
5
- export declare class PendingItemsCollection extends Core.Collection {
6
- get model(): typeof PendingItem;
7
- }
8
- export {};
@@ -1,24 +0,0 @@
1
- import { ObjectHash } from 'backbone';
2
- import { Core } from '@clickview/common';
3
- export declare type EmptyStateImageSize = 'sm' | 'lg';
4
- export interface EmptyStateComponentOptions extends Core.ComponentOptions {
5
- imageUrl: string;
6
- heading?: string | (() => string);
7
- description?: string | (() => string);
8
- appLink?: Core.AppLinkHash;
9
- customClass?: string;
10
- customImageClass?: string;
11
- }
12
- export declare class EmptyStateComponent extends Core.Component {
13
- protected options: EmptyStateComponentOptions;
14
- constructor(options: EmptyStateComponentOptions);
15
- get name(): string;
16
- get className(): string;
17
- get template(): string;
18
- get defaults(): ObjectHash;
19
- get appLinks(): Core.AppLinkHash;
20
- private getImageClass;
21
- private getHeading;
22
- private getDescription;
23
- viewOptions(): ObjectHash;
24
- }