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

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/README.md +5 -2
  2. package/SECURITY.md +2 -1
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +1 -1
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +1 -1
  10. package/dist/components/api.min.js +1 -1
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +1 -1
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +1 -1
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +1 -1
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +1 -1
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +1 -1
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +1 -1
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +1 -1
  36. package/dist/components/dropdown.js +1 -1
  37. package/dist/components/dropdown.min.css +1 -1
  38. package/dist/components/dropdown.min.js +1 -1
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +1 -1
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +1 -1
  43. package/dist/components/emoji.css +1 -1
  44. package/dist/components/emoji.min.css +1 -1
  45. package/dist/components/feed.css +1 -1
  46. package/dist/components/feed.min.css +1 -1
  47. package/dist/components/flag.css +1 -1
  48. package/dist/components/flag.min.css +1 -1
  49. package/dist/components/flyout.css +1 -1
  50. package/dist/components/flyout.js +1 -1
  51. package/dist/components/flyout.min.css +1 -1
  52. package/dist/components/flyout.min.js +1 -1
  53. package/dist/components/form.css +1 -1
  54. package/dist/components/form.js +1 -1
  55. package/dist/components/form.min.css +1 -1
  56. package/dist/components/form.min.js +1 -1
  57. package/dist/components/grid.css +1 -1
  58. package/dist/components/grid.min.css +1 -1
  59. package/dist/components/header.css +1 -1
  60. package/dist/components/header.min.css +1 -1
  61. package/dist/components/icon.css +1 -1
  62. package/dist/components/icon.min.css +1 -1
  63. package/dist/components/image.css +1 -1
  64. package/dist/components/image.min.css +1 -1
  65. package/dist/components/input.css +1 -1
  66. package/dist/components/input.min.css +1 -1
  67. package/dist/components/item.css +1 -1
  68. package/dist/components/item.min.css +1 -1
  69. package/dist/components/label.css +1 -1
  70. package/dist/components/label.min.css +1 -1
  71. package/dist/components/list.css +1 -1
  72. package/dist/components/list.min.css +1 -1
  73. package/dist/components/loader.css +1 -1
  74. package/dist/components/loader.min.css +1 -1
  75. package/dist/components/menu.css +1 -1
  76. package/dist/components/menu.min.css +1 -1
  77. package/dist/components/message.css +1 -1
  78. package/dist/components/message.min.css +1 -1
  79. package/dist/components/modal.css +1 -1
  80. package/dist/components/modal.js +1 -1
  81. package/dist/components/modal.min.css +1 -1
  82. package/dist/components/modal.min.js +1 -1
  83. package/dist/components/nag.css +1 -1
  84. package/dist/components/nag.js +1 -1
  85. package/dist/components/nag.min.css +1 -1
  86. package/dist/components/nag.min.js +1 -1
  87. package/dist/components/placeholder.css +1 -1
  88. package/dist/components/placeholder.min.css +1 -1
  89. package/dist/components/popup.css +1 -1
  90. package/dist/components/popup.js +1 -1
  91. package/dist/components/popup.min.css +1 -1
  92. package/dist/components/popup.min.js +1 -1
  93. package/dist/components/progress.css +1 -1
  94. package/dist/components/progress.js +1 -1
  95. package/dist/components/progress.min.css +1 -1
  96. package/dist/components/progress.min.js +1 -1
  97. package/dist/components/rail.css +1 -1
  98. package/dist/components/rail.min.css +1 -1
  99. package/dist/components/rating.css +1 -1
  100. package/dist/components/rating.js +1 -1
  101. package/dist/components/rating.min.css +1 -1
  102. package/dist/components/rating.min.js +1 -1
  103. package/dist/components/reset.css +1 -1
  104. package/dist/components/reset.min.css +1 -1
  105. package/dist/components/reveal.css +1 -1
  106. package/dist/components/reveal.min.css +1 -1
  107. package/dist/components/search.css +1 -1
  108. package/dist/components/search.js +1 -1
  109. package/dist/components/search.min.css +1 -1
  110. package/dist/components/search.min.js +1 -1
  111. package/dist/components/segment.css +1 -1
  112. package/dist/components/segment.min.css +1 -1
  113. package/dist/components/shape.css +1 -1
  114. package/dist/components/shape.js +1 -1
  115. package/dist/components/shape.min.css +1 -1
  116. package/dist/components/shape.min.js +1 -1
  117. package/dist/components/sidebar.css +1 -1
  118. package/dist/components/sidebar.js +1 -1
  119. package/dist/components/sidebar.min.css +1 -1
  120. package/dist/components/sidebar.min.js +1 -1
  121. package/dist/components/site.css +1 -1
  122. package/dist/components/site.js +1 -1
  123. package/dist/components/site.min.css +1 -1
  124. package/dist/components/site.min.js +1 -1
  125. package/dist/components/slider.css +1 -1
  126. package/dist/components/slider.js +1 -1
  127. package/dist/components/slider.min.css +1 -1
  128. package/dist/components/slider.min.js +1 -1
  129. package/dist/components/state.js +1 -1
  130. package/dist/components/state.min.js +1 -1
  131. package/dist/components/statistic.css +1 -1
  132. package/dist/components/statistic.min.css +1 -1
  133. package/dist/components/step.css +1 -1
  134. package/dist/components/step.min.css +1 -1
  135. package/dist/components/sticky.css +1 -1
  136. package/dist/components/sticky.js +1 -1
  137. package/dist/components/sticky.min.css +1 -1
  138. package/dist/components/sticky.min.js +1 -1
  139. package/dist/components/tab.css +1 -1
  140. package/dist/components/tab.js +1 -1
  141. package/dist/components/tab.min.css +1 -1
  142. package/dist/components/tab.min.js +1 -1
  143. package/dist/components/table.css +1 -1
  144. package/dist/components/table.min.css +1 -1
  145. package/dist/components/text.css +1 -1
  146. package/dist/components/text.min.css +1 -1
  147. package/dist/components/toast.css +1 -1
  148. package/dist/components/toast.js +1 -1
  149. package/dist/components/toast.min.css +1 -1
  150. package/dist/components/toast.min.js +1 -1
  151. package/dist/components/transition.css +1 -1
  152. package/dist/components/transition.js +1 -1
  153. package/dist/components/transition.min.css +1 -1
  154. package/dist/components/transition.min.js +1 -1
  155. package/dist/components/visibility.js +1 -1
  156. package/dist/components/visibility.min.js +1 -1
  157. package/dist/semantic.css +53 -53
  158. package/dist/semantic.js +26 -26
  159. package/dist/semantic.min.css +1 -1
  160. package/dist/semantic.min.js +1 -1
  161. package/package.json +1 -1
  162. package/types/fomantic-ui-accordion.d.ts +166 -172
  163. package/types/fomantic-ui-api.d.ts +418 -470
  164. package/types/fomantic-ui-calendar.d.ts +425 -479
  165. package/types/fomantic-ui-checkbox.d.ts +148 -194
  166. package/types/fomantic-ui-dimmer.d.ts +188 -265
  167. package/types/fomantic-ui-dropdown.d.ts +447 -666
  168. package/types/fomantic-ui-embed.d.ts +243 -289
  169. package/types/fomantic-ui-flyout.d.ts +259 -292
  170. package/types/fomantic-ui-form.d.ts +478 -607
  171. package/types/fomantic-ui-modal.d.ts +389 -471
  172. package/types/fomantic-ui-nag.d.ts +228 -277
  173. package/types/fomantic-ui-popup.d.ts +438 -534
  174. package/types/fomantic-ui-progress.d.ts +278 -352
  175. package/types/fomantic-ui-rating.d.ts +137 -168
  176. package/types/fomantic-ui-search.d.ts +359 -453
  177. package/types/fomantic-ui-shape.d.ts +152 -194
  178. package/types/fomantic-ui-sidebar.d.ts +315 -391
  179. package/types/fomantic-ui-slider.d.ts +259 -322
  180. package/types/fomantic-ui-sticky.d.ts +198 -244
  181. package/types/fomantic-ui-tab.d.ts +284 -350
  182. package/types/fomantic-ui-tests.ts +4 -2
  183. package/types/fomantic-ui-toast.d.ts +318 -424
  184. package/types/fomantic-ui-transition.d.ts +223 -273
  185. package/types/fomantic-ui-visibility.d.ts +286 -353
  186. package/types/index.d.ts +0 -1
