mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-07-10 22:16:03 +01:00
Remove old JQuery Typeahead code
This commit is contained in:
parent
2dfd90ca0f
commit
c458bedb0c
11
externals/jquery.typeahead.min.js
vendored
11
externals/jquery.typeahead.min.js
vendored
File diff suppressed because one or more lines are too long
34
src/Definitions/jquery-typescript.d.ts
vendored
34
src/Definitions/jquery-typescript.d.ts
vendored
@ -1,34 +0,0 @@
|
||||
/* Type definitions for code-runner's jquery-typeahead v2.8.0
|
||||
* https://github.com/running-coder/jquery-typeahead
|
||||
*
|
||||
* There is no DefinitelyTyped support for this library, yet, so we only define here what we use.
|
||||
* https://github.com/running-coder/jquery-typeahead/issues/156
|
||||
* TODO: Replace this minimum definition by the official one when it comes out.
|
||||
*/
|
||||
/// <reference path="jquery.d.ts" />
|
||||
|
||||
interface JQueryTypeaheadParam {
|
||||
input: string;
|
||||
order?: string;
|
||||
source: any;
|
||||
callback?: any;
|
||||
minLength?: number;
|
||||
searchOnFocus?: boolean;
|
||||
template?: string | { (query: string, item: any): string };
|
||||
dynamic?: boolean;
|
||||
mustSelectItem?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* For use with: $.typeahead()
|
||||
*/
|
||||
interface JQueryStatic {
|
||||
typeahead(arg: JQueryTypeaheadParam): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* For use with $('').typehead()
|
||||
*/
|
||||
// interface JQuery {
|
||||
// typeahead(arg: JQueryTypeaheadParam): void;
|
||||
// }
|
@ -1,7 +1,6 @@
|
||||
import React from "react";
|
||||
import { shallow } from "enzyme";
|
||||
import React from "react";
|
||||
import { InputTypeaheadComponent, InputTypeaheadComponentProps } from "./InputTypeaheadComponent";
|
||||
import "../../../../externals/jquery.typeahead.min.js";
|
||||
|
||||
describe("inputTypeahead", () => {
|
||||
it("renders <input />", () => {
|
||||
|
@ -4,7 +4,6 @@ import { mount, ReactWrapper } from "enzyme";
|
||||
import * as Q from "q";
|
||||
import React from "react";
|
||||
import * as sinon from "sinon";
|
||||
import "../../../../externals/jquery.typeahead.min";
|
||||
import { queryDocuments } from "../../../Common/dataAccess/queryDocuments";
|
||||
import { queryDocumentsPage } from "../../../Common/dataAccess/queryDocumentsPage";
|
||||
import * as DataModels from "../../../Contracts/DataModels";
|
||||
|
Loading…
x
Reference in New Issue
Block a user