@types/selectize 0.12.30 → 0.12.34
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.
- selectize/LICENSE +21 -21
- selectize/README.md +2 -2
- selectize/index.d.ts +51 -7
- selectize/package.json +9 -7
selectize/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE
|
selectize/README.md
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
This package contains type definitions for Selectize (https://github.com/brianreavis/selectize.js).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
|
-
Files were exported from https://
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectize
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 18 Dec 2018 20:51:06 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
selectize/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Project: https://github.com/brianreavis/selectize.js
|
|
3
3
|
// Definitions by: Adi Dahiya <https://github.com/adidahiya>, Natalie Bausch <https://github.com/naBausch>
|
|
4
4
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
+
// TypeScript Version: 2.3
|
|
5
6
|
|
|
6
7
|
declare namespace Selectize {
|
|
7
8
|
// see https://github.com/brianreavis/selectize.js/blob/master/docs/usage.md
|
|
@@ -11,6 +12,17 @@ declare namespace Selectize {
|
|
|
11
12
|
// General
|
|
12
13
|
// ------------------------------------------------------------------------------------------------------------
|
|
13
14
|
|
|
15
|
+
/**
|
|
16
|
+
* An array of the initial selected values. By default this is populated from the original input element.
|
|
17
|
+
*/
|
|
18
|
+
items?: T[];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The placeholder of the control (displayed when nothing is selected / typed).
|
|
22
|
+
* Defaults to input element's placeholder, unless this one is specified.
|
|
23
|
+
*/
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
|
|
14
26
|
/**
|
|
15
27
|
* The string to separate items by. This option is only used when Selectize is instantiated from a
|
|
16
28
|
* <input type="text"> element.
|
|
@@ -94,6 +106,13 @@ declare namespace Selectize {
|
|
|
94
106
|
*/
|
|
95
107
|
hideSelected?: boolean;
|
|
96
108
|
|
|
109
|
+
/**
|
|
110
|
+
* If true, the dropdown will be closed after a selection is made.
|
|
111
|
+
*
|
|
112
|
+
* Default: false
|
|
113
|
+
*/
|
|
114
|
+
closeAfterSelect?: boolean;
|
|
115
|
+
|
|
97
116
|
/**
|
|
98
117
|
* If true, Selectize will treat any options with a "" value like normal. This defaults to false to
|
|
99
118
|
* accomodate the common <select> practice of having the first empty option act as a placeholder.
|
|
@@ -124,7 +143,7 @@ declare namespace Selectize {
|
|
|
124
143
|
*
|
|
125
144
|
* Default: false
|
|
126
145
|
*/
|
|
127
|
-
preload?:
|
|
146
|
+
preload?: boolean | 'focus';
|
|
128
147
|
|
|
129
148
|
/**
|
|
130
149
|
* The element the dropdown menu is appended to. This should be "body" or null.
|
|
@@ -218,6 +237,13 @@ declare namespace Selectize {
|
|
|
218
237
|
*/
|
|
219
238
|
optgroupField?: string;
|
|
220
239
|
|
|
240
|
+
/**
|
|
241
|
+
* The name of the property to disabled option and optgroup.
|
|
242
|
+
*
|
|
243
|
+
* Default: 'disabled'
|
|
244
|
+
*/
|
|
245
|
+
disabledField?: string;
|
|
246
|
+
|
|
221
247
|
/**
|
|
222
248
|
* A single field or an array of fields to sort by. Each item in the array should be an object containing at
|
|
223
249
|
* least a "field" property. Optionally, "direction" can be set to "asc" or "desc". The order of the array
|
|
@@ -228,14 +254,14 @@ declare namespace Selectize {
|
|
|
228
254
|
*
|
|
229
255
|
* Default: "$order"
|
|
230
256
|
*/
|
|
231
|
-
sortField?:
|
|
257
|
+
sortField?: string | { field: string, direction?: 'asc' | 'desc' }[];
|
|
232
258
|
|
|
233
259
|
/**
|
|
234
260
|
* An array of property names to analyze when filtering options.
|
|
235
261
|
*
|
|
236
262
|
* Default: ["text"]
|
|
237
263
|
*/
|
|
238
|
-
searchField?:
|
|
264
|
+
searchField?: string | string[];
|
|
239
265
|
|
|
240
266
|
/**
|
|
241
267
|
* When searching for multiple terms (separated by a space), this is the operator used. Can be "and" or "or".
|
|
@@ -244,6 +270,14 @@ declare namespace Selectize {
|
|
|
244
270
|
*/
|
|
245
271
|
searchConjunction?: string;
|
|
246
272
|
|
|
273
|
+
/**
|
|
274
|
+
* If truthy, Selectize will make all optgroups be in the same order as they were added (by the `$order`
|
|
275
|
+
* property). Otherwise, it will order based on the score of the results in each.
|
|
276
|
+
*
|
|
277
|
+
* Default: false
|
|
278
|
+
*/
|
|
279
|
+
lockOptgroupOrder?: boolean;
|
|
280
|
+
|
|
247
281
|
/**
|
|
248
282
|
* An array of optgroup values that indicates the order they should be listed in in the dropdown.
|
|
249
283
|
* If not provided, groups will be ordered by the ranking of the options within them.
|
|
@@ -279,6 +313,16 @@ declare namespace Selectize {
|
|
|
279
313
|
*/
|
|
280
314
|
onInitialize?(): any;
|
|
281
315
|
|
|
316
|
+
/**
|
|
317
|
+
* Invoked when the control gains focus.
|
|
318
|
+
*/
|
|
319
|
+
onFocus?(): any;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Invoked when the control loses focus.
|
|
323
|
+
*/
|
|
324
|
+
onBlur?(): any;
|
|
325
|
+
|
|
282
326
|
/**
|
|
283
327
|
* Invoked when the value of the control changes.
|
|
284
328
|
*
|
|
@@ -426,7 +470,7 @@ declare namespace Selectize {
|
|
|
426
470
|
/**
|
|
427
471
|
* Resets / clears all selected items from the control.
|
|
428
472
|
*/
|
|
429
|
-
clear(): void;
|
|
473
|
+
clear(silent?: boolean): void;
|
|
430
474
|
|
|
431
475
|
/**
|
|
432
476
|
* Returns the jQuery element of the item matching the given value.
|
|
@@ -436,18 +480,18 @@ declare namespace Selectize {
|
|
|
436
480
|
/**
|
|
437
481
|
* "Selects" an item. Adds it to the list at the current caret position.
|
|
438
482
|
*/
|
|
439
|
-
addItem(value: T): void;
|
|
483
|
+
addItem(value: T, silent?: boolean): void;
|
|
440
484
|
|
|
441
485
|
/**
|
|
442
486
|
* Removes the selected item matching the provided value.
|
|
443
487
|
*/
|
|
444
|
-
removeItem(value: T): void;
|
|
488
|
+
removeItem(value: T, silent?: boolean): void;
|
|
445
489
|
|
|
446
490
|
/**
|
|
447
491
|
* Invokes the "create" method provided in the selectize options that should provide the data for the
|
|
448
492
|
* new item, given the user input. Once this completes, it will be added to the item list.
|
|
449
493
|
*/
|
|
450
|
-
createItem(value: T): void;
|
|
494
|
+
createItem(value: T, triggerDropdown?: boolean, callback?: (data?: any) => void): void;
|
|
451
495
|
|
|
452
496
|
/**
|
|
453
497
|
* Re-renders the selected item lists.
|
selectize/package.json
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/selectize",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.34",
|
|
4
4
|
"description": "TypeScript definitions for Selectize",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
8
8
|
"name": "Adi Dahiya",
|
|
9
|
-
"url": "https://github.com/adidahiya"
|
|
9
|
+
"url": "https://github.com/adidahiya",
|
|
10
|
+
"githubUsername": "adidahiya"
|
|
10
11
|
},
|
|
11
12
|
{
|
|
12
13
|
"name": "Natalie Bausch",
|
|
13
|
-
"url": "https://github.com/naBausch"
|
|
14
|
+
"url": "https://github.com/naBausch",
|
|
15
|
+
"githubUsername": "naBausch"
|
|
14
16
|
}
|
|
15
17
|
],
|
|
16
18
|
"main": "",
|
|
19
|
+
"types": "index",
|
|
17
20
|
"repository": {
|
|
18
21
|
"type": "git",
|
|
19
|
-
"url": "https://
|
|
22
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
|
|
20
23
|
},
|
|
21
24
|
"scripts": {},
|
|
22
25
|
"dependencies": {},
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"typeScriptVersion": "2.0"
|
|
26
|
+
"typesPublisherContentHash": "cc67cd78047a67f6ebacf1ed6fcaea8acb7552865fc20d943a4cd28be183bcfb",
|
|
27
|
+
"typeScriptVersion": "2.3"
|
|
26
28
|
}
|