@@ -215,531 +215,449 @@ declare namespace FomanticUI {
215
215
  (behavior: 'get placeholder text'): string;
216
216
 
217
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;
218
+ <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<DropdownSettings, keyof DropdownSettings>>;
219
+ <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value: DropdownSettings[K]): JQuery;
220
+ (behavior: 'setting', value: Partial<Pick<DropdownSettings, keyof DropdownSettings>>): JQuery;
221
+ (settings?: Partial<Pick<DropdownSettings, keyof DropdownSettings>>): JQuery;
222
222
  }
223
223
 
224
224
  /**
225
225
  * @see {@link http://fomantic-ui.com/modules/dropdown.html#/settings}
226
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
- }
227
+ interface DropdownSettings {
228
+ // region Dropdown Settings
229
+
230
+ /**
231
+ * Event used to trigger dropdown (can be 'hover', 'click' or a custom event).
232
+ * @default 'click'
233
+ */
234
+ on: string;
235
+
236
+ /**
237
+ * Sets a default action to occur.
238
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#/usage}
239
+ * @default 'auto'
240
+ */
241
+ action:
242
+ | 'auto'
243
+ | 'activate'
244
+ | 'select'
245
+ | 'combo'
246
+ | 'nothing'
247
+ | 'hide'
248
+ | ((this: JQuery, text: string, value: string | false, element: JQuery) => void);
249
+
250
+ /**
251
+ * When specified allows you to initialize dropdown with specific values.
252
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#/usage}
253
+ * @default false
254
+ */
255
+ values: any;
256
+
257
+ /**
258
+ * Whether the dropdown value can be cleared by the user after being selected.
259
+ * @default false
260
+ */
261
+ clearable: boolean;
262
+
263
+ /**
264
+ * Can be set to an object to specify API settings for retrieving remote selection menu content from an API endpoint.
265
+ * @see {@link https://fomantic-ui.com/behaviors/api.html#/settings}
266
+ * @default false
267
+ */
268
+ apiSettings: false | APISettings;
269
+
270
+ /**
271
+ * Whether dropdown should select new option when using keyboard shortcuts.
272
+ * Setting to 'false' will require 'enter' or left click to confirm a choice.
273
+ * @default true
274
+ */
275
+ selectOnKeydown: boolean;
276
+
277
+ /**
278
+ * The minimum characters for a search to begin showing results.
279
+ * @default 0
280
+ */
281
+ minCharacters: number;
282
+
283
+ /**
284
+ * Whether results returned from API should be filtered by query before being displayed.
285
+ * @default false
286
+ */
287
+ filterRemoteData: boolean;
288
+
289
+ /**
290
+ * When enabled, will automatically store selected name/value pairs in 'sessionStorage' to preserve user selection on page refresh.
291
+ * Disabling will clear remote dropdown values on refresh.
292
+ * @default true
293
+ */
294
+ saveRemoteData: boolean;
295
+
296
+ /**
297
+ * How long to wait after last user input to search remotely.
298
+ * @default 200
299
+ */
300
+ throttle: number;
301
+
302
+ /**
303
+ * Element context to use when checking whether can show when 'keepOnScreen: true'.
304
+ * @default 'window'
305
+ */
306
+ context: string | JQuery;
307
+
308
+ /**
309
+ * When set to 'auto' determines direction based on whether dropdown can fit on screen.
310
+ * Set to 'upward' or 'downward' to always force a direction.
311
+ * @default 'auto'
312
+ */
313
+ direction: 'auto' | 'upward' | 'downward';
314
+
315
+ /**
316
+ * Whether dropdown should try to keep itself on screen by checking whether menus display position in its 'context' (Default context is page).
317
+ * @default true
318
+ */
319
+ keepOnScreen: boolean;
320
+
321
+ /**
322
+ * When using 'search selection' specifies how to match values.
323
+ * @default 'both'
324
+ */
325
+ match: 'both' | 'value' | 'text';
326
+
327
+ /**
328
+ * 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.
329
+ * @default 'exact'
330
+ */
331
+ fullTextSearch: boolean | 'exact';
332
+
333
+ /**
334
+ * When activated, searches will also match results for base diacritic letters.
335
+ * For example when searching for 'a', it will also match 'á' or 'â' or 'å' and so on...
336
+ * It will also ignore diacritics for the searchterm, so if searching for 'ó', it will match 'ó', but also 'o', 'ô' or 'õ' and so on...
337
+ * @default false
338
+ */
339
+ ignoreDiacritics: boolean;
340
+
341
+ /**
342
+ * How to handle dividers in the dropdown while searching.
343
+ * Dividers are defined as all siblings of items that match the 'divider selector'.
344
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#dom-settings}
345
+ * @default false
346
+ */
347
+ hideDividers: boolean | 'empty';
348
+
349
+ /**
350
+ *
351
+ * @default 'auto'
352
+ */
353
+ placeholder: 'auto' | String | false;
354
+
355
+ /**
356
+ * Whether HTML included in dropdown values should be preserved.
357
+ * Allows icons to show up in selected value.
358
+ * @default true
359
+ */
360
+ preserveHTML: boolean;
361
+
362
+ /**
363
+ * Whether to sort values when creating a dropdown automatically from a select element.
364
+ * @default false
365
+ */
366
+ sortSelect: boolean | 'natural' | Function;
367
+
368
+ /**
369
+ * Whether search selection will force currently selected choice when element is blurred.
370
+ * If a 'select' tag with a required attribute was used, the 'forceSelection' setting will be set to 'true' automatically.
371
+ * @default false
372
+ */
373
+ forceSelection: boolean;
374
+
375
+ /**
376
+ * Whether search selection should allow users to add their own selections, works for single or multiselect.
377
+ * @default false
378
+ */
379
+ allowAdditions: boolean;
380
+
381
+ /**
382
+ * Whether values with non matching cases should be treated as identical when adding them to a dropdown.
383
+ * @default false
384
+ */
385
+ ignoreCase: boolean;
386
+
387
+ /**
388
+ * Whether values with non matching cases should be treated as identical when filtering the items.
389
+ * @default true
390
+ */
391
+ ignoreSearchCase: boolean;
392
+
393
+ /**
394
+ * If disabled user additions will appear in the dropdown's menu using a specially formatted selection item formatted by 'templates.addition'.
395
+ * @default true
396
+ */
397
+ hideAdditions: boolean;
398
+
399
+ /**
400
+ * When set to a number, sets the maximum number of selections.
401
+ * @default false
402
+ */
403
+ maxSelections: false | number;
404
+
405
+ /**
406
+ * Whether multiselect should use labels. Must be set to 'true' when 'allowAdditions' is 'true'.
407
+ * @default true
408
+ */
409
+ useLabels: boolean;
410
+
411
+ /**
412
+ * When multiselect uses normal input tag, the values will be delimited with this character.
413
+ * Also used as the keyboard shortcut while entering multiple values.
414
+ * @default ','
415
+ */
416
+ delimiter: string;
417
+
418
+ /**
419
+ * Whether to show dropdown menu automatically on element focus.
420
+ * @default false
421
+ */
422
+ showOnFocus: boolean;
423
+
424
+ /**
425
+ * When set to 'true' will fire 'onChange' even when the value a user select matches the currently selected value.
426
+ * @default false
427
+ */
428
+ allowReselection: boolean;
429
+
430
+ /**
431
+ * Whether to allow the element to be navigable by keyboard, by automatically creating a 'tabindex'.
432
+ * @default true
433
+ */
434
+ allowTab: boolean;
435
+
436
+ /**
437
+ * Whether menu items with sub-menus (categories) should be selectable.
438
+ * @default false
439
+ */
440
+ allowCategorySelection: boolean;
441
+
442
+ /**
443
+ * Whether callbacks should fire when initializing dropdown values.
444
+ * @default false
445
+ */
446
+ fireOnInit: boolean;
447
+
448
+ /**
449
+ * Named transition to use when animating menu in and out.
450
+ * Defaults to 'slide down' or 'slide up' depending on dropdown direction. Fade and slide down are available without including 'ui transitions'.
451
+ *
452
+ * Alternatively you can provide an 'object' to set individual values for hide/show transitions as well as hide/show duration.
453
+ * @default 'auto'
454
+ */
455
+ transition: boolean | object;
456
+
457
+ /**
458
+ * Duration of animation events.
459
+ * The value will be ignored when individual hide/show duration values are provided via the 'transition' setting.
460
+ * @default 200
461
+ */
462
+ duration: number;
463
+
464
+ /**
465
+ * Specify the final transition display type ('block', 'inline-block' etc) so that it doesn't have to be calculated.
466
+ * @default false
467
+ */
468
+ displayType: false | string;
469
+
470
+ /**
471
+ * Maximum glyph width, used to calculate search size.
472
+ * This is usually size of a "W" in your font in 'em'.
473
+ * @default 1.037
474
+ */
475
+ glyphWidth: number;
476
+
477
+ /**
478
+ * Whether option headers should have an additional divider line underneath when converted from '<select><optgroup>'.
479
+ * @default true
480
+ */
481
+ headerDivider: boolean;
482
+
483
+ /**
484
+ * Whether the dropdown should collapse upon selection of an actionable item.
485
+ * @default true
486
+ */
487
+ collapseOnActionable: boolean;
488
+
489
+ /**
490
+ * Allows customization of multi-select labels.
491
+ * @default true
492
+ */
493
+ label: object;
494
+
495
+ /**
496
+ * Time in milliseconds to debounce show or hide behavior when 'on: hover' is used, or when 'touch' is used..
497
+ * @default true
498
+ */
499
+ delay: object;
500
+
501
+ // endregion
502
+
503
+ // region Callbacks
504
+
505
+ /**
506
+ * Is called after a dropdown value changes.
507
+ * Receives the name and value of selection and the active menu element.
508
+ */
509
+ onChange(value: string, text: string, $choice: JQuery): void;
510
+
511
+ /**
512
+ * Is called after a dropdown selection is added using a multiple select dropdown, only receives the added value.
513
+ */
514
+ onAdd(addedValue: string, addedText: string, $addedChoice: JQuery): void;
515
+
516
+ /**
517
+ * Is called after a dropdown selection is removed using a multiple select dropdown, only receives the removed value.
518
+ */
519
+ onRemove(removedValue: string, removedText: string, $removedChoice: JQuery): void;
520
+
521
+ /**
522
+ * Is called after an actionable item has been selected.
523
+ */
524
+ onActionable(value: string, text: string, $choice: JQuery): void;
525
+
526
+ /**
527
+ * Is called before a search takes place to filter the items list.
528
+ * If 'false' is returned, the search and item filtering is cancelled.
529
+ */
530
+ onSearch(): void;
531
+
532
+ /**
533
+ * Is called after a label is selected by a user.
534
+ */
535
+ onLabelSelect($selectedLabels: JQuery): void;
536
+
537
+ /**
538
+ * Allows you to modify a label before it is added.
539
+ * Expects the jQ DOM element for a label to be returned.
540
+ */
541
+ onLabelCreate(value: string, text: string): void;
542
+
543
+ /**
544
+ * Called when a label is remove, 'return false;' will prevent the label from being removed.
545
+ */
546
+ onLabelRemove(value: string): void;
547
+
548
+ /**
549
+ * Is called after a dropdown is searched with no matching values.
550
+ */
551
+ onNoResults(searchValue: string): void;
552
+
553
+ /**
554
+ * Is called before a dropdown is shown.
555
+ * If 'false' is returned, dropdown will not be shown.
556
+ */
557
+ onShow(searchValue: string): void;
558
+
559
+ /**
560
+ * Is called before a dropdown is hidden.
561
+ * If 'false' is returned, dropdown will not be hidden.
562
+ */
563
+ onHide(): void;
564
+
565
+ // endregion
566
+
567
+ // region DOM Settings
568
+
569
+ /**
570
+ * Selectors used to find parts of a module.
571
+ */
572
+ selector: Dropdown.SelectorSettings;
573
+
574
+ /**
575
+ * Class names used to determine element state.
576
+ */
577
+ className: Dropdown.ClassNameSettings;
578
+
579
+ /**
580
+ * Class names used to determine element messages.
581
+ */
582
+ message: Dropdown.MessageSettings;
583
+
584
+ /**
585
+ *
586
+ */
587
+ regExp: Dropdown.RegExpSettings;
588
+
589
+ /**
590
+ *
591
+ */
592
+ metadata: Dropdown.MetadataSettings;
593
+
594
+ /**
595
+ *
596
+ */
597
+ fields: Dropdown.FieldsSettings;
598
+
599
+ /**
600
+ *
601
+ */
602
+ keys: Dropdown.KeysSettings;
603
+
604
+ // endregion
605
+
606
+ // region Debug Settings
607
+
608
+ /**
609
+ * Name used in log statements
610
+ * @default 'Dropdown'
611
+ */
612
+ name: string;
613
+
614
+ /**
615
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
616
+ * @default 'dropdown'
617
+ */
618
+ namespace: string;
619
+
620
+ /**
621
+ * Silences all console output including error messages, regardless of other debug settings.
622
+ * @default false
623
+ */
624
+ silent: boolean;
625
+
626
+ /**
627
+ * Debug output to console
628
+ * @default false
629
+ */
630
+ debug: boolean;
631
+
632
+ /**
633
+ * Show console.table output with performance metrics
634
+ * @default true
635
+ */
636
+ performance: boolean;
637
+
638
+ /**
639
+ * Debug output includes all internal behaviors
640
+ * @default false
641
+ */
642
+ verbose: boolean;
643
+
644
+ error: Dropdown.ErrorSettings;
645
+
646
+ // endregion
715
647
  }
