@northdata/fomantic-ui 2.8.722 → 2.9.401

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 (157) hide show
  1. package/lib/semantic-ui/dist/components/accordion.css +62 -69
  2. package/lib/semantic-ui/dist/components/accordion.js +595 -618
  3. package/lib/semantic-ui/dist/components/accordion.min.css +4 -4
  4. package/lib/semantic-ui/dist/components/accordion.min.js +6 -6
  5. package/lib/semantic-ui/dist/components/api.js +1225 -1177
  6. package/lib/semantic-ui/dist/components/api.min.js +6 -6
  7. package/lib/semantic-ui/dist/components/button.css +291 -634
  8. package/lib/semantic-ui/dist/components/button.min.css +4 -4
  9. package/lib/semantic-ui/dist/components/calendar.css +149 -33
  10. package/lib/semantic-ui/dist/components/calendar.js +2045 -1774
  11. package/lib/semantic-ui/dist/components/calendar.min.css +4 -4
  12. package/lib/semantic-ui/dist/components/calendar.min.js +6 -6
  13. package/lib/semantic-ui/dist/components/card.css +147 -537
  14. package/lib/semantic-ui/dist/components/card.min.css +4 -4
  15. package/lib/semantic-ui/dist/components/checkbox.css +215 -405
  16. package/lib/semantic-ui/dist/components/checkbox.js +888 -876
  17. package/lib/semantic-ui/dist/components/checkbox.min.css +4 -4
  18. package/lib/semantic-ui/dist/components/checkbox.min.js +6 -6
  19. package/lib/semantic-ui/dist/components/container.css +20 -21
  20. package/lib/semantic-ui/dist/components/container.min.css +4 -4
  21. package/lib/semantic-ui/dist/components/dimmer.css +76 -184
  22. package/lib/semantic-ui/dist/components/dimmer.js +732 -753
  23. package/lib/semantic-ui/dist/components/dimmer.min.css +4 -4
  24. package/lib/semantic-ui/dist/components/dimmer.min.js +6 -6
  25. package/lib/semantic-ui/dist/components/divider.css +81 -88
  26. package/lib/semantic-ui/dist/components/divider.min.css +4 -4
  27. package/lib/semantic-ui/dist/components/dropdown.css +431 -450
  28. package/lib/semantic-ui/dist/components/dropdown.js +4432 -4238
  29. package/lib/semantic-ui/dist/components/dropdown.min.css +4 -4
  30. package/lib/semantic-ui/dist/components/dropdown.min.js +6 -6
  31. package/lib/semantic-ui/dist/components/feed.css +130 -87
  32. package/lib/semantic-ui/dist/components/feed.min.css +4 -4
  33. package/lib/semantic-ui/dist/components/flag.css +541 -511
  34. package/lib/semantic-ui/dist/components/flag.min.css +4 -4
  35. package/lib/semantic-ui/dist/components/form.css +437 -476
  36. package/lib/semantic-ui/dist/components/form.js +2199 -2033
  37. package/lib/semantic-ui/dist/components/form.min.css +4 -4
  38. package/lib/semantic-ui/dist/components/form.min.js +6 -6
  39. package/lib/semantic-ui/dist/components/grid.css +151 -306
  40. package/lib/semantic-ui/dist/components/grid.min.css +4 -4
  41. package/lib/semantic-ui/dist/components/header.css +82 -99
  42. package/lib/semantic-ui/dist/components/header.min.css +4 -4
  43. package/lib/semantic-ui/dist/components/icon.css +2744 -2706
  44. package/lib/semantic-ui/dist/components/icon.min.css +4 -4
  45. package/lib/semantic-ui/dist/components/image.css +38 -73
  46. package/lib/semantic-ui/dist/components/image.min.css +4 -4
  47. package/lib/semantic-ui/dist/components/input.css +344 -254
  48. package/lib/semantic-ui/dist/components/input.min.css +4 -4
  49. package/lib/semantic-ui/dist/components/item.css +91 -139
  50. package/lib/semantic-ui/dist/components/item.min.css +4 -4
  51. package/lib/semantic-ui/dist/components/label.css +244 -267
  52. package/lib/semantic-ui/dist/components/label.min.css +4 -4
  53. package/lib/semantic-ui/dist/components/list.css +75 -113
  54. package/lib/semantic-ui/dist/components/list.min.css +4 -4
  55. package/lib/semantic-ui/dist/components/loader.css +142 -601
  56. package/lib/semantic-ui/dist/components/loader.min.css +4 -4
  57. package/lib/semantic-ui/dist/components/menu.css +398 -638
  58. package/lib/semantic-ui/dist/components/menu.min.css +9 -1
  59. package/lib/semantic-ui/dist/components/message.css +116 -332
  60. package/lib/semantic-ui/dist/components/message.min.css +4 -4
  61. package/lib/semantic-ui/dist/components/modal.css +149 -138
  62. package/lib/semantic-ui/dist/components/modal.js +1637 -1209
  63. package/lib/semantic-ui/dist/components/modal.min.css +4 -4
  64. package/lib/semantic-ui/dist/components/modal.min.js +6 -6
  65. package/lib/semantic-ui/dist/components/popup.css +284 -277
  66. package/lib/semantic-ui/dist/components/popup.js +1561 -1541
  67. package/lib/semantic-ui/dist/components/popup.min.css +4 -4
  68. package/lib/semantic-ui/dist/components/popup.min.js +6 -6
  69. package/lib/semantic-ui/dist/components/reset.css +12 -17
  70. package/lib/semantic-ui/dist/components/reset.min.css +4 -4
  71. package/lib/semantic-ui/dist/components/search.css +99 -137
  72. package/lib/semantic-ui/dist/components/search.js +1641 -1565
  73. package/lib/semantic-ui/dist/components/search.min.css +4 -4
  74. package/lib/semantic-ui/dist/components/search.min.js +6 -6
  75. package/lib/semantic-ui/dist/components/segment.css +149 -275
  76. package/lib/semantic-ui/dist/components/segment.min.css +4 -4
  77. package/lib/semantic-ui/dist/components/site.css +40 -48
  78. package/lib/semantic-ui/dist/components/site.js +455 -493
  79. package/lib/semantic-ui/dist/components/site.min.css +4 -4
  80. package/lib/semantic-ui/dist/components/site.min.js +6 -6
  81. package/lib/semantic-ui/dist/components/tab.css +16 -20
  82. package/lib/semantic-ui/dist/components/tab.js +967 -1001
  83. package/lib/semantic-ui/dist/components/tab.min.css +4 -4
  84. package/lib/semantic-ui/dist/components/tab.min.js +6 -6
  85. package/lib/semantic-ui/dist/components/table.css +465 -424
  86. package/lib/semantic-ui/dist/components/table.min.css +4 -4
  87. package/lib/semantic-ui/dist/components/transition.css +264 -1282
  88. package/lib/semantic-ui/dist/components/transition.js +1034 -1109
  89. package/lib/semantic-ui/dist/components/transition.min.css +4 -4
  90. package/lib/semantic-ui/dist/components/transition.min.js +6 -6
  91. package/lib/semantic-ui/dist/semantic-packed.css +5610 -6590
  92. package/lib/semantic-ui/dist/semantic.css +8547 -11697
  93. package/lib/semantic-ui/dist/semantic.full.css +14698 -11227
  94. package/lib/semantic-ui/dist/semantic.full.min.css +6 -262
  95. package/lib/semantic-ui/dist/semantic.js +19428 -19253
  96. package/lib/semantic-ui/dist/semantic.min.css +128 -128
  97. package/lib/semantic-ui/dist/semantic.min.js +6 -6
  98. package/lib/semantic-ui/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
  99. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.woff2 +0 -0
  100. package/lib/semantic-ui/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  101. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
  102. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  103. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff +0 -0
  104. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.woff2 +0 -0
  105. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
  106. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  107. package/lib/semantic-ui/types/fomantic-ui-accordion.d.ts +244 -0
  108. package/lib/semantic-ui/types/fomantic-ui-api.d.ts +561 -0
  109. package/lib/semantic-ui/types/fomantic-ui-calendar.d.ts +867 -0
  110. package/lib/semantic-ui/types/fomantic-ui-checkbox.d.ts +342 -0
  111. package/lib/semantic-ui/types/fomantic-ui-dimmer.d.ts +408 -0
  112. package/lib/semantic-ui/types/fomantic-ui-dropdown.d.ts +1221 -0
  113. package/lib/semantic-ui/types/fomantic-ui-embed.d.ts +343 -0
  114. package/lib/semantic-ui/types/fomantic-ui-flyout.d.ts +539 -0
  115. package/lib/semantic-ui/types/fomantic-ui-form.d.ts +759 -0
  116. package/lib/semantic-ui/types/fomantic-ui-modal.d.ts +567 -0
  117. package/lib/semantic-ui/types/fomantic-ui-nag.d.ts +270 -0
  118. package/lib/semantic-ui/types/fomantic-ui-popup.d.ts +549 -0
  119. package/lib/semantic-ui/types/fomantic-ui-progress.d.ts +465 -0
  120. package/lib/semantic-ui/types/fomantic-ui-rating.d.ts +187 -0
  121. package/lib/semantic-ui/types/fomantic-ui-search.d.ts +612 -0
  122. package/lib/semantic-ui/types/fomantic-ui-shape.d.ts +274 -0
  123. package/lib/semantic-ui/types/fomantic-ui-sidebar.d.ts +402 -0
  124. package/lib/semantic-ui/types/fomantic-ui-slider.d.ts +368 -0
  125. package/lib/semantic-ui/types/fomantic-ui-sticky.d.ts +215 -0
  126. package/lib/semantic-ui/types/fomantic-ui-tab.d.ts +361 -0
  127. package/lib/semantic-ui/types/fomantic-ui-toast.d.ts +526 -0
  128. package/lib/semantic-ui/types/fomantic-ui-transition.d.ts +389 -0
  129. package/lib/semantic-ui/types/fomantic-ui-visibility.d.ts +355 -0
  130. package/lib/semantic-ui/types/index.d.ts +63 -0
  131. package/package.json +19 -8
  132. package/lib/semantic-ui/dist/components/shape.css +0 -160
  133. package/lib/semantic-ui/dist/components/shape.js +0 -848
  134. package/lib/semantic-ui/dist/components/shape.min.css +0 -9
  135. package/lib/semantic-ui/dist/components/shape.min.js +0 -11
  136. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.eot +0 -0
  137. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.svg +0 -450
  138. package/lib/semantic-ui/dist/themes/basic/assets/fonts/icons.ttf +0 -0
  139. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
  140. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.svg +0 -3570
  141. package/lib/semantic-ui/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
  142. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.eot +0 -0
  143. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.svg +0 -4938
  144. package/lib/semantic-ui/dist/themes/default/assets/fonts/icons.ttf +0 -0
  145. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
  146. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.svg +0 -803
  147. package/lib/semantic-ui/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
  148. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons-local.ttf +0 -0
  149. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.svg +0 -200
  150. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.ttf +0 -0
  151. package/lib/semantic-ui/dist/themes/github/assets/fonts/octicons.woff +0 -0
  152. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.eot +0 -0
  153. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.svg +0 -2373
  154. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.ttf +0 -0
  155. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff +0 -0
  156. package/lib/semantic-ui/dist/themes/material/assets/fonts/icons.woff2 +0 -0
  157. /package/lib/semantic-ui/dist/themes/{default → famfamfam}/assets/images/flags.png +0 -0
