fomantic-ui 2.9.3-beta.43 → 2.9.3-beta.45

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.
Files changed (186) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +1 -1
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +1 -1
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +1 -1
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +1 -1
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +1 -1
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +1 -1
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +1 -1
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +1 -1
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +1 -1
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +1 -1
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +53 -53
  156. package/dist/semantic.js +26 -26
  157. package/dist/semantic.min.css +1 -1
  158. package/dist/semantic.min.js +1 -1
  159. package/package.json +3 -2
  160. package/types/fomantic-ui-accordion.d.ts +250 -0
  161. package/types/fomantic-ui-api.d.ts +607 -0
  162. package/types/fomantic-ui-calendar.d.ts +820 -0
  163. package/types/fomantic-ui-checkbox.d.ts +378 -0
  164. package/types/fomantic-ui-dimmer.d.ts +485 -0
  165. package/types/fomantic-ui-dropdown.d.ts +1402 -0
  166. package/types/fomantic-ui-embed.d.ts +372 -0
  167. package/types/fomantic-ui-flyout.d.ts +558 -0
  168. package/types/fomantic-ui-form.d.ts +780 -0
  169. package/types/fomantic-ui-modal.d.ts +553 -0
  170. package/types/fomantic-ui-nag.d.ts +319 -0
  171. package/types/fomantic-ui-popup.d.ts +619 -0
  172. package/types/fomantic-ui-progress.d.ts +533 -0
  173. package/types/fomantic-ui-rating.d.ts +218 -0
  174. package/types/fomantic-ui-search.d.ts +590 -0
  175. package/types/fomantic-ui-shape.d.ts +316 -0
  176. package/types/fomantic-ui-sidebar.d.ts +478 -0
  177. package/types/fomantic-ui-slider.d.ts +379 -0
  178. package/types/fomantic-ui-sticky.d.ts +261 -0
  179. package/types/fomantic-ui-tab.d.ts +427 -0
  180. package/types/fomantic-ui-tests.ts +23 -0
  181. package/types/fomantic-ui-toast.d.ts +620 -0
  182. package/types/fomantic-ui-transition.d.ts +405 -0
  183. package/types/fomantic-ui-visibility.d.ts +422 -0
  184. package/types/index.d.ts +64 -0
  185. package/types/tsconfig.json +23 -0
  186. package/types/tslint.json +1 -0