716
648
 
717
649
  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 {
650
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
651
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
652
+ type MessageSettings = Partial<Pick<Settings.Messages, keyof Settings.Messages>>;
653
+ type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
654
+ type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
655
+ type FieldsSettings = Partial<Pick<Settings.Fields, keyof Settings.Fields>>;
656
+ type KeysSettings = Partial<Pick<Settings.Keys, keyof Settings.Keys>>;
657
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
658
+
659
+ namespace Settings {
660
+ interface Selectors {
743
661
  /**
744
662
  * @default '.addition'
745
663
  */
@@ -825,51 +743,8 @@ declare namespace FomanticUI {
825
743
  */
826
744
  clearIcon: string;
827
745
  }
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 {
746
+
747
+ interface ClassNames {
873
748
  /**
874
749
  * @default 'active'
875
750
  */
@@ -1045,21 +920,8 @@ declare namespace FomanticUI {
1045
920
  */
1046
921
  actionable: string;
1047
922
  }
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 {
923
+
924
+ interface Messages {
1063
925
  /**
1064
926
  * @default 'Add <b>{term}</b>'
1065
927
  */
@@ -1085,37 +947,15 @@ declare namespace FomanticUI {
1085
947
  */
1086
948
  serverError: string;
1087
949
  }
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
950
 
1098
- interface _Impl {
951
+ interface RegExps {
1099
952
  /**
1100
953
  * @default '/[-[\]{}()*+?.,\\^$|#\s]/g'
1101
954
  */
1102
955
  escape: string;
1103
956
  }
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 {
957
+
958
+ interface Metadatas {
1119
959
  /**
1120
960
  * @default 'defaultText'
1121
961
  */
@@ -1141,32 +981,8 @@ declare namespace FomanticUI {
1141
981
  */
1142
982
  value: string;
1143
983
  }
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 {
984
+
985
+ interface Fields {
1170
986
  /**
1171
987
  * Grouping for api results
1172
988
  * @default 'results'
@@ -1263,26 +1079,8 @@ declare namespace FomanticUI {
1263
1079
  */
1264
1080
  actionable: string;
1265
1081
  }
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 {
1082
+
1083
+ interface Keys {
1286
1084
  /**
1287
1085
  * @default 8
1288
1086
  */
@@ -1333,25 +1131,8 @@ declare namespace FomanticUI {
1333
1131
  */
1334
1132
  downArrow: number;
1335
1133
  }
1336
- }
1337
1134
 
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 {
1135
+ interface Errors {
1355
1136
  /**
1356
1137
  * @default 'You called a dropdown action that was not defined'
1357
1138
  */