@@ -0,0 +1,1221 @@
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): JQuery;
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'): JQuery;
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?: () => void, 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?: () => void, 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): JQuery;
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 | string[], preventChangeTrigger?: boolean, keepSearchTerm?: boolean): JQuery;
83
+
84
+ /**
85
+ * Remove value from selected
86
+ */
87
+ (behavior: 'remove selected', value: string): void;
88
+
89
+ /**
90
+ * Sets selected values to exactly specified values, removing current selection
91
+ */
92
+ (behavior: 'set exactly', values: string[]): JQuery;
93
+
94
+ /**
95
+ * Sets dropdown text to a value
96
+ */
97
+ (behavior: 'set text', text: string): JQuery;
98
+
99
+ /**
100
+ * Sets dropdown input to value (does not update display state).
101
+ * Set preventChangeTrigger to true to omit the change event (default: false).
102
+ */
103
+ (behavior: 'set value', value: string, preventChangeTrigger?: boolean): JQuery;
104
+
105
+ /**
106
+ * Returns current dropdown text
107
+ */
108
+ (behavior: 'get text'): string;
109
+
110
+ /**
111
+ * Returns current dropdown input value.
112
+ * When the dropdown was created out of a select tag, the value will always be an array, otherwise a string (delimited when multiple)
113
+ */
114
+ (behavior: 'get value'): string | string[];
115
+
116
+ /**
117
+ * Returns current dropdown input values as array.
118
+ * Useful for multiple selection dropdowns regardless if made out of a div or select
119
+ */
120
+ (behavior: 'get values'): string[];
121
+
122
+ /**
123
+ * Returns DOM element that matches a given input value
124
+ */
125
+ (behavior: 'get item', value: string): HTMLElement;
126
+
127
+ /**
128
+ * Returns current search term entered
129
+ */
130
+ (behavior: 'get query'): string;
131
+
132
+ /**
133
+ * Adds touch events to element
134
+ */
135
+ (behavior: 'bind touch events'): void;
136
+
137
+ /**
138
+ * Adds mouse events to element
139
+ */
140
+ (behavior: 'bind mouse events'): void;
141
+
142
+ /**
143
+ * Binds a click to document to determine if you click away from a dropdown
144
+ */
145
+ (behavior: 'bind intent'): void;
146
+
147
+ /**
148
+ * Unbinds document intent click
149
+ */
150
+ (behavior: 'unbind intent'): void;
151
+
152
+ /**
153
+ * Returns whether event occurred inside dropdown
154
+ */
155
+ (behavior: 'determine eventInModule'): boolean;
156
+
157
+ /**
158
+ * Triggers preset item selection action based on settings passing text/value
159
+ */
160
+ (behavior: 'determine select action', text: string, value: string): void;
161
+
162
+ /**
163
+ * Sets dropdown to active state
164
+ */
165
+ (behavior: 'set active'): void;
166
+
167
+ /**
168
+ * Sets dropdown to visible state
169
+ */
170
+ (behavior: 'set visible'): void;
171
+
172
+ /**
173
+ * Removes dropdown active state
174
+ */
175
+ (behavior: 'remove active'): void;
176
+
177
+ /**
178
+ * Removes dropdown visible state
179
+ */
180
+ (behavior: 'remove visible'): void;
181
+
182
+ /**
183
+ * Returns whether dropdown is a selection dropdown
184
+ */
185
+ (behavior: 'is selection'): boolean;
186
+
187
+ /**
188
+ * Returns whether dropdown is animated
189
+ */
190
+ (behavior: 'is animated'): boolean;
191
+
192
+ /**
193
+ * Returns whether dropdown is visible
194
+ */
195
+ (behavior: 'is visible'): boolean;
196
+
197
+ /**
198
+ * Returns whether dropdown is hidden
199
+ */
200
+ (behavior: 'is hidden'): boolean;
201
+
202
+ /**
203
+ * Returns dropdown value as set on page load
204
+ */
205
+ (behavior: 'get default text'): string;
206
+
207
+ /**
208
+ * Returns placeholder text
209
+ */
210
+ (behavior: 'get placeholder text'): string;
211
+
212
+ (behavior: 'destroy'): JQuery;
213
+ <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<DropdownSettings, keyof DropdownSettings>>;
214
+ <K extends keyof DropdownSettings>(behavior: 'setting', name: K, value: DropdownSettings[K]): JQuery;
215
+ (behavior: 'setting', value: Partial<Pick<DropdownSettings, keyof DropdownSettings>>): JQuery;
216
+ (settings?: Partial<Pick<DropdownSettings, keyof DropdownSettings>>): JQuery;
217
+ }
218
+
219
+ /**
220
+ * @see {@link http://fomantic-ui.com/modules/dropdown.html#/settings}
221
+ */
222
+ interface DropdownSettings {
223
+ // region Dropdown Settings
224
+
225
+ /**
226
+ * Event used to trigger dropdown (can be 'hover', 'click' or a custom event).
227
+ * @default 'click'
228
+ */
229
+ on: string;
230
+
231
+ /**
232
+ * Sets a default action to occur.
233
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#/usage}
234
+ * @default 'auto'
235
+ */
236
+ action:
237
+ | 'auto'
238
+ | 'activate'
239
+ | 'select'
240
+ | 'combo'
241
+ | 'nothing'
242
+ | 'hide'
243
+ | ((this: JQuery, text: string, value: string | false, element: JQuery) => void);
244
+
245
+ /**
246
+ * When specified allows you to initialize dropdown with specific values.
247
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#/usage}
248
+ * @default false
249
+ */
250
+ values: any;
251
+
252
+ /**
253
+ * Whether the dropdown value can be cleared by the user after being selected.
254
+ * @default false
255
+ */
256
+ clearable: boolean;
257
+
258
+ /**
259
+ * Can be set to an object to specify API settings for retrieving remote selection menu content from an API endpoint.
260
+ * @see {@link https://fomantic-ui.com/behaviors/api.html#/settings}
261
+ * @default false
262
+ */
263
+ apiSettings: false | Partial<Pick<APISettings, keyof APISettings>> | Partial<Pick<JQueryAjaxSettings, keyof JQueryAjaxSettings>>;
264
+
265
+ /**
266
+ * Whether dropdown should select new option when using keyboard shortcuts.
267
+ * Setting to 'false' will require 'enter' or left click to confirm a choice.
268
+ * @default true
269
+ */
270
+ selectOnKeydown: boolean;
271
+
272
+ /**
273
+ * The minimum characters for a search to begin showing results.
274
+ * @default 0
275
+ */
276
+ minCharacters: number;
277
+
278
+ /**
279
+ * Whether results returned from API should be filtered by query before being displayed.
280
+ * @default false
281
+ */
282
+ filterRemoteData: boolean;
283
+
284
+ /**
285
+ * When enabled, will automatically store selected name/value pairs in 'sessionStorage' to preserve user selection on page refresh.
286
+ * Disabling will clear remote dropdown values on refresh.
287
+ * @default true
288
+ */
289
+ saveRemoteData: boolean;
290
+
291
+ /**
292
+ * How long to wait after last user input to search remotely.
293
+ * @default 200
294
+ */
295
+ throttle: number;
296
+
297
+ /**
298
+ * Element context to use when checking whether can show when 'keepOnScreen: true'.
299
+ * @default 'window'
300
+ */
301
+ context: string | JQuery;
302
+
303
+ /**
304
+ * When set to 'auto' determines direction based on whether dropdown can fit on screen.
305
+ * Set to 'upward' or 'downward' to always force a direction.
306
+ * @default 'auto'
307
+ */
308
+ direction: 'auto' | 'upward' | 'downward';
309
+
310
+ /**
311
+ * Whether dropdown should try to keep itself on screen by checking whether menus display position in its 'context' (Default context is page).
312
+ * @default true
313
+ */
314
+ keepOnScreen: boolean;
315
+
316
+ /**
317
+ * When using 'search selection' specifies how to match values.
318
+ * @default 'both'
319
+ */
320
+ match: 'both' | 'value' | 'text';
321
+
322
+ /**
323
+ * 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.
324
+ * @default 'exact'
325
+ */
326
+ fullTextSearch: boolean | 'exact';
327
+
328
+ /**
329
+ * When activated, searches will also match results for base diacritic letters.
330
+ * For example when searching for 'a', it will also match 'á' or 'â' or 'å' and so on...
331
+ * It will also ignore diacritics for the searchterm, so if searching for 'ó', it will match 'ó', but also 'o', 'ô' or 'õ' and so on...
332
+ * @default false
333
+ */
334
+ ignoreDiacritics: boolean;
335
+
336
+ /**
337
+ * How to handle dividers in the dropdown while searching.
338
+ * Dividers are defined as all siblings of items that match the 'divider selector'.
339
+ * @see {@link https://fomantic-ui.com/modules/dropdown.html#dom-settings}
340
+ * @default false
341
+ */
342
+ hideDividers: boolean | 'empty';
343
+
344
+ /**
345
+ *
346
+ * @default 'auto'
347
+ */
348
+ placeholder: 'auto' | string | false;
349
+
350
+ /**
351
+ * Whether HTML included in dropdown values should be preserved.
352
+ * Allows icons to show up in selected value.
353
+ * @default true
354
+ */
355
+ preserveHTML: boolean;
356
+
357
+ /**
358
+ * Whether to sort values when creating a dropdown automatically from a select element.
359
+ * @default false
360
+ */
361
+ sortSelect: boolean | 'natural' | ((a: any, b: any) => number);
362
+
363
+ /**
364
+ * Whether search selection will force currently selected choice when element is blurred.
365
+ * If a 'select' tag with a required attribute was used, the 'forceSelection' setting will be set to 'true' automatically.
366
+ * @default false
367
+ */
368
+ forceSelection: boolean;
369
+
370
+ /**
371
+ * Whether search selection should allow users to add their own selections, works for single or multiselect.
372
+ * @default false
373
+ */
374
+ allowAdditions: boolean;
375
+
376
+ /**
377
+ * Whether values with non matching cases should be treated as identical when adding them to a dropdown.
378
+ * @default false
379
+ */
380
+ ignoreCase: boolean;
381
+
382
+ /**
383
+ * Whether values with non matching cases should be treated as identical when filtering the items.
384
+ * @default true
385
+ */
386
+ ignoreSearchCase: boolean;
387
+
388
+ /**
389
+ * Whether search result should highlight matching strings
390
+ * @default false
391
+ */
392
+ highlightMatches: boolean;
393
+
394
+ /**
395
+ * If disabled user additions will appear in the dropdown's menu using a specially formatted selection item formatted by 'templates.addition'.
396
+ * @default true
397
+ */
398
+ hideAdditions: boolean;
399
+
400
+ /**
401
+ * When set to a number, sets the maximum number of selections.
402
+ * @default false
403
+ */
404
+ maxSelections: false | number;
405
+
406
+ /**
407
+ * Whether multiselect should use labels. Must be set to 'true' when 'allowAdditions' is 'true'.
408
+ * @default true
409
+ */
410
+ useLabels: boolean;
411
+
412
+ /**
413
+ * When multiselect uses normal input tag, the values will be delimited with this character.
414
+ * Also used as the keyboard shortcut while entering multiple values.
415
+ * @default ','
416
+ */
417
+ delimiter: string;
418
+
419
+ /**
420
+ * Whether to show dropdown menu automatically on element focus.
421
+ * @default false
422
+ */
423
+ showOnFocus: boolean;
424
+
425
+ /**
426
+ * When set to 'true' will fire 'onChange' even when the value a user select matches the currently selected value.
427
+ * @default false
428
+ */
429
+ allowReselection: boolean;
430
+
431
+ /**
432
+ * Whether to allow the element to be navigable by keyboard, by automatically creating a 'tabindex'.
433
+ * @default true
434
+ */
435
+ allowTab: boolean;
436
+
437
+ /**
438
+ * Whether menu items with sub-menus (categories) should be selectable.
439
+ * @default false
440
+ */
441
+ allowCategorySelection: boolean;
442
+
443
+ /**
444
+ * Whether callbacks should fire when initializing dropdown values.
445
+ * @default false
446
+ */
447
+ fireOnInit: boolean;
448
+
449
+ /**
450
+ * Named transition to use when animating menu in and out.
451
+ * Defaults to 'slide down' or 'slide up' depending on dropdown direction. Fade and slide down are available without including 'ui transitions'.
452
+ *
453
+ * Alternatively you can provide an 'object' to set individual values for hide/show transitions as well as hide/show duration.
454
+ * @default 'auto'
455
+ */
456
+ transition: string | Dropdown.TransitionSettings;
457
+
458
+ /**
459
+ * Duration of animation events.
460
+ * The value will be ignored when individual hide/show duration values are provided via the 'transition' setting.
461
+ * @default 200
462
+ */
463
+ duration: number;
464
+
465
+ /**
466
+ * Specify the final transition display type ('block', 'inline-block' etc) so that it doesn't have to be calculated.
467
+ * @default false
468
+ */
469
+ displayType: false | string;
470
+
471
+ /**
472
+ * Whether option headers should have an additional divider line underneath when converted from '<select><optgroup>'.
473
+ * @default true
474
+ */
475
+ headerDivider: boolean;
476
+
477
+ /**
478
+ * Whether the dropdown should collapse upon selection of an actionable item.
479
+ * @default true
480
+ */
481
+ collapseOnActionable: boolean;
482
+
483
+ /**
484
+ * Whether the dropdown should collapse upon clicking the clearable icon.
485
+ * @default false
486
+ */
487
+ collapseOnClearable: 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
647
+ }
648
+
649
+ namespace Dropdown {
650
+ type TransitionSettings = Partial<Pick<Settings.Transition, keyof Settings.Transition>>;
651
+ type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
652
+ type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
653
+ type MessageSettings = Partial<Pick<Settings.Messages, keyof Settings.Messages>>;
654
+ type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
655
+ type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
656
+ type FieldsSettings = Partial<Pick<Settings.Fields, keyof Settings.Fields>>;
657
+ type KeysSettings = Partial<Pick<Settings.Keys, keyof Settings.Keys>>;
658
+ type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
659
+
660
+ namespace Settings {
661
+ interface Transition {
662
+
663
+ /**
664
+ * Named animation show event to used.
665
+ * Must be defined in CSS.
666
+ */
667
+ showMethod: string;
668
+
669
+ /**
670
+ * Duration of the CSS show transition animation
671
+ */
672
+ showDuration: number;
673
+
674
+ /**
675
+ * Named animation hide event to used.
676
+ * Must be defined in CSS.
677
+ */
678
+ hideMethod: string;
679
+
680
+ /**
681
+ * Duration of the CSS hide transition animation
682
+ */
683
+ hideDuration: number;
684
+ }
685
+
686
+ interface Selectors {
687
+ /**
688
+ * @default '.addition'
689
+ */
690
+ addition: string;
691
+
692
+ /**
693
+ * @default '.divider, .header'
694
+ */
695
+ divider: string;
696
+
697
+ /**
698
+ * @default '.ui.dropdown'
699
+ */
700
+ dropdown: string;
701
+
702
+ /**
703
+ * @default '> .dropdown.icon'
704
+ */
705
+ icon: string;
706
+
707
+ /**
708
+ * @default '> input[type="hidden"], > select'
709
+ */
710
+ input: string;
711
+
712
+ /**
713
+ * @default '.item'
714
+ */
715
+ item: string;
716
+
717
+ /**
718
+ * @default '> .label'
719
+ */
720
+ label: string;
721
+
722
+ /**
723
+ * @default '> .label > .delete.icon'
724
+ */
725
+ remove: string;
726
+
727
+ /**
728
+ * @default '.label'
729
+ */
730
+ siblingLabel: string;
731
+
732
+ /**
733
+ * @default '.menu'
734
+ */
735
+ menu: string;
736
+
737
+ /**
738
+ * @default '.message'
739
+ */
740
+ message: string;
741
+
742
+ /**
743
+ * @default '.dropdown.icon'
744
+ */
745
+ menuIcon: string;
746
+
747
+ /**
748
+ * @default 'input.search, .menu > .search > input'
749
+ */
750
+ search: string;
751
+
752
+ /**
753
+ * @default '> span.sizer'
754
+ */
755
+ sizer: string;
756
+
757
+ /**
758
+ * @default '> .text:not(.icon)'
759
+ */
760
+ text: string;
761
+
762
+ /**
763
+ * @default '.disabled, .filtered'
764
+ */
765
+ unselectable: string;
766
+
767
+ /**
768
+ * @default '> .remove.icon'
769
+ */
770
+ clearIcon: string;
771
+ }
772
+
773
+ interface ClassNames {
774
+ /**
775
+ * @default 'active'
776
+ */
777
+ active: string;
778
+
779
+ /**
780
+ * @default 'addition'
781
+ */
782
+ addition: string;
783
+
784
+ /**
785
+ * @default 'animating'
786
+ */
787
+ animating: string;
788
+
789
+ /**
790
+ * @default 'description'
791
+ */
792
+ description: string;
793
+
794
+ /**
795
+ * @default 'vertical'
796
+ */
797
+ descriptionVertical: string;
798
+
799
+ /**
800
+ * @default 'disabled'
801
+ */
802
+ disabled: string;
803
+
804
+ /**
805
+ * @default 'empty'
806
+ */
807
+ empty: string;
808
+
809
+ /**
810
+ * @default 'ui dropdown'
811
+ */
812
+ dropdown: string;
813
+
814
+ /**
815
+ * @default 'filtered'
816
+ */
817
+ filtered: string;
818
+
819
+ /**
820
+ * @default 'hidden transition'
821
+ */
822
+ hidden: string;
823
+
824
+ /**
825
+ * @default 'icon'
826
+ */
827
+ icon: string;
828
+
829
+ /**
830
+ * @default 'image'
831
+ */
832
+ image: string;
833
+
834
+ /**
835
+ * @default 'item'
836
+ */
837
+ item: string;
838
+
839
+ /**
840
+ * @default 'ui label'
841
+ */
842
+ label: string;
843
+
844
+ /**
845
+ * @default 'loading'
846
+ */
847
+ loading: string;
848
+
849
+ /**
850
+ * @default 'menu'
851
+ */
852
+ menu: string;
853
+
854
+ /**
855
+ * @default 'message'
856
+ */
857
+ message: string;
858
+
859
+ /**
860
+ * @default 'multiple'
861
+ */
862
+ multiple: string;
863
+
864
+ /**
865
+ * @default 'default'
866
+ */
867
+ placeholder: string;
868
+
869
+ /**
870
+ * @default 'sizer'
871
+ */
872
+ sizer: string;
873
+
874
+ /**
875
+ * @default 'search'
876
+ */
877
+ search: string;
878
+
879
+ /**
880
+ * @default 'selected'
881
+ */
882
+ selected: string;
883
+
884
+ /**
885
+ * @default 'selection'
886
+ */
887
+ selection: string;
888
+
889
+ /**
890
+ * @default 'text'
891
+ */
892
+ text: string;
893
+
894
+ /**
895
+ * @default 'upward'
896
+ */
897
+ upward: string;
898
+
899
+ /**
900
+ * @default 'left'
901
+ */
902
+ leftward: string;
903
+
904
+ /**
905
+ * @default 'visible'
906
+ */
907
+ visible: string;
908
+
909
+ /**
910
+ * @default 'clearable'
911
+ */
912
+ clearable: string;
913
+
914
+ /**
915
+ * @default 'noselection'
916
+ */
917
+ noselection: string;
918
+
919
+ /**
920
+ * @default 'delete'
921
+ */
922
+ delete: string;
923
+
924
+ /**
925
+ * @default 'header'
926
+ */
927
+ header: string;
928
+
929
+ /**
930
+ * @default 'divider'
931
+ */
932
+ divider: string;
933
+
934
+ /**
935
+ * @default ''
936
+ */
937
+ groupIcon: string;
938
+
939
+ /**
940
+ * @default 'unfilterable'
941
+ */
942
+ unfilterable: string;
943
+
944
+ /**
945
+ * @default 'actionable'
946
+ */
947
+ actionable: string;
948
+ }
949
+
950
+ interface Messages {
951
+ /**
952
+ * @default 'Add <b>{term}</b>'
953
+ */
954
+ addResult: string;
955
+
956
+ /**
957
+ * @default '{count} selected'
958
+ */
959
+ count: string;
960
+
961
+ /**
962
+ * @default 'Max {maxCount} selections'
963
+ */
964
+ maxSelections: string;
965
+
966
+ /**
967
+ * @default 'No results found.'
968
+ */
969
+ noResults: string;
970
+
971
+ /**
972
+ * @default 'There was an error contacting the server'
973
+ */
974
+ serverError: string;
975
+ }
976
+
977
+ interface RegExps {
978
+ /**
979
+ * @default '/[-[\]{}()*+?.,\\^$|#\s]/g'
980
+ */
981
+ escape: string;
982
+ }
983
+
984
+ interface Metadatas {
985
+ /**
986
+ * @default 'defaultText'
987
+ */
988
+ defaultText: string;
989
+
990
+ /**
991
+ * @default 'defaultValue'
992
+ */
993
+ defaultValue: string;
994
+
995
+ /**
996
+ * @default 'placeholderText'
997
+ */
998
+ placeholderText: string;
999
+
1000
+ /**
1001
+ * @default 'text'
1002
+ */
1003
+ text: string;
1004
+
1005
+ /**
1006
+ * @default 'value'
1007
+ */
1008
+ value: string;
1009
+ }
1010
+
1011
+ interface Fields {
1012
+ /**
1013
+ * Grouping for api results
1014
+ * @default 'results'
1015
+ */
1016
+ remoteValues: string;
1017
+
1018
+ /**
1019
+ * Grouping for all dropdown values
1020
+ * @default 'values'
1021
+ */
1022
+ values: string;
1023
+
1024
+ /**
1025
+ * Whether value should be disabled
1026
+ * @default 'disabled'
1027
+ */
1028
+ disabled: string;
1029
+
1030
+ /**
1031
+ * Displayed dropdown text
1032
+ * @default 'name'
1033
+ */
1034
+ name: string;
1035
+
1036
+ /**
1037
+ * Displayed dropdown description
1038
+ * @default 'description'
1039
+ */
1040
+ description: string;
1041
+
1042
+ /**
1043
+ * Whether description should be vertical
1044
+ * @default 'descriptionVertical'
1045
+ */
1046
+ descriptionVertical: string;
1047
+
1048
+ /**
1049
+ * Actual dropdown value
1050
+ * @default 'value'
1051
+ */
1052
+ value: string;
1053
+
1054
+ /**
1055
+ * Displayed text when selected
1056
+ * @default 'text'
1057
+ */
1058
+ text: string;
1059
+
1060
+ /**
1061
+ * custom data atttributes
1062
+ * @default 'data'
1063
+ */
1064
+ data: string;
1065
+
1066
+ /**
1067
+ * Type of dropdown element
1068
+ * @default 'type'
1069
+ */
1070
+ type: string;
1071
+
1072
+ /**
1073
+ * Optional image path
1074
+ * @default 'image'
1075
+ */
1076
+ image: string;
1077
+
1078
+ /**
1079
+ * Optional individual class for image
1080
+ * @default 'imageClass'
1081
+ */
1082
+ imageClass: string;
1083
+
1084
+ /**
1085
+ * Optional alt text for image
1086
+ * @default 'alt'
1087
+ */
1088
+ alt: string;
1089
+
1090
+ /**
1091
+ * Optional icon name
1092
+ * @default 'icon'
1093
+ */
1094
+ icon: string;
1095
+
1096
+ /**
1097
+ * Optional individual class for icon (for example to use flag instead)
1098
+ * @default 'iconClass'
1099
+ */
1100
+ iconClass: string;
1101
+
1102
+ /**
1103
+ * Optional individual class for item/header
1104
+ * @default 'class'
1105
+ */
1106
+ class: string;
1107
+
1108
+ /**
1109
+ * Optional divider append for group headers
1110
+ * @default 'divider'
1111
+ */
1112
+ divider: string;
1113
+
1114
+ /**
1115
+ * Optional actionable item
1116
+ * @default 'actionable'
1117
+ */
1118
+ actionable: string;
1119
+ }
1120
+
1121
+ interface Keys {
1122
+ /**
1123
+ * @default 8
1124
+ */
1125
+ backspace: number;
1126
+
1127
+ /**
1128
+ * @default 46
1129
+ */
1130
+ deleteKey: number;
1131
+
1132
+ /**
1133
+ * @default 13
1134
+ */
1135
+ enter: number;
1136
+
1137
+ /**
1138
+ * @default 27
1139
+ */
1140
+ escape: number;
1141
+
1142
+ /**
1143
+ * @default 33
1144
+ */
1145
+ pageUp: number;
1146
+
1147
+ /**
1148
+ * @default 34
1149
+ */
1150
+ pageDown: number;
1151
+
1152
+ /**
1153
+ * @default 37
1154
+ */
1155
+ leftArrow: number;
1156
+
1157
+ /**
1158
+ * @default 38
1159
+ */
1160
+ upArrow: number;
1161
+
1162
+ /**
1163
+ * @default 39
1164
+ */
1165
+ rightArrow: number;
1166
+
1167
+ /**
1168
+ * @default 40
1169
+ */
1170
+ downArrow: number;
1171
+ }
1172
+
1173
+ interface Errors {
1174
+ /**
1175
+ * @default 'You called a dropdown action that was not defined'
1176
+ */
1177
+ action: string;
1178
+
1179
+ /**
1180
+ * @default 'Once a select has been initialized behaviors must be called on the created ui dropdown'
1181
+ */
1182
+ alreadySetup: string;
1183
+
1184
+ /**
1185
+ * @default 'Allowing user additions currently requires the use of labels.'
1186
+ */
1187
+ labels: string;
1188
+
1189
+ /**
1190
+ * @default '<select> requires multiple property to be set to correctly preserve multiple values'
1191
+ */
1192
+ missingMultiple: string;
1193
+
1194
+ /**
1195
+ * @default 'The method you called is not defined.'
1196
+ */
1197
+ method: string;
1198
+
1199
+ /**
1200
+ * @default 'The API module is required to load resources remotely'
1201
+ */
1202
+ noAPI: string;
1203
+
1204
+ /**
1205
+ * @default 'Saving remote data requires session storage'
1206
+ */
1207
+ noStorage: string;
1208
+
1209
+ /**
1210
+ * @default 'This module requires ui transitions'
1211
+ */
1212
+ noTransition: string;
1213
+
1214
+ /**
1215
+ * @default '"ignoreDiacritics" setting will be ignored. Browser does not support String().normalize(). You may consider including as a polyfill.'
1216
+ */
1217
+ noNormalize: string;
1218
+ }
1219
+ }
1220
+ }
1221
+ }