@@ -0,0 +1,1402 @@
1
+ declare namespace FomanticUI {
2
+ interface Dropdown {
3
+ settings: DropdownSettings;
4
+
5
+ /**
6
+ * Recreates dropdown menu from passed values.
7
+ * values should be an object with the following structure: { values: [ {value, text, name} ] }.
8
+ */
9
+ (behavior: 'setup menu', values: object): void;
10
+
11
+ /**
12
+ * Changes dropdown to use new values.
13
+ * values structure: [ {value, text, name} ].
14
+ */
15
+ (behavior: 'change values', values: object): void;
16
+
17
+ /**
18
+ * Refreshes all cached selectors and data
19
+ */
20
+ (behavior: 'refresh'): void;
21
+
22
+ /**
23
+ * Toggles current visibility of dropdown
24
+ */
25
+ (behavior: 'toggle'): void;
26
+
27
+ /**
28
+ * Shows dropdown.
29
+ * If a function is provided to callback, it's called after the dropdown-menu is shown.
30
+ * Set preventFocus to true if you don't want the dropdown field to focus after the menu is shown
31
+ */
32
+ (behavior: 'show', callback: Function, preventFocus: boolean): void;
33
+
34
+ /**
35
+ * Hides dropdown.
36
+ * If a function is provided to callback, it's called after the dropdown-menu is hidden.
37
+ * Set preventBlur to true if you don't want the dropdown field to blur after the menu is hidden
38
+ */
39
+ (behavior: 'hide', callback:Function, preventBlur: boolean): void;
40
+
41
+ /**
42
+ * Clears dropdown of selection.
43
+ * Set preventChangeTrigger to true to omit the change event (default: false).
44
+ */
45
+ (behavior: 'clear', preventChangeTrigger: boolean): void;
46
+
47
+ /**
48
+ * Hides all other dropdowns that is not current dropdown
49
+ */
50
+ (behavior: 'hide others'): void;
51
+
52
+ /**
53
+ * Restores dropdown text and value to its value on page load.
54
+ * Set preventChangeTrigger to true to omit the change event (default: false).
55
+ */
56
+ (behavior: 'restore defaults', preventChangeTrigger: boolean): void;
57
+
58
+ /**
59
+ * Restores dropdown text to its value on page load
60
+ */
61
+ (behavior: 'restore default text'): void;
62
+
63
+ /**
64
+ * Restores dropdown text to its prompt, placeholder text
65
+ */
66
+ (behavior: 'restore placeholder text'): void;
67
+
68
+ /**
69
+ * Restores dropdown value to its value on page load
70
+ */
71
+ (behavior: 'restore default value'): void;
72
+
73
+ /**
74
+ * Saves current text and value as new defaults (for use with restore)
75
+ */
76
+ (behavior: 'save defaults'): void;
77
+
78
+ /**
79
+ * Sets value as selected.
80
+ * Set preventChangeTrigger to true to omit the change event (default: false).
81
+ */
82
+ (behavior: 'set selected', value: string, preventChangeTrigger: boolean): void;
83
+
84
+ /**
85
+ * Remove value from selected
86
+ */
87
+ (behavior: 'remove selected', value: string): void;
88
+
89
+ /**
90
+ * Adds a group of values as selected
91
+ */
92
+ (behavior: 'set selected', values: string[]): void;
93
+
94
+ /**
95
+ * Sets selected values to exactly specified values, removing current selection
96
+ */
97
+ (behavior: 'set exactly', values: string[]): void;
98
+
99
+ /**
100
+ * Sets dropdown text to a value
101
+ */
102
+ (behavior: 'text', text: string): void;
103
+
104
+ /**
105
+ * Sets dropdown input to value (does not update display state).
106
+ * Set preventChangeTrigger to true to omit the change event (default: false).
107
+ */
108
+ (behavior: 'set value', value: string, preventChangeTrigger: boolean): void;
109
+
110
+ /**
111
+ * Returns current dropdown text
112
+ */
113
+ (behavior: 'get text'): string;
114
+
115
+ /**
116
+ * Returns current dropdown input value.
117
+ * When the dropdown was created out of a select tag, the value will always be an array, otherwise a string (delimited when multiple)
118
+ */
119
+ (behavior: 'get value'): string | string[];
120
+
121
+ /**
122
+ * Returns current dropdown input values as array.
123
+ * Useful for multiple selection dropdowns regardless if made out of a div or select
124
+ */
125
+ (behavior: 'get values'): string[];
126
+
127
+ /**
128
+ * Returns DOM element that matches a given input value
129
+ */
130
+ (behavior: 'get item', value: string): HTMLElement;
131
+
132
+ /**
133
+ * Returns current search term entered
134
+ */
135
+ (behavior: 'get query'): string;
136
+
137
+ /**
138
+ * Adds touch events to element
139
+ */
140
+ (behavior: 'bind touch events'): void;
141
+
142
+ /**
143
+ * Adds mouse events to element
144
+ */
145
+ (behavior: 'bind mouse events'): void;
146
+
147
+ /**
148
+ * Binds a click to document to determine if you click away from a dropdown
149
+ */
150
+ (behavior: 'bind intent'): void;
151
+
152
+ /**
153
+ * Unbinds document intent click
154
+ */
155
+ (behavior: 'unbind intent'): void;
156
+
157
+ /**
158
+ * Returns whether event occurred inside dropdown
159
+ */
160
+ (behavior: 'determine eventInModule'): boolean;
161
+
162
+ /**
163
+ * Triggers preset item selection action based on settings passing text/value
164
+ */
165
+ (behavior: 'determine select action', text: string, value: string): void;
166
+
167
+ /**
168
+ * Sets dropdown to active state
169
+ */
170
+ (behavior: 'set active'): void;
171
+
172
+ /**
173
+ * Sets dropdown to visible state
174
+ */
175
+ (behavior: 'set visible'): void;
176
+
177
+ /**
178
+ * Removes dropdown active state
179
+ */
180
+ (behavior: 'remove active'): void;
181
+
182
+ /**
183
+ * Removes dropdown visible state
184
+ */
185
+ (behavior: 'remove visible'): void;
186
+
187
+ /**
188
+ * Returns whether dropdown is a selection dropdown
189
+ */
190
+ (behavior: 'is selection'): boolean;
191
+
192
+ /**
193
+ * Returns whether dropdown is animated
194
+ */
195
+ (behavior: 'is animated'): boolean;
196
+
197
+ /**
198
+ * Returns whether dropdown is visible
199
+ */
200
+ (behavior: 'is visible'): boolean;
201
+
202
+ /**
203
+ * Returns whether dropdown is hidden
204
+ */
205
+ (behavior: 'is hidden'): boolean;
206
+
207
+ /**
208
+ * Returns dropdown value as set on page load
209
+ */
210
+ (behavior: 'get default text'): string;
211
+
212
+ /**
213
+ * Returns placeholder text
214
+ */
215
+ (behavior: 'get placeholder text'): string;
216
+
217
+ (behavior: 'destroy'): JQuery;
218
+ <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value?: undefined): DropdownSettings._Impl[K];
219
+ <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value: DropdownSettings._Impl[K]): JQuery;
220
+ (behavior: 'setting', value: DropdownSettings): JQuery;
221
+ (settings?: DropdownSettings): JQuery;
222
+ }
223
+
224
+ /**
225
+ * @see {@link http://fomantic-ui.com/modules/dropdown.html#/settings}
226
+ */
227
+ type DropdownSettings = DropdownSettings.Param;
228
+
229
+ namespace DropdownSettings {
230
+ type Param = (
231
+ | Pick<_Impl, 'on'>
232
+ | Pick<_Impl, 'action'>
233
+ | Pick<_Impl, 'values'>
234
+ | Pick<_Impl, 'clearable'>
235
+ | Pick<_Impl, 'apiSettings'>
236
+ | Pick<_Impl, 'selectOnKeydown'>
237
+ | Pick<_Impl, 'minCharacters'>
238
+ | Pick<_Impl, 'filterRemoteData'>
239
+ | Pick<_Impl, 'saveRemoteData'>
240
+ | Pick<_Impl, 'throttle'>
241
+ | Pick<_Impl, 'context'>
242
+ | Pick<_Impl, 'direction'>
243
+ | Pick<_Impl, 'keepOnScreen'>
244
+ | Pick<_Impl, 'match'>
245
+ | Pick<_Impl, 'fullTextSearch'>
246
+ | Pick<_Impl, 'ignoreDiacritics'>
247
+ | Pick<_Impl, 'hideDividers'>
248
+ | Pick<_Impl, 'placeholder'>
249
+ | Pick<_Impl, 'preserveHTML'>
250
+ | Pick<_Impl, 'sortSelect'>
251
+ | Pick<_Impl, 'forceSelection'>
252
+ | Pick<_Impl, 'allowAdditions'>
253
+ | Pick<_Impl, 'ignoreCase'>
254
+ | Pick<_Impl, 'ignoreSearchCase'>
255
+ | Pick<_Impl, 'hideAdditions'>
256
+ | Pick<_Impl, 'maxSelections'>
257
+ | Pick<_Impl, 'useLabels'>
258
+ | Pick<_Impl, 'delimiter'>
259
+ | Pick<_Impl, 'showOnFocus'>
260
+ | Pick<_Impl, 'allowReselection'>
261
+ | Pick<_Impl, 'allowTab'>
262
+ | Pick<_Impl, 'allowCategorySelection'>
263
+ | Pick<_Impl, 'fireOnInit'>
264
+ | Pick<_Impl, 'transition'>
265
+ | Pick<_Impl, 'duration'>
266
+ | Pick<_Impl, 'displayType'>
267
+ | Pick<_Impl, 'glyphWidth'>
268
+ | Pick<_Impl, 'headerDivider'>
269
+ | Pick<_Impl, 'collapseOnActionable'>
270
+ | Pick<_Impl, 'label'>
271
+ | Pick<_Impl, 'delay'>
272
+ | Pick<_Impl, 'onChange'>
273
+ | Pick<_Impl, 'onAdd'>
274
+ | Pick<_Impl, 'onRemove'>
275
+ | Pick<_Impl, 'onActionable'>
276
+ | Pick<_Impl, 'onSearch'>
277
+ | Pick<_Impl, 'onLabelSelect'>
278
+ | Pick<_Impl, 'onLabelCreate'>
279
+ | Pick<_Impl, 'onLabelRemove'>
280
+ | Pick<_Impl, 'onNoResults'>
281
+ | Pick<_Impl, 'onShow'>
282
+ | Pick<_Impl, 'onHide'>
283
+ | Pick<_Impl, 'message'>
284
+ | Pick<_Impl, 'regExp'>
285
+ | Pick<_Impl, 'metadata'>
286
+ | Pick<_Impl, 'fields'>
287
+ | Pick<_Impl, 'keys'>
288
+ | Pick<_Impl, 'selector'>
289
+ | Pick<_Impl, 'className'>
290
+ | Pick<_Impl, 'name'>
291
+ | Pick<_Impl, 'namespace'>
292
+ | Pick<_Impl, 'silent'>
293
+ | Pick<_Impl, 'debug'>
294
+ | Pick<_Impl, 'performance'>
295
+ | Pick<_Impl, 'verbose'>
296
+ | Pick<_Impl, 'error'>
297
+ ) &
298
+ Partial<Pick<_Impl, keyof _Impl>>;
299
+
300
+ interface _Impl {
301
+ // region Dropdown Settings
302
+
303
+ /**
304
+ * Event used to trigger dropdown (can be 'hover', 'click' or a custom event).
305
+ * @default 'click'
306
+ */
307
+ on: string;
308
+
309
+ /**
310
+ * Sets a default action to occur.
311
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#/usage}
312
+ * @default 'auto'
313
+ */
314
+ action:
315
+ | 'auto'
316
+ | 'activate'
317
+ | 'select'
318
+ | 'combo'
319
+ | 'nothing'
320
+ | 'hide'
321
+ | ((this: JQuery, text: string, value: string | false, element: JQuery) => void);
322
+
323
+ /**
324
+ * When specified allows you to initialize dropdown with specific values.
325
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#/usage}
326
+ * @default false
327
+ */
328
+ values: any;
329
+
330
+ /**
331
+ * Whether the dropdown value can be cleared by the user after being selected.
332
+ * @default false
333
+ */
334
+ clearable: boolean;
335
+
336
+ /**
337
+ * Can be set to an object to specify API settings for retrieving remote selection menu content from an API endpoint.
338
+ * @see {@link https://fomantic-ui.com/behaviors/api.html#/settings}
339
+ * @default false
340
+ */
341
+ apiSettings: false | APISettings;
342
+
343
+ /**
344
+ * Whether dropdown should select new option when using keyboard shortcuts.
345
+ * Setting to 'false' will require 'enter' or left click to confirm a choice.
346
+ * @default true
347
+ */
348
+ selectOnKeydown: boolean;
349
+
350
+ /**
351
+ * The minimum characters for a search to begin showing results.
352
+ * @default 0
353
+ */
354
+ minCharacters: number;
355
+
356
+ /**
357
+ * Whether results returned from API should be filtered by query before being displayed.
358
+ * @default false
359
+ */
360
+ filterRemoteData: boolean;
361
+
362
+ /**
363
+ * When enabled, will automatically store selected name/value pairs in 'sessionStorage' to preserve user selection on page refresh.
364
+ * Disabling will clear remote dropdown values on refresh.
365
+ * @default true
366
+ */
367
+ saveRemoteData: boolean;
368
+
369
+ /**
370
+ * How long to wait after last user input to search remotely.
371
+ * @default 200
372
+ */
373
+ throttle: number;
374
+
375
+ /**
376
+ * Element context to use when checking whether can show when 'keepOnScreen: true'.
377
+ * @default 'window'
378
+ */
379
+ context: string | JQuery;
380
+
381
+ /**
382
+ * When set to 'auto' determines direction based on whether dropdown can fit on screen.
383
+ * Set to 'upward' or 'downward' to always force a direction.
384
+ * @default 'auto'
385
+ */
386
+ direction: 'auto' | 'upward' | 'downward';
387
+
388
+ /**
389
+ * Whether dropdown should try to keep itself on screen by checking whether menus display position in its 'context' (Default context is page).
390
+ * @default true
391
+ */
392
+ keepOnScreen: boolean;
393
+
394
+ /**
395
+ * When using 'search selection' specifies how to match values.
396
+ * @default 'both'
397
+ */
398
+ match: 'both' | 'value' | 'text';
399
+
400
+ /**
401
+ * Specifying to "true" will use a fuzzy full text search, setting to "exact" will force the exact search to be matched somewhere in the string, setting to "false" will only match start of string.
402
+ * @default 'exact'
403
+ */
404
+ fullTextSearch: boolean | 'exact';
405
+
406
+ /**
407
+ * When activated, searches will also match results for base diacritic letters.
408
+ * For example when searching for 'a', it will also match 'á' or 'â' or 'å' and so on...
409
+ * It will also ignore diacritics for the searchterm, so if searching for 'ó', it will match 'ó', but also 'o', 'ô' or 'õ' and so on...
410
+ * @default false
411
+ */
412
+ ignoreDiacritics: boolean;
413
+
414
+ /**
415
+ * How to handle dividers in the dropdown while searching.
416
+ * Dividers are defined as all siblings of items that match the 'divider selector'.
417
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#dom-settings}
418
+ * @default false
419
+ */
420
+ hideDividers: boolean | 'empty';
421
+
422
+ /**
423
+ *
424
+ * @default 'auto'
425
+ */
426
+ placeholder: 'auto' | String | false;
427
+
428
+ /**
429
+ * Whether HTML included in dropdown values should be preserved.
430
+ * Allows icons to show up in selected value.
431
+ * @default true
432
+ */
433
+ preserveHTML: boolean;
434
+
435
+ /**
436
+ * Whether to sort values when creating a dropdown automatically from a select element.
437
+ * @default false
438
+ */
439
+ sortSelect: boolean | 'natural' | Function;
440
+
441
+ /**
442
+ * Whether search selection will force currently selected choice when element is blurred.
443
+ * If a 'select' tag with a required attribute was used, the 'forceSelection' setting will be set to 'true' automatically.
444
+ * @default false
445
+ */
446
+ forceSelection: boolean;
447
+
448
+ /**
449
+ * Whether search selection should allow users to add their own selections, works for single or multiselect.
450
+ * @default false
451
+ */
452
+ allowAdditions: boolean;
453
+
454
+ /**
455
+ * Whether values with non matching cases should be treated as identical when adding them to a dropdown.
456
+ * @default false
457
+ */
458
+ ignoreCase: boolean;
459
+
460
+ /**
461
+ * Whether values with non matching cases should be treated as identical when filtering the items.
462
+ * @default true
463
+ */
464
+ ignoreSearchCase: boolean;
465
+
466
+ /**
467
+ * If disabled user additions will appear in the dropdown's menu using a specially formatted selection item formatted by 'templates.addition'.
468
+ * @default true
469
+ */
470
+ hideAdditions: boolean;
471
+
472
+ /**
473
+ * When set to a number, sets the maximum number of selections.
474
+ * @default false
475
+ */
476
+ maxSelections: false | number;
477
+
478
+ /**
479
+ * Whether multiselect should use labels. Must be set to 'true' when 'allowAdditions' is 'true'.
480
+ * @default true
481
+ */
482
+ useLabels: boolean;
483
+
484
+ /**
485
+ * When multiselect uses normal input tag, the values will be delimited with this character.
486
+ * Also used as the keyboard shortcut while entering multiple values.
487
+ * @default ','
488
+ */
489
+ delimiter: string;
490
+
491
+ /**
492
+ * Whether to show dropdown menu automatically on element focus.
493
+ * @default false
494
+ */
495
+ showOnFocus: boolean;
496
+
497
+ /**
498
+ * When set to 'true' will fire 'onChange' even when the value a user select matches the currently selected value.
499
+ * @default false
500
+ */
501
+ allowReselection: boolean;
502
+
503
+ /**
504
+ * Whether to allow the element to be navigable by keyboard, by automatically creating a 'tabindex'.
505
+ * @default true
506
+ */
507
+ allowTab: boolean;
508
+
509
+ /**
510
+ * Whether menu items with sub-menus (categories) should be selectable.
511
+ * @default false
512
+ */
513
+ allowCategorySelection: boolean;
514
+
515
+ /**
516
+ * Whether callbacks should fire when initializing dropdown values.
517
+ * @default false
518
+ */
519
+ fireOnInit: boolean;
520
+
521
+ /**
522
+ * Named transition to use when animating menu in and out.
523
+ * Defaults to 'slide down' or 'slide up' depending on dropdown direction. Fade and slide down are available without including 'ui transitions'.
524
+ *
525
+ * Alternatively you can provide an 'object' to set individual values for hide/show transitions as well as hide/show duration.
526
+ * @default 'auto'
527
+ */
528
+ transition: boolean | object;
529
+
530
+ /**
531
+ * Duration of animation events.
532
+ * The value will be ignored when individual hide/show duration values are provided via the 'transition' setting.
533
+ * @default 200
534
+ */
535
+ duration: number;
536
+
537
+ /**
538
+ * Specify the final transition display type ('block', 'inline-block' etc) so that it doesn't have to be calculated.
539
+ * @default false
540
+ */
541
+ displayType: false | string;
542
+
543
+ /**
544
+ * Maximum glyph width, used to calculate search size.
545
+ * This is usually size of a "W" in your font in 'em'.
546
+ * @default 1.037
547
+ */
548
+ glyphWidth: number;
549
+
550
+ /**
551
+ * Whether option headers should have an additional divider line underneath when converted from '<select><optgroup>'.
552
+ * @default true
553
+ */
554
+ headerDivider: boolean;
555
+
556
+ /**
557
+ * Whether the dropdown should collapse upon selection of an actionable item.
558
+ * @default true
559
+ */
560
+ collapseOnActionable: boolean;
561
+
562
+ /**
563
+ * Allows customization of multi-select labels.
564
+ * @default true
565
+ */
566
+ label: object;
567
+
568
+ /**
569
+ * Time in milliseconds to debounce show or hide behavior when 'on: hover' is used, or when 'touch' is used..
570
+ * @default true
571
+ */
572
+ delay: object;
573
+
574
+ // endregion
575
+
576
+ // region Callbacks
577
+
578
+ /**
579
+ * Is called after a dropdown value changes.
580
+ * Receives the name and value of selection and the active menu element.
581
+ */
582
+ onChange(value: string, text: string, $choice: JQuery): void;
583
+
584
+ /**
585
+ * Is called after a dropdown selection is added using a multiple select dropdown, only receives the added value.
586
+ */
587
+ onAdd(addedValue: string, addedText: string, $addedChoice: JQuery): void;
588
+
589
+ /**
590
+ * Is called after a dropdown selection is removed using a multiple select dropdown, only receives the removed value.
591
+ */
592
+ onRemove(removedValue: string, removedText: string, $removedChoice: JQuery): void;
593
+
594
+ /**
595
+ * Is called after an actionable item has been selected.
596
+ */
597
+ onActionable(value: string, text: string, $choice: JQuery): void;
598
+
599
+ /**
600
+ * Is called before a search takes place to filter the items list.
601
+ * If 'false' is returned, the search and item filtering is cancelled.
602
+ */
603
+ onSearch(): void;
604
+
605
+ /**
606
+ * Is called after a label is selected by a user.
607
+ */
608
+ onLabelSelect($selectedLabels: JQuery): void;
609
+
610
+ /**
611
+ * Allows you to modify a label before it is added.
612
+ * Expects the jQ DOM element for a label to be returned.
613
+ */
614
+ onLabelCreate(value: string, text: string): void;
615
+
616
+ /**
617
+ * Called when a label is remove, 'return false;' will prevent the label from being removed.
618
+ */
619
+ onLabelRemove(value: string): void;
620
+
621
+ /**
622
+ * Is called after a dropdown is searched with no matching values.
623
+ */
624
+ onNoResults(searchValue: string): void;
625
+
626
+ /**
627
+ * Is called before a dropdown is shown.
628
+ * If 'false' is returned, dropdown will not be shown.
629
+ */
630
+ onShow(searchValue: string): void;
631
+
632
+ /**
633
+ * Is called before a dropdown is hidden.
634
+ * If 'false' is returned, dropdown will not be hidden.
635
+ */
636
+ onHide(): void;
637
+
638
+ // endregion
639
+
640
+ // region DOM Settings
641
+
642
+ /**
643
+ * Selectors used to find parts of a module.
644
+ */
645
+ selector: Dropdown.SelectorSettings;
646
+
647
+ /**
648
+ * Class names used to determine element state.
649
+ */
650
+ className: Dropdown.ClassNameSettings;
651
+
652
+ /**
653
+ * Class names used to determine element messages.
654
+ */
655
+ message: Dropdown.MessageSettings;
656
+
657
+ /**
658
+ *
659
+ */
660
+ regExp: Dropdown.RegExpSettings;
661
+
662
+ /**
663
+ *
664
+ */
665
+ metadata: Dropdown.MetadataSettings;
666
+
667
+ /**
668
+ *
669
+ */
670
+ fields: Dropdown.FieldsSettings;
671
+
672
+ /**
673
+ *
674
+ */
675
+ keys: Dropdown.KeysSettings;
676
+
677
+ // endregion
678
+
679
+ // region Debug Settings
680
+
681
+ /**
682
+ * Name used in log statements
683
+ */
684
+ name: string;
685
+
686
+ /**
687
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
688
+ */
689
+ namespace: string;
690
+
691
+ /**
692
+ * Silences all console output including error messages, regardless of other debug settings.
693
+ */
694
+ silent: boolean;
695
+
696
+ /**
697
+ * Debug output to console
698
+ */
699
+ debug: boolean;
700
+
701
+ /**
702
+ * Show console.table output with performance metrics
703
+ */
704
+ performance: boolean;
705
+
706
+ /**
707
+ * Debug output includes all internal behaviors
708
+ */
709
+ verbose: boolean;
710
+
711
+ error: Dropdown.ErrorSettings;
712
+
713
+ // endregion
714
+ }
715
+ }
716
+
717
+ namespace Dropdown {
718
+ type SelectorSettings = SelectorSettings.Param;
719
+
720
+ namespace SelectorSettings {
721
+ type Param = (
722
+ | Pick<_Impl, 'addition'>
723
+ | Pick<_Impl, 'divider'>
724
+ | Pick<_Impl, 'dropdown'>
725
+ | Pick<_Impl, 'icon'>
726
+ | Pick<_Impl, 'input'>
727
+ | Pick<_Impl, 'item'>
728
+ | Pick<_Impl, 'label'>
729
+ | Pick<_Impl, 'remove'>
730
+ | Pick<_Impl, 'siblingLabel'>
731
+ | Pick<_Impl, 'menu'>
732
+ | Pick<_Impl, 'message'>
733
+ | Pick<_Impl, 'menuIcon'>
734
+ | Pick<_Impl, 'search'>
735
+ | Pick<_Impl, 'sizer'>
736
+ | Pick<_Impl, 'text'>
737
+ | Pick<_Impl, 'unselectable'>
738
+ | Pick<_Impl, 'clearIcon'>
739
+ ) &
740
+ Partial<Pick<_Impl, keyof _Impl>>;
741
+
742
+ interface _Impl {
743
+ /**
744
+ * @default '.addition'
745
+ */
746
+ addition: string;
747
+
748
+ /**
749
+ * @default '.divider, .header'
750
+ */
751
+ divider: string;
752
+
753
+ /**
754
+ * @default '.ui.dropdown'
755
+ */
756
+ dropdown: string;
757
+
758
+ /**
759
+ * @default '> .dropdown.icon'
760
+ */
761
+ icon: string;
762
+
763
+ /**
764
+ * @default '> input[type="hidden"], > select'
765
+ */
766
+ input: string;
767
+
768
+ /**
769
+ * @default '.item'
770
+ */
771
+ item: string;
772
+
773
+ /**
774
+ * @default '> .label'
775
+ */
776
+ label: string;
777
+
778
+ /**
779
+ * @default '> .label > .delete.icon'
780
+ */
781
+ remove: string;
782
+
783
+ /**
784
+ * @default '.label'
785
+ */
786
+ siblingLabel: string;
787
+
788
+ /**
789
+ * @default '.menu'
790
+ */
791
+ menu: string;
792
+
793
+ /**
794
+ * @default '.message'
795
+ */
796
+ message: string;
797
+
798
+ /**
799
+ * @default '.dropdown.icon'
800
+ */
801
+ menuIcon: string;
802
+
803
+ /**
804
+ * @default 'input.search, .menu > .search > input'
805
+ */
806
+ search: string;
807
+
808
+ /**
809
+ * @default '> span.sizer'
810
+ */
811
+ sizer: string;
812
+
813
+ /**
814
+ * @default '> .text:not(.icon)'
815
+ */
816
+ text: string;
817
+
818
+ /**
819
+ * @default '.disabled, .filtered'
820
+ */
821
+ unselectable: string;
822
+
823
+ /**
824
+ * @default '> .remove.icon'
825
+ */
826
+ clearIcon: string;
827
+ }
828
+ }
829
+
830
+ type ClassNameSettings = ClassNameSettings.Param;
831
+
832
+ namespace ClassNameSettings {
833
+ type Param = (
834
+ | Pick<_Impl, 'active'>
835
+ | Pick<_Impl, 'addition'>
836
+ | Pick<_Impl, 'animating'>
837
+ | Pick<_Impl, 'description'>
838
+ | Pick<_Impl, 'descriptionVertical'>
839
+ | Pick<_Impl, 'disabled'>
840
+ | Pick<_Impl, 'empty'>
841
+ | Pick<_Impl, 'dropdown'>
842
+ | Pick<_Impl, 'filtered'>
843
+ | Pick<_Impl, 'hidden'>
844
+ | Pick<_Impl, 'icon'>
845
+ | Pick<_Impl, 'image'>
846
+ | Pick<_Impl, 'item'>
847
+ | Pick<_Impl, 'label'>
848
+ | Pick<_Impl, 'loading'>
849
+ | Pick<_Impl, 'menu'>
850
+ | Pick<_Impl, 'message'>
851
+ | Pick<_Impl, 'multiple'>
852
+ | Pick<_Impl, 'placeholder'>
853
+ | Pick<_Impl, 'sizer'>
854
+ | Pick<_Impl, 'search'>
855
+ | Pick<_Impl, 'selected'>
856
+ | Pick<_Impl, 'selection'>
857
+ | Pick<_Impl, 'text'>
858
+ | Pick<_Impl, 'upward'>
859
+ | Pick<_Impl, 'leftward'>
860
+ | Pick<_Impl, 'visible'>
861
+ | Pick<_Impl, 'clearable'>
862
+ | Pick<_Impl, 'noselection'>
863
+ | Pick<_Impl, 'delete'>
864
+ | Pick<_Impl, 'header'>
865
+ | Pick<_Impl, 'divider'>
866
+ | Pick<_Impl, 'groupIcon'>
867
+ | Pick<_Impl, 'unfilterable'>
868
+ | Pick<_Impl, 'actionable'>
869
+ ) &
870
+ Partial<Pick<_Impl, keyof _Impl>>;
871
+
872
+ interface _Impl {
873
+ /**
874
+ * @default 'active'
875
+ */
876
+ active: string;
877
+
878
+ /**
879
+ * @default 'addition'
880
+ */
881
+ addition: string;
882
+
883
+ /**
884
+ * @default 'animating'
885
+ */
886
+ animating: string;
887
+
888
+ /**
889
+ * @default 'description'
890
+ */
891
+ description: string;
892
+
893
+ /**
894
+ * @default 'vertical'
895
+ */
896
+ descriptionVertical: string;
897
+
898
+ /**
899
+ * @default 'disabled'
900
+ */
901
+ disabled: string;
902
+
903
+ /**
904
+ * @default 'empty'
905
+ */
906
+ empty: string;
907
+
908
+ /**
909
+ * @default 'ui dropdown'
910
+ */
911
+ dropdown: string;
912
+
913
+ /**
914
+ * @default 'filtered'
915
+ */
916
+ filtered: string;
917
+
918
+ /**
919
+ * @default 'hidden transition'
920
+ */
921
+ hidden: string;
922
+
923
+ /**
924
+ * @default 'icon'
925
+ */
926
+ icon: string;
927
+
928
+ /**
929
+ * @default 'image'
930
+ */
931
+ image: string;
932
+
933
+ /**
934
+ * @default 'item'
935
+ */
936
+ item: string;
937
+
938
+ /**
939
+ * @default 'ui label'
940
+ */
941
+ label: string;
942
+
943
+ /**
944
+ * @default 'loading'
945
+ */
946
+ loading: string;
947
+
948
+ /**
949
+ * @default 'menu'
950
+ */
951
+ menu: string;
952
+
953
+ /**
954
+ * @default 'message'
955
+ */
956
+ message: string;
957
+
958
+ /**
959
+ * @default 'multiple'
960
+ */
961
+ multiple: string;
962
+
963
+ /**
964
+ * @default 'default'
965
+ */
966
+ placeholder: string;
967
+
968
+ /**
969
+ * @default 'sizer'
970
+ */
971
+ sizer: string;
972
+
973
+ /**
974
+ * @default 'search'
975
+ */
976
+ search: string;
977
+
978
+ /**
979
+ * @default 'selected'
980
+ */
981
+ selected: string;
982
+
983
+ /**
984
+ * @default 'selection'
985
+ */
986
+ selection: string;
987
+
988
+ /**
989
+ * @default 'text'
990
+ */
991
+ text: string;
992
+
993
+ /**
994
+ * @default 'upward'
995
+ */
996
+ upward: string;
997
+
998
+ /**
999
+ * @default 'left'
1000
+ */
1001
+ leftward: string;
1002
+
1003
+ /**
1004
+ * @default 'visible'
1005
+ */
1006
+ visible: string;
1007
+
1008
+ /**
1009
+ * @default 'clearable'
1010
+ */
1011
+ clearable: string;
1012
+
1013
+ /**
1014
+ * @default 'noselection'
1015
+ */
1016
+ noselection: string;
1017
+
1018
+ /**
1019
+ * @default 'delete'
1020
+ */
1021
+ delete: string;
1022
+
1023
+ /**
1024
+ * @default 'header'
1025
+ */
1026
+ header: string;
1027
+
1028
+ /**
1029
+ * @default 'divider'
1030
+ */
1031
+ divider: string;
1032
+
1033
+ /**
1034
+ * @default ''
1035
+ */
1036
+ groupIcon: string;
1037
+
1038
+ /**
1039
+ * @default 'unfilterable'
1040
+ */
1041
+ unfilterable: string;
1042
+
1043
+ /**
1044
+ * @default 'actionable'
1045
+ */
1046
+ actionable: string;
1047
+ }
1048
+ }
1049
+
1050
+ type MessageSettings = MessageSettings.Param;
1051
+
1052
+ namespace MessageSettings {
1053
+ type Param = (
1054
+ | Pick<_Impl, 'addResult'>
1055
+ | Pick<_Impl, 'count'>
1056
+ | Pick<_Impl, 'maxSelections'>
1057
+ | Pick<_Impl, 'noResults'>
1058
+ | Pick<_Impl, 'serverError'>
1059
+ ) &
1060
+ Partial<Pick<_Impl, keyof _Impl>>;
1061
+
1062
+ interface _Impl {
1063
+ /**
1064
+ * @default 'Add <b>{term}</b>'
1065
+ */
1066
+ addResult: string;
1067
+
1068
+ /**
1069
+ * @default '{count} selected'
1070
+ */
1071
+ count: string;
1072
+
1073
+ /**
1074
+ * @default 'Max {maxCount} selections'
1075
+ */
1076
+ maxSelections: string;
1077
+
1078
+ /**
1079
+ * @default 'No results found.'
1080
+ */
1081
+ noResults: string;
1082
+
1083
+ /**
1084
+ * @default 'There was an error contacting the server'
1085
+ */
1086
+ serverError: string;
1087
+ }
1088
+ }
1089
+
1090
+ type RegExpSettings = RegExpSettings.Param;
1091
+
1092
+ namespace RegExpSettings {
1093
+ type Param = (
1094
+ | Pick<_Impl, 'escape'>
1095
+ ) &
1096
+ Partial<Pick<_Impl, keyof _Impl>>;
1097
+
1098
+ interface _Impl {
1099
+ /**
1100
+ * @default '/[-[\]{}()*+?.,\\^$|#\s]/g'
1101
+ */
1102
+ escape: string;
1103
+ }
1104
+ }
1105
+
1106
+ type MetadataSettings = MetadataSettings.Param;
1107
+
1108
+ namespace MetadataSettings {
1109
+ type Param = (
1110
+ | Pick<_Impl, 'defaultText'>
1111
+ | Pick<_Impl, 'defaultValue'>
1112
+ | Pick<_Impl, 'placeholderText'>
1113
+ | Pick<_Impl, 'text'>
1114
+ | Pick<_Impl, 'value'>
1115
+ ) &
1116
+ Partial<Pick<_Impl, keyof _Impl>>;
1117
+
1118
+ interface _Impl {
1119
+ /**
1120
+ * @default 'defaultText'
1121
+ */
1122
+ defaultText: string;
1123
+
1124
+ /**
1125
+ * @default 'defaultValue'
1126
+ */
1127
+ defaultValue: string;
1128
+
1129
+ /**
1130
+ * @default 'placeholderText'
1131
+ */
1132
+ placeholderText: string;
1133
+
1134
+ /**
1135
+ * @default 'text'
1136
+ */
1137
+ text: string;
1138
+
1139
+ /**
1140
+ * @default 'value'
1141
+ */
1142
+ value: string;
1143
+ }
1144
+ }
1145
+
1146
+ type FieldsSettings = FieldsSettings.Param;
1147
+
1148
+ namespace FieldsSettings {
1149
+ type Param = (
1150
+ | Pick<_Impl, 'remoteValues'>
1151
+ | Pick<_Impl, 'values'>
1152
+ | Pick<_Impl, 'disabled'>
1153
+ | Pick<_Impl, 'name'>
1154
+ | Pick<_Impl, 'description'>
1155
+ | Pick<_Impl, 'descriptionVertical'>
1156
+ | Pick<_Impl, 'value'>
1157
+ | Pick<_Impl, 'text'>
1158
+ | Pick<_Impl, 'type'>
1159
+ | Pick<_Impl, 'image'>
1160
+ | Pick<_Impl, 'imageClass'>
1161
+ | Pick<_Impl, 'icon'>
1162
+ | Pick<_Impl, 'iconClass'>
1163
+ | Pick<_Impl, 'class'>
1164
+ | Pick<_Impl, 'divider'>
1165
+ | Pick<_Impl, 'actionable'>
1166
+ ) &
1167
+ Partial<Pick<_Impl, keyof _Impl>>;
1168
+
1169
+ interface _Impl {
1170
+ /**
1171
+ * Grouping for api results
1172
+ * @default 'results'
1173
+ */
1174
+ remoteValues: string;
1175
+
1176
+ /**
1177
+ * Grouping for all dropdown values
1178
+ * @default 'values'
1179
+ */
1180
+ values: string;
1181
+
1182
+ /**
1183
+ * Whether value should be disabled
1184
+ * @default 'disabled'
1185
+ */
1186
+ disabled: string;
1187
+
1188
+ /**
1189
+ * Displayed dropdown text
1190
+ * @default 'name'
1191
+ */
1192
+ name: string;
1193
+
1194
+ /**
1195
+ * Displayed dropdown description
1196
+ * @default 'description'
1197
+ */
1198
+ description: string;
1199
+
1200
+ /**
1201
+ * Whether description should be vertical
1202
+ * @default 'descriptionVertical'
1203
+ */
1204
+ descriptionVertical: string;
1205
+
1206
+ /**
1207
+ * Actual dropdown value
1208
+ * @default 'value'
1209
+ */
1210
+ value: string;
1211
+
1212
+ /**
1213
+ * Displayed text when selected
1214
+ * @default 'text'
1215
+ */
1216
+ text: string;
1217
+
1218
+ /**
1219
+ * Type of dropdown element
1220
+ * @default 'type'
1221
+ */
1222
+ type: string;
1223
+
1224
+ /**
1225
+ * Optional image path
1226
+ * @default 'image'
1227
+ */
1228
+ image: string;
1229
+
1230
+ /**
1231
+ * Optional individual class for image
1232
+ * @default 'imageClass'
1233
+ */
1234
+ imageClass: string;
1235
+
1236
+ /**
1237
+ * Optional icon name
1238
+ * @default 'icon'
1239
+ */
1240
+ icon: string;
1241
+
1242
+ /**
1243
+ * Optional individual class for icon (for example to use flag instead)
1244
+ * @default 'iconClass'
1245
+ */
1246
+ iconClass: string;
1247
+
1248
+ /**
1249
+ * Optional individual class for item/header
1250
+ * @default 'class'
1251
+ */
1252
+ class: string;
1253
+
1254
+ /**
1255
+ * Optional divider append for group headers
1256
+ * @default 'divider'
1257
+ */
1258
+ divider: string;
1259
+
1260
+ /**
1261
+ * Optional actionable item
1262
+ * @default 'actionable'
1263
+ */
1264
+ actionable: string;
1265
+ }
1266
+ }
1267
+
1268
+ type KeysSettings = KeysSettings.Param;
1269
+
1270
+ namespace KeysSettings {
1271
+ type Param = (
1272
+ | Pick<_Impl, 'backspace'>
1273
+ | Pick<_Impl, 'deleteKey'>
1274
+ | Pick<_Impl, 'enter'>
1275
+ | Pick<_Impl, 'escape'>
1276
+ | Pick<_Impl, 'pageUp'>
1277
+ | Pick<_Impl, 'pageDown'>
1278
+ | Pick<_Impl, 'leftArrow'>
1279
+ | Pick<_Impl, 'upArrow'>
1280
+ | Pick<_Impl, 'rightArrow'>
1281
+ | Pick<_Impl, 'downArrow'>
1282
+ ) &
1283
+ Partial<Pick<_Impl, keyof _Impl>>;
1284
+
1285
+ interface _Impl {
1286
+ /**
1287
+ * @default 8
1288
+ */
1289
+ backspace: number;
1290
+
1291
+ /**
1292
+ * @default 46
1293
+ */
1294
+ deleteKey: number;
1295
+
1296
+ /**
1297
+ * @default 13
1298
+ */
1299
+ enter: number;
1300
+
1301
+ /**
1302
+ * @default 27
1303
+ */
1304
+ escape: number;
1305
+
1306
+ /**
1307
+ * @default 33
1308
+ */
1309
+ pageUp: number;
1310
+
1311
+ /**
1312
+ * @default 34
1313
+ */
1314
+ pageDown: number;
1315
+
1316
+ /**
1317
+ * @default 37
1318
+ */
1319
+ leftArrow: number;
1320
+
1321
+ /**
1322
+ * @default 38
1323
+ */
1324
+ upArrow: number;
1325
+
1326
+ /**
1327
+ * @default 39
1328
+ */
1329
+ rightArrow: number;
1330
+
1331
+ /**
1332
+ * @default 40
1333
+ */
1334
+ downArrow: number;
1335
+ }
1336
+ }
1337
+
1338
+ type ErrorSettings = ErrorSettings.Param;
1339
+
1340
+ namespace ErrorSettings {
1341
+ type Param = (
1342
+ | Pick<_Impl, 'action'>
1343
+ | Pick<_Impl, 'alreadySetup'>
1344
+ | Pick<_Impl, 'labels'>
1345
+ | Pick<_Impl, 'missingMultiple'>
1346
+ | Pick<_Impl, 'method'>
1347
+ | Pick<_Impl, 'noAPI'>
1348
+ | Pick<_Impl, 'noStorage'>
1349
+ | Pick<_Impl, 'noTransition'>
1350
+ | Pick<_Impl, 'noNormalize'>
1351
+ ) &
1352
+ Partial<Pick<_Impl, keyof _Impl>>;
1353
+
1354
+ interface _Impl {
1355
+ /**
1356
+ * @default 'You called a dropdown action that was not defined'
1357
+ */
1358
+ action: string;
1359
+
1360
+ /**
1361
+ * @default 'Once a select has been initialized behaviors must be called on the created ui dropdown'
1362
+ */
1363
+ alreadySetup: string;
1364
+
1365
+ /**
1366
+ * @default 'Allowing user additions currently requires the use of labels.'
1367
+ */
1368
+ labels: string;
1369
+
1370
+ /**
1371
+ * @default '<select> requires multiple property to be set to correctly preserve multiple values'
1372
+ */
1373
+ missingMultiple: string;
1374
+
1375
+ /**
1376
+ * @default 'The method you called is not defined.'
1377
+ */
1378
+ method: string;
1379
+
1380
+ /**
1381
+ * @default 'The API module is required to load resources remotely'
1382
+ */
1383
+ noAPI: string;
1384
+
1385
+ /**
1386
+ * @default 'Saving remote data requires session storage'
1387
+ */
1388
+ noStorage: string;
1389
+
1390
+ /**
1391
+ * @default 'This module requires ui transitions'
1392
+ */
1393
+ noTransition: string;
1394
+
1395
+ /**
1396
+ * @default '"ignoreDiacritics" setting will be ignored. Browser does not support String().normalize(). You may consider including as a polyfill.'
1397
+ */
1398
+ noNormalize: string;
1399
+ }
1400
+ }
1401
+ }
1402
+ }