@types/selectize 0.12.34 → 0.12.36

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