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,378 @@
1
+ declare namespace FomanticUI {
2
+ interface Checkbox {
3
+ settings: CheckboxSettings;
4
+
5
+ /**
6
+ * Switches a checkbox from current state.
7
+ */
8
+ (behavior: 'toggle'): JQuery;
9
+
10
+ /**
11
+ * Set a checkbox state to checked.
12
+ */
13
+ (behavior: 'check'): JQuery;
14
+
15
+ /**
16
+ * Set a checkbox state to unchecked.
17
+ */
18
+ (behavior: 'uncheck'): JQuery;
19
+
20
+ /**
21
+ * Set as indeterminate checkbox.
22
+ */
23
+ (behavior: 'indeterminate'): JQuery;
24
+
25
+ /**
26
+ * Set as determinate checkbox.
27
+ */
28
+ (behavior: 'determinate'): JQuery;
29
+
30
+ /**
31
+ * Enable interaction with a checkbox.
32
+ */
33
+ (behavior: 'enable'): JQuery;
34
+
35
+ /**
36
+ * Set a checkbox state to checked without callbacks.
37
+ */
38
+ (behavior: 'set checked'): JQuery;
39
+
40
+ /**
41
+ * Set a checkbox state to unchecked without callbacks.
42
+ */
43
+ (behavior: 'set unchecked'): JQuery;
44
+
45
+ /**
46
+ * Set as indeterminate checkbox without callbacks.
47
+ */
48
+ (behavior: 'set indeterminate'): JQuery;
49
+
50
+ /**
51
+ * Set as determinate checkbox without callbacks.
52
+ */
53
+ (behavior: 'set determinate'): JQuery;
54
+
55
+ /**
56
+ * Enable interaction with a checkbox without callbacks.
57
+ */
58
+ (behavior: 'set enabled'): JQuery;
59
+
60
+ /**
61
+ * Disable interaction with a checkbox without callbacks.
62
+ */
63
+ (behavior: 'set disabled'): JQuery;
64
+
65
+ /**
66
+ * Attach checkbox events to another element.
67
+ */
68
+ (behavior: 'attach events', selector: string | JQuery, event?: string): JQuery;
69
+
70
+ /**
71
+ * Returns whether element is radio selection.
72
+ */
73
+ (behavior: 'is radio'): boolean;
74
+
75
+ /**
76
+ * Returns whether element is currently checked.
77
+ */
78
+ (behavior: 'is checked'): boolean;
79
+
80
+ /**
81
+ * Returns whether element is not checked.
82
+ */
83
+ (behavior: 'is unchecked'): boolean;
84
+
85
+ /**
86
+ * Returns whether element is able to be changed.
87
+ */
88
+ (behavior: 'can change'): boolean;
89
+
90
+ /**
91
+ * Returns whether element is able to be unchecked.
92
+ */
93
+ (behavior: 'can uncheck'): boolean;
94
+
95
+ /**
96
+ * Returns whether element can be checked (checking if already checked or `beforeChecked` would cancel).
97
+ */
98
+ (behavior: 'should allow check'): boolean;
99
+
100
+ /**
101
+ * Returns whether element can be unchecked (checking if already unchecked or `beforeUnchecked` would cancel).
102
+ */
103
+ (behavior: 'should allow uncheck'): boolean;
104
+
105
+ /**
106
+ * Returns whether element can be determinate (checking if already determinate or `beforeDeterminate` would cancel).
107
+ */
108
+ (behavior: 'should allow determinate'): boolean;
109
+
110
+ /**
111
+ * Returns whether element can be indeterminate (checking if already indeterminate or `beforeIndeterminate` would cancel).
112
+ */
113
+ (behavior: 'should allow indeterminate'): boolean;
114
+
115
+ (behavior: 'destroy'): JQuery;
116
+ <K extends keyof CheckboxSettings>(behavior: 'setting', name: K, value?: undefined): CheckboxSettings._Impl[K];
117
+ <K extends keyof CheckboxSettings>(behavior: 'setting', name: K, value: CheckboxSettings._Impl[K]): JQuery;
118
+ (behavior: 'setting', value: CheckboxSettings): JQuery;
119
+ (settings?: CheckboxSettings): JQuery;
120
+ }
121
+
122
+ /**
123
+ * @see {@link https://fomantic-ui.com/modules/checkbox.html#/settings}
124
+ */
125
+ type CheckboxSettings = CheckboxSettings.Param;
126
+
127
+ namespace CheckboxSettings {
128
+ type Param = (
129
+ | Pick<_Impl, 'uncheckable'>
130
+ | Pick<_Impl, 'fireOnInit'>
131
+ | Pick<_Impl, 'enableEnterKey'>
132
+ | Pick<_Impl, 'onChange'>
133
+ | Pick<_Impl, 'onChecked'>
134
+ | Pick<_Impl, 'onIndeterminate'>
135
+ | Pick<_Impl, 'onDeterminate'>
136
+ | Pick<_Impl, 'onUnchecked'>
137
+ | Pick<_Impl, 'beforeChecked'>
138
+ | Pick<_Impl, 'beforeIndeterminate'>
139
+ | Pick<_Impl, 'beforeDeterminate'>
140
+ | Pick<_Impl, 'beforeUnchecked'>
141
+ | Pick<_Impl, 'onEnable'>
142
+ | Pick<_Impl, 'onDisable'>
143
+ | Pick<_Impl, 'selector'>
144
+ | Pick<_Impl, 'className'>
145
+ | Pick<_Impl, 'name'>
146
+ | Pick<_Impl, 'namespace'>
147
+ | Pick<_Impl, 'silent'>
148
+ | Pick<_Impl, 'debug'>
149
+ | Pick<_Impl, 'performance'>
150
+ | Pick<_Impl, 'verbose'>
151
+ | Pick<_Impl, 'errors'>
152
+ ) &
153
+ Partial<Pick<_Impl, keyof _Impl>>;
154
+
155
+ interface _Impl {
156
+ // region Checkbox Settings
157
+
158
+ /**
159
+ * Setting to 'true'/'false' will determine whether an input will allow no selection. 'auto' will set disallow this behavior only for radio boxes.
160
+ * @default 'auto'
161
+ */
162
+ uncheckable: 'auto' | boolean;
163
+
164
+ /**
165
+ * Whether callbacks for checked status should be fired on init as well as change.
166
+ * @default false
167
+ */
168
+ fireOnInit: boolean;
169
+
170
+ /**
171
+ * Whether pressing the 'ENTER' Key on a focused checkbox should also toggle it.
172
+ * @default true
173
+ */
174
+ enableEnterKey: boolean;
175
+
176
+ // endregion
177
+
178
+ // region Callbacks
179
+
180
+ /**
181
+ * Callback after a checkbox is either checked or unchecked.
182
+ */
183
+ onChange(this: JQuery): void;
184
+
185
+ /**
186
+ * Callback after a checkbox is checked.
187
+ */
188
+ onChecked(this: JQuery): void;
189
+
190
+ /**
191
+ * Callback after a checkbox is set to indeterminate.
192
+ */
193
+ onIndeterminate(this: JQuery): void;
194
+
195
+ /**
196
+ * Callback after a checkbox is set to determinate.
197
+ */
198
+ onDeterminate(this: JQuery): void;
199
+
200
+ /**
201
+ * Callback after a checkbox is unchecked.
202
+ */
203
+ onUnchecked(this: JQuery): void;
204
+
205
+ /**
206
+ * Callback before a checkbox is checked. Can cancel change by returning 'false'.
207
+ */
208
+ beforeChecked(this: JQuery): void | false;
209
+
210
+ /**
211
+ * Callback before a checkbox is set to indeterminate. Can cancel change by returning 'false'.
212
+ */
213
+ beforeIndeterminate(this: JQuery): void | false;
214
+
215
+ /**
216
+ * Callback before a checkbox is set to determinate. Can cancel change by returning 'false'.
217
+ */
218
+ beforeDeterminate(this: JQuery): void | false;
219
+
220
+ /**
221
+ * Callback before a checkbox is unchecked. Can cancel change by returning 'false'.
222
+ */
223
+ beforeUnchecked(this: JQuery): void | false;
224
+
225
+ /**
226
+ * Callback after a checkbox is enabled.
227
+ */
228
+ onEnable(this: JQuery): void;
229
+
230
+ /**
231
+ * Callback after a checkbox is disabled.
232
+ */
233
+ onDisable(this: JQuery): void;
234
+
235
+ // endregion
236
+
237
+ // region DOM Settings
238
+
239
+ /**
240
+ * Selectors used to find parts of a module.
241
+ */
242
+ selector: Checkbox.SelectorSettings;
243
+
244
+ /**
245
+ * Class names used to determine element state.
246
+ */
247
+ className: Checkbox.ClassNameSettings;
248
+
249
+ // endregion
250
+
251
+ // region Debug Settings
252
+
253
+ /**
254
+ * Name used in log statements
255
+ */
256
+ name: string;
257
+
258
+ /**
259
+ * Event namespace. Makes sure module teardown does not effect other events attached to an element.
260
+ */
261
+ namespace: string;
262
+
263
+ /**
264
+ * Silences all console output including error messages, regardless of other debug settings.
265
+ */
266
+ silent: boolean;
267
+
268
+ /**
269
+ * Debug output to console
270
+ */
271
+ debug: boolean;
272
+
273
+ /**
274
+ * Show console.table output with performance metrics
275
+ */
276
+ performance: boolean;
277
+
278
+ /**
279
+ * Debug output includes all internal behaviors
280
+ */
281
+ verbose: boolean;
282
+
283
+ errors: Checkbox.ErrorSettings;
284
+
285
+ // endregion
286
+ }
287
+ }
288
+
289
+ namespace Checkbox {
290
+ type SelectorSettings = SelectorSettings.Param;
291
+
292
+ namespace SelectorSettings {
293
+ type Param = (Pick<_Impl, 'checkbox'> | Pick<_Impl, 'label'> | Pick<_Impl, 'input'> | Pick<_Impl, 'link'>) &
294
+ Partial<Pick<_Impl, keyof _Impl>>;
295
+
296
+ interface _Impl {
297
+ /**
298
+ * @default '.ui.checkbox'
299
+ */
300
+ checkbox: string;
301
+
302
+ /**
303
+ * @default 'label'
304
+ */
305
+ label: string;
306
+
307
+ /**
308
+ * @default 'input[type="checkbox"], input[type="radio"]'
309
+ */
310
+ input: string;
311
+
312
+ /**
313
+ * @default 'a[href]'
314
+ */
315
+ link: string;
316
+ }
317
+ }
318
+
319
+ type ClassNameSettings = ClassNameSettings.Param;
320
+
321
+ namespace ClassNameSettings {
322
+ type Param = (
323
+ | Pick<_Impl, 'checked'>
324
+ | Pick<_Impl, 'indeterminate'>
325
+ | Pick<_Impl, 'disabled'>
326
+ | Pick<_Impl, 'hidden'>
327
+ | Pick<_Impl, 'radio'>
328
+ | Pick<_Impl, 'readOnly'>
329
+ ) &
330
+ Partial<Pick<_Impl, keyof _Impl>>;
331
+
332
+ interface _Impl {
333
+ /**
334
+ * @default 'checked'
335
+ */
336
+ checked: string;
337
+
338
+ /**
339
+ * @default 'indeterminate'
340
+ */
341
+ indeterminate: string;
342
+
343
+ /**
344
+ * @default 'disabled'
345
+ */
346
+ disabled: string;
347
+
348
+ /**
349
+ * @default 'hidden'
350
+ */
351
+ hidden: string;
352
+
353
+ /**
354
+ * @default 'radio'
355
+ */
356
+ radio: string;
357
+
358
+ /**
359
+ * @default 'readOnly'
360
+ */
361
+ readOnly: string;
362
+ }
363
+ }
364
+
365
+ type ErrorSettings = ErrorSettings.Param;
366
+
367
+ namespace ErrorSettings {
368
+ type Param = Pick<_Impl, 'method'> & Partial<Pick<_Impl, keyof _Impl>>;
369
+
370
+ interface _Impl {
371
+ /**
372
+ * @default 'The method you called is not defined.'
373
+ */
374
+ method: string;
375
+ }
376
+ }
377
+ }
378
+ }