@clickview/library-editor 1.1.1 → 1.1.2-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/dist/bundle.js +2 -2
- package/dist/bundle.js.map +1 -0
- package/dist/en.json +1 -1
- package/dist/library-editor-app.css +0 -14
- package/dist/library-editor-app.css.map +1 -0
- package/dist/src/apps/index.d.ts +1 -0
- package/dist/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +2 -2
- package/dist/src/apps/library-editor/enums/VideoCollectionSource.d.ts +4 -0
- package/dist/src/apps/library-editor/enums/index.d.ts +1 -0
- package/dist/src/apps/library-editor/services/LibraryDataService.d.ts +7 -7
- package/dist/src/apps/library-editor/services/SeriesDataService.d.ts +2 -1
- package/dist/src/apps/library-editor/services/VideoDataService.d.ts +1 -3
- package/dist/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +8 -0
- package/dist/src/apps/search/models/SearchAppVariables.d.ts +4 -0
- package/dist/src/apps/search/services/SearchDataService.d.ts +1 -1
- package/dist/src/apps/search/services/index.d.ts +0 -1
- package/dist/src/apps/search/utils/Enums.d.ts +0 -18
- package/dist/src/apps/search/utils/SearchHelper.d.ts +0 -2
- package/dist/src/apps/search/views/search/SearchView.d.ts +1 -0
- package/dist/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +1 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/shared/behaviors/index.d.ts +0 -2
- package/dist/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +1 -1
- package/dist/src/shared/components/index.d.ts +0 -1
- package/dist/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +1 -1
- package/dist/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +2 -2
- package/dist/src/shared/components/video-actions/VideoActionsComponent.d.ts +3 -0
- package/dist/src/shared/components/video-item/VideoItemComponent.d.ts +2 -0
- package/dist/src/shared/components/video-list/VideoListComponent.d.ts +2 -0
- package/dist/src/shared/constants/Search.d.ts +0 -16
- package/dist/src/shared/constants/Services.d.ts +0 -2
- package/dist/src/shared/enums/PartialLoading.d.ts +2 -5
- package/dist/src/shared/interfaces/index.d.ts +0 -1
- package/dist/src/shared/services/LanguageDataService.d.ts +6 -1
- package/dist/src/shared/services/RestrictedVideoDataService.d.ts +1 -2
- package/dist/src/shared/services/VideoMixinService.d.ts +0 -1
- package/dist/src/shared/services/index.d.ts +1 -4
- package/dist/src/shared/utils/SortHelper.d.ts +1 -1
- package/dist/src/shared/utils/index.d.ts +0 -1
- package/dist/src/shared/utils/search/RawSearchHelper.d.ts +3 -3
- package/dist/src/shared/utils/search/index.d.ts +0 -4
- package/dist/src/shared/utils/search/raw-search-components/index.d.ts +0 -1
- package/package.json +6 -7
- package/dist/src/apps/search/components/index.d.ts +0 -2
- package/dist/src/apps/search/components/instant-search/index.d.ts +0 -4
- package/dist/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +0 -15
- package/dist/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +0 -9
- package/dist/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +0 -9
- package/dist/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +0 -15
- package/dist/src/apps/search/components/search-context/SearchContextComponent.d.ts +0 -18
- package/dist/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +0 -11
- package/dist/src/apps/search/services/ContextualSearchService.d.ts +0 -37
- package/dist/src/apps/search/views/search-bar/SearchBarView.d.ts +0 -102
- package/dist/src/apps/search/views/search-bar/templates/index.d.ts +0 -9
- package/dist/src/shared/behaviors/popover/PopoverBehavior.d.ts +0 -40
- package/dist/src/shared/behaviors/tooltip/TooltipBehavior.d.ts +0 -12
- package/dist/src/shared/components/thumbnail/ThumbnailComponent.d.ts +0 -32
- package/dist/src/shared/interfaces/Tooltip.d.ts +0 -6
- package/dist/src/shared/services/ContextService.d.ts +0 -38
- package/dist/src/shared/services/LanguageService.d.ts +0 -16
- package/dist/src/shared/utils/MaskHelper.d.ts +0 -15
- package/dist/src/shared/utils/search/InstantSearchHelper.d.ts +0 -21
- package/dist/src/shared/utils/search/RecentSearchHelper.d.ts +0 -12
- package/dist/src/shared/utils/search/SearchTypes.d.ts +0 -28
- package/dist/src/shared/utils/search/TypeaheadHelper.d.ts +0 -76
- package/dist/src/shared/utils/search/raw-search-components/confirm-selection/ConfirmSelectionComponent.d.ts +0 -12
|
@@ -5,22 +5,6 @@ export declare enum LibraryType {
|
|
|
5
5
|
CustomLibrary = "custom_library",
|
|
6
6
|
Workspace = "workspace"
|
|
7
7
|
}
|
|
8
|
-
export declare enum BloodhoundType {
|
|
9
|
-
Remote = 0,
|
|
10
|
-
Local = 1
|
|
11
|
-
}
|
|
12
|
-
export declare const TypeaheadConfiguration: {
|
|
13
|
-
/**
|
|
14
|
-
* Request remote data after character input meets length
|
|
15
|
-
*/
|
|
16
|
-
ActivationLength: number;
|
|
17
|
-
SuggestionLimit: {
|
|
18
|
-
Min: number;
|
|
19
|
-
Default: number;
|
|
20
|
-
Folder: number;
|
|
21
|
-
Recent: number;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
8
|
export declare enum SearchQueryType {
|
|
25
9
|
Video = "videos",
|
|
26
10
|
Folder = "categories",
|
|
@@ -19,7 +19,6 @@ declare enum Services {
|
|
|
19
19
|
PageVisibility = "PageVisibility",
|
|
20
20
|
PageTitle = "PageTitle",
|
|
21
21
|
Language = "LanguageService",
|
|
22
|
-
ContextualSearch = "ContextualSearchService",
|
|
23
22
|
Intercom = "IntercomService"
|
|
24
23
|
}
|
|
25
24
|
declare enum DataServices {
|
|
@@ -28,7 +27,6 @@ declare enum DataServices {
|
|
|
28
27
|
Customer = "CustomerDataService",
|
|
29
28
|
Library = "LibraryDataService",
|
|
30
29
|
Video = "VideoDataService",
|
|
31
|
-
Search = "SearchDataService",
|
|
32
30
|
Notifications = "NotificationDataService",
|
|
33
31
|
NotificationsSocket = "NotificationSocketService",
|
|
34
32
|
Settings = "SettingsDataService",
|
|
@@ -33,9 +33,6 @@ export declare enum PartialLoading {
|
|
|
33
33
|
LibraryFolders = 31,
|
|
34
34
|
EditResourcesCVContent = 32,
|
|
35
35
|
TagFilter = 33,
|
|
36
|
-
VideoItemPreview = 34
|
|
37
|
-
|
|
38
|
-
export declare enum PartialLoadingComponentTypes {
|
|
39
|
-
Component = 1,
|
|
40
|
-
ComponentCollection = 2
|
|
36
|
+
VideoItemPreview = 34,
|
|
37
|
+
Unselected = 35
|
|
41
38
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
1
2
|
import { BaseDataService } from '@clickview/common';
|
|
2
|
-
|
|
3
|
+
interface LanguageConfig {
|
|
4
|
+
locale: string;
|
|
5
|
+
phrases: ObjectHash;
|
|
6
|
+
}
|
|
3
7
|
export declare class LanguageDataService extends BaseDataService {
|
|
4
8
|
get name(): string;
|
|
5
9
|
get channelName(): string;
|
|
6
10
|
getLanguageConfig(callback?: (languageConfig: LanguageConfig) => void): void;
|
|
7
11
|
}
|
|
12
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { BaseDataService } from '@clickview/common';
|
|
1
|
+
import { Cursors, BaseDataService } from '@clickview/common';
|
|
2
2
|
import { VideoCollection, RestrictedObjectCollection } from "../collections";
|
|
3
3
|
import { VideoCollectionIdentifier } from "../interfaces/VideoCollectionIdentifier";
|
|
4
|
-
import { Cursors } from '@clickview/common';
|
|
5
4
|
export declare class RestrictedVideoDataService extends BaseDataService {
|
|
6
5
|
get name(): string;
|
|
7
6
|
get channelName(): string;
|
|
@@ -4,7 +4,6 @@ import { VideoCollectionIdentifier } from "../interfaces";
|
|
|
4
4
|
import { Video } from "../models";
|
|
5
5
|
export declare class VideoMixinService extends Core.Service {
|
|
6
6
|
private restrictedVideoDataService;
|
|
7
|
-
private localCacheDataService;
|
|
8
7
|
initialize(): void;
|
|
9
8
|
get name(): string;
|
|
10
9
|
get channelName(): string;
|
|
@@ -6,13 +6,10 @@ export * from './PartialLoadingService';
|
|
|
6
6
|
export * from './SettingsDataService';
|
|
7
7
|
export * from './CustomerDataService';
|
|
8
8
|
export * from './LocalCacheDataService';
|
|
9
|
-
export * from './VideoMixinService';
|
|
10
9
|
export * from './RestrictedVideoDataService';
|
|
11
10
|
export * from './PageVisibilityService';
|
|
12
11
|
export * from './PageTitleService';
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './LanguageService';
|
|
12
|
+
export * from './VideoMixinService';
|
|
15
13
|
export * from './LanguageDataService';
|
|
16
|
-
export * from './ContextService';
|
|
17
14
|
export * from './DownloadProxyDataServices';
|
|
18
15
|
export * from './IntercomService';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ObjectHash } from 'backbone';
|
|
1
2
|
import { Core } from '@clickview/common';
|
|
2
3
|
import { SortType, ExportServiceSortType } from "../enums";
|
|
3
|
-
import { ObjectHash } from 'backbone';
|
|
4
4
|
declare const SortHelper: {
|
|
5
5
|
GetCurrentSortType(): SortType;
|
|
6
6
|
GetSortViewModel(): Core.Model;
|
|
@@ -6,7 +6,6 @@ export * from './TimeHelper';
|
|
|
6
6
|
export * from './SettingsHelper';
|
|
7
7
|
export * from './FolderTreeHelpers';
|
|
8
8
|
export * from './TextHelper';
|
|
9
|
-
export * from './MaskHelper';
|
|
10
9
|
export * from './PermissionsHelper';
|
|
11
10
|
export * from './ImageHelper';
|
|
12
11
|
export * from './RatingHelper';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="jquery" />
|
|
2
2
|
import { ObjectHash } from 'backbone';
|
|
3
|
-
import
|
|
3
|
+
import { TypeaheadDataSource, BloodhoundConfigHandler } from '@clickview/shared';
|
|
4
4
|
import { Tag, Producer, Distributor, Series, Channel } from "../../models";
|
|
5
5
|
declare type RawSearchType = Producer | Distributor | Series | Channel | Tag;
|
|
6
6
|
/**
|
|
7
7
|
* Specific logic for processing responses from domain instant/raw endpoint
|
|
8
8
|
*/
|
|
9
9
|
export declare const RawSearchHelper: {
|
|
10
|
-
handleQuery(dataSource?:
|
|
10
|
+
handleQuery(dataSource?: TypeaheadDataSource<RawSearchType>, options?: ObjectHash): TypeaheadDataSource<RawSearchType>;
|
|
11
11
|
getSuggestionTemplate(sourceName: string): any;
|
|
12
12
|
getPendingTemplate(sourceName: string): any;
|
|
13
13
|
getNotFoundTemplate(sourceName: string, hideEmptyResults?: boolean): any;
|
|
@@ -15,7 +15,7 @@ export declare const RawSearchHelper: {
|
|
|
15
15
|
prepareQuery: (query: string, settings: JQueryAjaxSettings, options?: ObjectHash) => string;
|
|
16
16
|
prepareUrl(source: string, options: ObjectHash): string;
|
|
17
17
|
mapRawSearchType(source: string, options: ObjectHash): string;
|
|
18
|
-
getBloodhoundConfig():
|
|
18
|
+
getBloodhoundConfig(): BloodhoundConfigHandler<RawSearchType>;
|
|
19
19
|
getTypeaheadConfig(): any;
|
|
20
20
|
};
|
|
21
21
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clickview/library-editor",
|
|
3
3
|
"description": "Library Editor",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2-alpha.0",
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"author": "Shale Kuzmanovski, Michael McDonnell",
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@clickview/tooling": "0.0.
|
|
33
|
+
"@clickview/tooling": "0.0.11-alpha.4",
|
|
34
34
|
"@fortawesome/fontawesome": "1.1.8",
|
|
35
35
|
"@types/clipboard": "2.0.1",
|
|
36
36
|
"@types/cropperjs": "1.1.5",
|
|
@@ -61,12 +61,11 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/polyfill": "7.4.4",
|
|
64
|
-
"@clickview/analytics": "1.0.
|
|
65
|
-
"@clickview/common": "1.0.
|
|
66
|
-
"@clickview/shared": "1.0.
|
|
67
|
-
"@clickview/styles": "1.0.
|
|
64
|
+
"@clickview/analytics": "1.0.1-alpha.4",
|
|
65
|
+
"@clickview/common": "1.0.1-alpha.4",
|
|
66
|
+
"@clickview/shared": "1.0.1-alpha.4",
|
|
67
|
+
"@clickview/styles": "1.0.1-alpha.4",
|
|
68
68
|
"autotrack": "2.4.1",
|
|
69
|
-
"backbone-validation": "0.11.5",
|
|
70
69
|
"bootstrap": "4.3.1",
|
|
71
70
|
"clipboard": "2.0.4",
|
|
72
71
|
"corejs-typeahead": "1.2.1",
|
|
@@ -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 {};
|
package/dist/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts
DELETED
|
@@ -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
|
-
}
|
package/dist/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts
DELETED
|
@@ -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,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,32 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
import { Video } from "../../models";
|
|
4
|
-
import { ImageOptions } from "../../utils";
|
|
5
|
-
export interface ThumbnailComponentOptions extends Core.ComponentOptions {
|
|
6
|
-
model: Video;
|
|
7
|
-
onClickHandler?: Function;
|
|
8
|
-
thumbnailOptions?: ImageOptions;
|
|
9
|
-
playIcon?: boolean;
|
|
10
|
-
lazyload?: boolean;
|
|
11
|
-
appLink?: Core.AppLink;
|
|
12
|
-
href?: string;
|
|
13
|
-
channelName?: string;
|
|
14
|
-
}
|
|
15
|
-
export declare class ThumbnailComponent extends Core.Component<Video> {
|
|
16
|
-
protected options: ThumbnailComponentOptions;
|
|
17
|
-
constructor(options: ThumbnailComponentOptions);
|
|
18
|
-
initialize(): void;
|
|
19
|
-
get name(): string;
|
|
20
|
-
get template(): string;
|
|
21
|
-
get tagName(): string;
|
|
22
|
-
get className(): string;
|
|
23
|
-
get elements(): ObjectHash;
|
|
24
|
-
events(): ObjectHash;
|
|
25
|
-
get appLinks(): Core.AppLinkHash;
|
|
26
|
-
get attributes(): ObjectHash;
|
|
27
|
-
private showPlayIcon;
|
|
28
|
-
private onClick;
|
|
29
|
-
private onImageLoad;
|
|
30
|
-
viewOptions(): ObjectHash;
|
|
31
|
-
onRender(): void;
|
|
32
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Core } from '@clickview/common';
|
|
2
|
-
interface ApplicationContext {
|
|
3
|
-
pageLoad: boolean;
|
|
4
|
-
appLink: Core.AppLink;
|
|
5
|
-
}
|
|
6
|
-
export interface AppContextServiceOptions {
|
|
7
|
-
}
|
|
8
|
-
export declare class StaticContextService extends Core.Service {
|
|
9
|
-
private static instance;
|
|
10
|
-
private routeHistory;
|
|
11
|
-
private contextHistory;
|
|
12
|
-
get name(): string;
|
|
13
|
-
static get Instance(): StaticContextService;
|
|
14
|
-
initialize(): void;
|
|
15
|
-
/**
|
|
16
|
-
* Context specific methods.
|
|
17
|
-
* The Context History keeps track of ALL APPLINKS.
|
|
18
|
-
*/
|
|
19
|
-
private setContext;
|
|
20
|
-
getCurrentContext(): ApplicationContext;
|
|
21
|
-
getPreviousContext(): ApplicationContext;
|
|
22
|
-
/**
|
|
23
|
-
* Route specific methods.
|
|
24
|
-
* The Route History works the same way as the Context History, except
|
|
25
|
-
* it will ONLY take applinks that change the route. This is useful
|
|
26
|
-
* for things like tracking state for in-application back buttons where we
|
|
27
|
-
* would not be interested in applinks that do not map to routes.
|
|
28
|
-
*/
|
|
29
|
-
private updateRouteHistory;
|
|
30
|
-
getCurrentRoute(): ApplicationContext;
|
|
31
|
-
getPreviousRoute(): ApplicationContext;
|
|
32
|
-
/**
|
|
33
|
-
* Other utilities
|
|
34
|
-
*/
|
|
35
|
-
fromPageLoad(): boolean;
|
|
36
|
-
}
|
|
37
|
-
export declare const ContextService: StaticContextService;
|
|
38
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Core } from '@clickview/common';
|
|
2
|
-
import { LanguageConfig } from "../models/LanguageConfig";
|
|
3
|
-
interface LanguageInterpolationOptions {
|
|
4
|
-
smartCount?: number;
|
|
5
|
-
[propName: string]: any;
|
|
6
|
-
}
|
|
7
|
-
declare class StaticLanguageService extends Core.Service {
|
|
8
|
-
private static instance;
|
|
9
|
-
private polyglot;
|
|
10
|
-
static get Instance(): StaticLanguageService;
|
|
11
|
-
get name(): string;
|
|
12
|
-
setConfig(config: LanguageConfig): void;
|
|
13
|
-
getPhrase(namespace: string, phraseKey: string, options?: LanguageInterpolationOptions): string;
|
|
14
|
-
}
|
|
15
|
-
export declare const LanguageService: StaticLanguageService;
|
|
16
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="jquery" />
|
|
2
|
-
/// <reference types="jqueryui" />
|
|
3
|
-
/// <reference types="typeahead" />
|
|
4
|
-
/// <reference types="bootstrap" />
|
|
5
|
-
/// <reference types="dropzone" />
|
|
6
|
-
export interface MaskHelperOptions {
|
|
7
|
-
targetSelector?: string;
|
|
8
|
-
additionalClasses?: string;
|
|
9
|
-
fade?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const MaskHelper: {
|
|
12
|
-
showMask(options?: MaskHelperOptions): JQuery<HTMLElement>;
|
|
13
|
-
hideMask(maskEl?: JQuery<HTMLElement>): void;
|
|
14
|
-
getTarget(targetSelector?: string): JQuery<HTMLElement>;
|
|
15
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="jquery" />
|
|
2
|
-
import { ObjectHash } from 'backbone';
|
|
3
|
-
import { RemoteSearch } from "./";
|
|
4
|
-
/**
|
|
5
|
-
* Specific logic for processing responses from domain v1/search/instant endpoint
|
|
6
|
-
*/
|
|
7
|
-
export declare const InstantSearchHelper: {
|
|
8
|
-
prepareQuery: (query: string, settings: JQueryAjaxSettings, options?: ObjectHash) => string;
|
|
9
|
-
bloodhoundConfig(source: string, options: ObjectHash): RemoteSearch<any>;
|
|
10
|
-
handleResult(data: ObjectHash, item: any, options?: ObjectHash): any[];
|
|
11
|
-
processVideoResult(collection: any[], item: any, options: ObjectHash): any[];
|
|
12
|
-
processTagsResult(collection: any[], item: any, options: ObjectHash): any[];
|
|
13
|
-
processSeriesResult(collection: any[], item: any, options: ObjectHash): any[];
|
|
14
|
-
processFolderResult(collection: any[], item: any, options?: ObjectHash): any[];
|
|
15
|
-
/**
|
|
16
|
-
* Manipulate
|
|
17
|
-
* @param collection
|
|
18
|
-
* @param options
|
|
19
|
-
*/
|
|
20
|
-
processCollection(collection: any[], options?: ObjectHash): any[];
|
|
21
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { StorageHelper } from '@clickview/common';
|
|
2
|
-
export interface UpdateRecentSearchOptions<T> {
|
|
3
|
-
query: T;
|
|
4
|
-
add?: boolean;
|
|
5
|
-
remove?: boolean;
|
|
6
|
-
limit?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const RecentSearchHelper: {
|
|
9
|
-
getRecentSearches<T>(key: string, dataSource: StorageHelper): T[];
|
|
10
|
-
setRecentSearches<T_1>(key: string, recentSearches: T_1[], dataSource: StorageHelper): void;
|
|
11
|
-
updateRecentSearches<T_2>(key: string, dataSource: StorageHelper, options: UpdateRecentSearchOptions<T_2>): T_2[];
|
|
12
|
-
};
|