@types/selectize 0.12.34 → 0.12.35

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 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.
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,12 +5,12 @@
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://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectize
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectize.
9
9
 
10
- Additional Details
11
- * Last updated: Tue, 18 Dec 2018 20:51:06 GMT
10
+ ### Additional Details
11
+ * Last updated: Tue, 06 Jul 2021 16:34:29 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by Adi Dahiya <https://github.com/adidahiya>, Natalie Bausch <https://github.com/naBausch>.
16
+ These definitions were written by [Adi Dahiya](https://github.com/adidahiya), and [Natalie Bausch](https://github.com/naBausch).
selectize/index.d.ts CHANGED
@@ -15,13 +15,13 @@ declare namespace Selectize {
15
15
  /**
16
16
  * An array of the initial selected values. By default this is populated from the original input element.
17
17
  */
18
- items?: T[];
18
+ items?: T[] | undefined;
19
19
 
20
20
  /**
21
21
  * The placeholder of the control (displayed when nothing is selected / typed).
22
22
  * Defaults to input element's placeholder, unless this one is specified.
23
23
  */
24
- placeholder?: string;
24
+ placeholder?: string | undefined;
25
25
 
26
26
  /**
27
27
  * The string to separate items by. This option is only used when Selectize is instantiated from a
@@ -29,14 +29,14 @@ declare namespace Selectize {
29
29
  *
30
30
  * Default: ','
31
31
  */
32
- delimiter?: string;
32
+ delimiter?: string | undefined;
33
33
 
34
34
  /**
35
35
  * Enable or disable international character support.
36
36
  *
37
37
  * Default: true
38
38
  */
39
- diacritics?: boolean;
39
+ diacritics?: boolean | undefined;
40
40
 
41
41
  /**
42
42
  * Allows the user to create a new items that aren't in the list of options.
@@ -53,7 +53,7 @@ declare namespace Selectize {
53
53
  *
54
54
  * Default: false
55
55
  */
56
- createOnBlur?: boolean;
56
+ createOnBlur?: boolean | undefined;
57
57
 
58
58
  /**
59
59
  * Specifies a RegExp or String containing a regular expression that the current search filter must match to
@@ -69,49 +69,49 @@ declare namespace Selectize {
69
69
  *
70
70
  * Default: true
71
71
  */
72
- highlight?: boolean;
72
+ highlight?: boolean | undefined;
73
73
 
74
74
  /**
75
75
  * If false, items created by the user will not show up as available options once they are unselected.
76
76
  *
77
77
  * Default: true
78
78
  */
79
- persist?: boolean;
79
+ persist?: boolean | undefined;
80
80
 
81
81
  /**
82
82
  * Show the dropdown immediately when the control receives focus.
83
83
  *
84
84
  * Default: true
85
85
  */
86
- openOnFocus?: boolean;
86
+ openOnFocus?: boolean | undefined;
87
87
 
88
88
  /**
89
89
  * The max number of items to render at once in the dropdown list of options.
90
90
  *
91
91
  * Default: 1000
92
92
  */
93
- maxOptions?: number;
93
+ maxOptions?: number | undefined;
94
94
 
95
95
  /**
96
96
  * The max number of items the user can select.
97
97
  *
98
98
  * Default: Infinity
99
99
  */
100
- maxItems?: number;
100
+ maxItems?: number | undefined;
101
101
 
102
102
  /**
103
103
  * If true, the items that are currently selected will not be shown in the dropdown list of available options.
104
104
  *
105
105
  * Default: false
106
106
  */
107
- hideSelected?: boolean;
107
+ hideSelected?: boolean | undefined;
108
108
 
109
109
  /**
110
110
  * If true, the dropdown will be closed after a selection is made.
111
111
  *
112
112
  * Default: false
113
113
  */
114
- closeAfterSelect?: boolean;
114
+ closeAfterSelect?: boolean | undefined;
115
115
 
116
116
  /**
117
117
  * If true, Selectize will treat any options with a "" value like normal. This defaults to false to
@@ -119,7 +119,7 @@ declare namespace Selectize {
119
119
  *
120
120
  * Default: false
121
121
  */
122
- allowEmptyOption?: boolean;
122
+ allowEmptyOption?: boolean | undefined;
123
123
 
124
124
  /**
125
125
  * The animation duration (in milliseconds) of the scroll animation triggered when going [up] and [down] in
@@ -127,7 +127,7 @@ declare namespace Selectize {
127
127
  *
128
128
  * Default: 60
129
129
  */
130
- scrollDuration?: number;
130
+ scrollDuration?: number | undefined;
131
131
 
132
132
  /**
133
133
  * The number of milliseconds to wait before requesting options from the server or null.
@@ -135,7 +135,7 @@ declare namespace Selectize {
135
135
  *
136
136
  * Default: 300
137
137
  */
138
- loadThrottle?: number;
138
+ loadThrottle?: number | undefined;
139
139
 
140
140
  /**
141
141
  * If true, the "load" function will be called upon control initialization (with an empty search).
@@ -143,7 +143,7 @@ declare namespace Selectize {
143
143
  *
144
144
  * Default: false
145
145
  */
146
- preload?: boolean | 'focus';
146
+ preload?: boolean | 'focus' | undefined;
147
147
 
148
148
  /**
149
149
  * The element the dropdown menu is appended to. This should be "body" or null.
@@ -151,28 +151,28 @@ declare namespace Selectize {
151
151
  *
152
152
  * Default: null
153
153
  */
154
- dropdownParent?: string;
154
+ dropdownParent?: string | undefined;
155
155
 
156
156
  /**
157
157
  * Sets if the "Add..." option should be the default selection in the dropdown.
158
158
  *
159
159
  * Default: false
160
160
  */
161
- addPrecedence?: boolean;
161
+ addPrecedence?: boolean | undefined;
162
162
 
163
163
  /**
164
164
  * If true, the tab key will choose the currently selected item.
165
165
  *
166
166
  * Default: false
167
167
  */
168
- selectOnTab?: boolean;
168
+ selectOnTab?: boolean | undefined;
169
169
 
170
170
  /**
171
171
  * Plugins to use
172
172
  *
173
173
  * Default: null
174
174
  */
175
- plugins?: string[] | IPluginOption[] | { [name: string]: any };
175
+ plugins?: string[] | IPluginOption[] | { [name: string]: any } | undefined;
176
176
 
177
177
  // Data / Searching
178
178
  // ------------------------------------------------------------------------------------------------------------
@@ -184,35 +184,35 @@ declare namespace Selectize {
184
184
  *
185
185
  * Default: []
186
186
  */
187
- options?: U[];
187
+ options?: U[] | undefined;
188
188
 
189
189
  /**
190
190
  * The <option> attribute from which to read JSON data about the option.
191
191
  *
192
192
  * Default: "data-data"
193
193
  */
194
- dataAttr?: string;
194
+ dataAttr?: string | undefined;
195
195
 
196
196
  /**
197
197
  * The name of the property to use as the "value" when an item is selected.
198
198
  *
199
199
  * Default: "value"
200
200
  */
201
- valueField?: string;
201
+ valueField?: string | undefined;
202
202
 
203
203
  /**
204
204
  * Option groups that options will be bucketed into.
205
205
  * If your element is a <select> with <optgroup>s this property gets populated automatically.
206
206
  * Make sure each object in the array has a property named whatever "optgroupValueField" is set to.
207
207
  */
208
- optgroups?: U[];
208
+ optgroups?: U[] | undefined;
209
209
 
210
210
  /**
211
211
  * The name of the option group property that serves as its unique identifier.
212
212
  *
213
213
  * Default: "value"
214
214
  */
215
- optgroupValueField?: string;
215
+ optgroupValueField?: string | undefined;
216
216
 
217
217
  /**
218
218
  * The name of the property to render as an option / item label (not needed when custom rendering
@@ -220,7 +220,7 @@ declare namespace Selectize {
220
220
  *
221
221
  * Default: "text"
222
222
  */
223
- labelField?: string;
223
+ labelField?: string | undefined;
224
224
 
225
225
  /**
226
226
  * The name of the property to render as an option group label (not needed when custom rendering
@@ -228,21 +228,21 @@ declare namespace Selectize {
228
228
  *
229
229
  * Default: "label"
230
230
  */
231
- optgroupLabelField?: string;
231
+ optgroupLabelField?: string | undefined;
232
232
 
233
233
  /**
234
234
  * The name of the property to group items by.
235
235
  *
236
236
  * Default: "optgroup"
237
237
  */
238
- optgroupField?: string;
238
+ optgroupField?: string | undefined;
239
239
 
240
240
  /**
241
241
  * The name of the property to disabled option and optgroup.
242
242
  *
243
243
  * Default: 'disabled'
244
244
  */
245
- disabledField?: string;
245
+ disabledField?: string | undefined;
246
246
 
247
247
  /**
248
248
  * A single field or an array of fields to sort by. Each item in the array should be an object containing at
@@ -254,21 +254,21 @@ declare namespace Selectize {
254
254
  *
255
255
  * Default: "$order"
256
256
  */
257
- sortField?: string | { field: string, direction?: 'asc' | 'desc' }[];
257
+ sortField?: string | { field: string, direction?: 'asc' | 'desc' | undefined }[] | undefined;
258
258
 
259
259
  /**
260
260
  * An array of property names to analyze when filtering options.
261
261
  *
262
262
  * Default: ["text"]
263
263
  */
264
- searchField?: string | string[];
264
+ searchField?: string | string[] | undefined;
265
265
 
266
266
  /**
267
267
  * When searching for multiple terms (separated by a space), this is the operator used. Can be "and" or "or".
268
268
  *
269
269
  * Default: "and"
270
270
  */
271
- searchConjunction?: string;
271
+ searchConjunction?: string | undefined;
272
272
 
273
273
  /**
274
274
  * If truthy, Selectize will make all optgroups be in the same order as they were added (by the `$order`
@@ -276,7 +276,7 @@ declare namespace Selectize {
276
276
  *
277
277
  * Default: false
278
278
  */
279
- lockOptgroupOrder?: boolean;
279
+ lockOptgroupOrder?: boolean | undefined;
280
280
 
281
281
  /**
282
282
  * An array of optgroup values that indicates the order they should be listed in in the dropdown.
@@ -284,14 +284,14 @@ declare namespace Selectize {
284
284
  *
285
285
  * Default: null
286
286
  */
287
- optgroupOrder?: string[];
287
+ optgroupOrder?: string[] | undefined;
288
288
 
289
289
  /**
290
290
  * Copy the original input classes to the Dropdown element.
291
291
  *
292
292
  * Default: true
293
293
  */
294
- copyClassesToDropdown?: boolean;
294
+ copyClassesToDropdown?: boolean | undefined;
295
295
 
296
296
  // Callbacks
297
297
  // ------------------------------------------------------------------------------------------------------------
@@ -384,7 +384,7 @@ declare namespace Selectize {
384
384
  // Rendering
385
385
  // ------------------------------------------------------------------------------------------------------------
386
386
 
387
- render?: ICustomRenderers<U>;
387
+ render?: ICustomRenderers<U> | undefined;
388
388
  }
389
389
 
390
390
  /**
selectize/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@types/selectize",
3
- "version": "0.12.34",
3
+ "version": "0.12.35",
4
4
  "description": "TypeScript definitions for Selectize",
5
+ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selectize",
5
6
  "license": "MIT",
6
7
  "contributors": [
7
8
  {
@@ -16,13 +17,14 @@
16
17
  }
17
18
  ],
18
19
  "main": "",
19
- "types": "index",
20
+ "types": "index.d.ts",
20
21
  "repository": {
21
22
  "type": "git",
22
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
23
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
24
+ "directory": "types/selectize"
23
25
  },
24
26
  "scripts": {},
25
27
  "dependencies": {},
26
- "typesPublisherContentHash": "cc67cd78047a67f6ebacf1ed6fcaea8acb7552865fc20d943a4cd28be183bcfb",
27
- "typeScriptVersion": "2.3"
28
+ "typesPublisherContentHash": "f06048cfa2e0c6b3f497dafb2d351fd6b64e9004b96208b4d90bbe0c586a8f6c",
29
+ "typeScriptVersion": "3.6"
28
30
  }