@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
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="typeahead" />
|
|
2
|
-
import { ObjectHash } from 'backbone';
|
|
3
|
-
import { Series, Folder, Video, Channel, Producer, Distributor } from "../../models";
|
|
4
|
-
export declare type InstantSearch = Series | Folder | Video | Channel | Producer | Distributor;
|
|
5
|
-
export interface RemoteSearch<T> extends Bloodhound.BloodhoundOptions<T> {
|
|
6
|
-
remote: Bloodhound.RemoteOptions<T>;
|
|
7
|
-
}
|
|
8
|
-
export interface LocalSearch<T> extends Bloodhound.BloodhoundOptions<T> {
|
|
9
|
-
local: T[] | (() => T[]);
|
|
10
|
-
}
|
|
11
|
-
export declare type TypeaheadDataSource<T> = Bloodhound<T> | ((query: string, syncResults: (result: T[]) => void, asyncResults?: (result: T[]) => void) => void);
|
|
12
|
-
export interface InstantSearchBloodhound<T> {
|
|
13
|
-
bloodhound: TypeaheadDataSource<T>;
|
|
14
|
-
name: string;
|
|
15
|
-
}
|
|
16
|
-
export declare type TypeaheadConfig<T> = Twitter.Typeahead.Dataset<T>;
|
|
17
|
-
export interface TypeaheadConfigHandler<T> {
|
|
18
|
-
(source?: InstantSearchBloodhound<T>, index?: number, options?: ObjectHash): Twitter.Typeahead.Dataset<T>;
|
|
19
|
-
}
|
|
20
|
-
export interface BloodhoundConfigHandler<T> {
|
|
21
|
-
(source: string, options?: ObjectHash): LocalSearch<T> | RemoteSearch<T>;
|
|
22
|
-
}
|
|
23
|
-
export interface TypeaheadSourceItem<T> {
|
|
24
|
-
name: string;
|
|
25
|
-
typeaheadConfig: TypeaheadConfigHandler<T>;
|
|
26
|
-
bloodhoundConfig?: BloodhoundConfigHandler<T>;
|
|
27
|
-
options?: ObjectHash;
|
|
28
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/// <reference types="typeahead" />
|
|
2
|
-
/// <reference types="jquery" />
|
|
3
|
-
import { ObjectHash } from 'backbone';
|
|
4
|
-
import * as Bloodhound from 'bloodhound';
|
|
5
|
-
import { TypeaheadDataSource, LocalSearch, RemoteSearch, TypeaheadConfig } from "./";
|
|
6
|
-
import { TypeaheadSourceItem } from "./SearchTypes";
|
|
7
|
-
export declare const TypeaheadHelper: {
|
|
8
|
-
/**
|
|
9
|
-
* This function will only allow our typeahead to fetch results when we
|
|
10
|
-
* have exceeded our min length. The reason for doing this is that we want to the typeahead
|
|
11
|
-
* to load our recent searches immediately when we click the input, but before we perform any searches. - Mike
|
|
12
|
-
*/
|
|
13
|
-
handleQuery<T>(dataSource?: TypeaheadDataSource<T>, options?: ObjectHash): TypeaheadDataSource<T>;
|
|
14
|
-
/**
|
|
15
|
-
* This function complements HandleQuery allowing us to override when and how typeahead templates are
|
|
16
|
-
* rendered. When the query doesn't meet our min length we will render a fallback template, which is
|
|
17
|
-
* essentially just an empty div. This is necessary to ensure we can display recent searchs when the
|
|
18
|
-
* typeahead is active (but less than the require length to trigger the search functionality). As we are
|
|
19
|
-
* dynamically generating the results for videos, folders and series we are deliberately using a closure
|
|
20
|
-
* to ensure we don't lose our template.
|
|
21
|
-
*
|
|
22
|
-
* It must also return <any> as the typeahead typings are shit.
|
|
23
|
-
* - Mike
|
|
24
|
-
*/
|
|
25
|
-
getTemplate(template: Function, options?: ObjectHash): any;
|
|
26
|
-
/**
|
|
27
|
-
* Provides mechanism to map a single search query against multiple bloodhound sources.
|
|
28
|
-
* Sources may be remote endpoints or local in-memory collections.
|
|
29
|
-
* @param sources
|
|
30
|
-
* @param options
|
|
31
|
-
*/
|
|
32
|
-
getSearchSources<T_1>(sources: TypeaheadSourceItem<T_1>[]): TypeaheadConfig<T_1>[];
|
|
33
|
-
/**
|
|
34
|
-
* Bloodhound helper
|
|
35
|
-
*/
|
|
36
|
-
buildBloodhound<T_2>(options: RemoteSearch<T_2> | LocalSearch<T_2>): Bloodhound<T_2>;
|
|
37
|
-
/**
|
|
38
|
-
* This is attached as a callback to the typeahead's render event.
|
|
39
|
-
* Where there is a real suggestion from the server, we will automatically
|
|
40
|
-
* set the cursor to that item, to make it simply to add. This is to encourage the
|
|
41
|
-
* re-use of existing entities.
|
|
42
|
-
*
|
|
43
|
-
* Note: With multiple suggestion sets, the render event will also be called multiple times
|
|
44
|
-
* along with this callback.
|
|
45
|
-
*/
|
|
46
|
-
selectFirstResult(e: JQueryEventObject, suggestions: any[], async: boolean, dataset: string): void;
|
|
47
|
-
/**
|
|
48
|
-
* Callback is designed to be attached to the stickit bindings for the typeahead form
|
|
49
|
-
* and emit events when a change is detected on the bound model. We do this to be
|
|
50
|
-
* able to detect whether an input has cleared from a previous selection,
|
|
51
|
-
*
|
|
52
|
-
* @param channelName
|
|
53
|
-
* @param event
|
|
54
|
-
*/
|
|
55
|
-
emitEventOnInput(channelName: string, eventName: string, type: string, wrapperOptions?: ObjectHash): Function;
|
|
56
|
-
/**
|
|
57
|
-
* I hate this.
|
|
58
|
-
*
|
|
59
|
-
* Basically what this function does is curry a callback with the original association's
|
|
60
|
-
* data. Then, depending on the user's interaction with the typeahead input, it will restore that
|
|
61
|
-
* data when a blur event is triggered.
|
|
62
|
-
*
|
|
63
|
-
* @param data raw clone of original assoc model
|
|
64
|
-
*
|
|
65
|
-
* Curried callback
|
|
66
|
-
* @param channelName
|
|
67
|
-
* @param propertyName
|
|
68
|
-
*/
|
|
69
|
-
resetAssociationOnBlur(data: ObjectHash): Function;
|
|
70
|
-
/**
|
|
71
|
-
* Create and render ConfirmSelection component for use as a
|
|
72
|
-
* @param options
|
|
73
|
-
*/
|
|
74
|
-
getConfirmSelectionTemplate(options?: ObjectHash): Function;
|
|
75
|
-
clearInputOnBlur(channelName: string): void;
|
|
76
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ObjectHash } from 'backbone';
|
|
2
|
-
import { Core } from '@clickview/common';
|
|
3
|
-
interface ConfirmSelectionComponentOptions extends Core.ComponentOptions {
|
|
4
|
-
}
|
|
5
|
-
export declare class ConfirmSelectionComponent extends Core.Component {
|
|
6
|
-
constructor(options: ConfirmSelectionComponentOptions);
|
|
7
|
-
get name(): string;
|
|
8
|
-
get template(): string;
|
|
9
|
-
get className(): string;
|
|
10
|
-
viewOptions(): ObjectHash;
|
|
11
|
-
}
|
|
12
|
-
export {};
|