fomantic-ui 2.9.4-beta.3 → 2.9.4-beta.30
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.
- package/.all-contributorsrc +20 -1
- package/.eslintrc.js +17 -0
- package/.github/workflows/ci.yml +5 -5
- package/.github/workflows/nightly.yml +1 -1
- package/.github/workflows/release.yml +1 -1
- package/CONTRIBUTORS.md +2 -0
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +4 -2
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +7 -3
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +19 -3
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +4 -2
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +4 -2
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +4 -2
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +15 -17
- package/dist/components/dropdown.js +18 -8
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +4 -2
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/emoji.css +1 -1
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +4 -2
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +15 -5
- package/dist/components/form.js +42 -17
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +5 -5
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +4 -1
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +30 -10
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -2
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/menu.css +1 -2
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +7 -3
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +7 -3
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -2
- package/dist/components/popup.js +10 -4
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +4 -2
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +4 -2
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +7 -3
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +4 -2
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +4 -2
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +4 -2
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +4 -2
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +4 -2
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +4 -2
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +4 -2
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +4 -2
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +7 -3
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +4 -2
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +143 -92
- package/dist/semantic.js +175 -80
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/dist/themes/basic/assets/fonts/LICENSE.txt +91 -0
- package/dist/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
- package/dist/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
- package/dist/themes/github/assets/fonts/LICENSE.txt +94 -0
- package/dist/themes/material/assets/fonts/LICENSE.txt +202 -0
- package/package.json +3 -3
- package/src/definitions/behaviors/api.js +6 -2
- package/src/definitions/behaviors/form.js +41 -16
- package/src/definitions/behaviors/state.js +3 -1
- package/src/definitions/behaviors/visibility.js +3 -1
- package/src/definitions/collections/form.less +14 -4
- package/src/definitions/collections/grid.less +4 -4
- package/src/definitions/elements/button.less +25 -3
- package/src/definitions/elements/header.less +5 -0
- package/src/definitions/elements/input.less +14 -6
- package/src/definitions/globals/site.js +3 -1
- package/src/definitions/modules/accordion.js +3 -1
- package/src/definitions/modules/calendar.js +3 -1
- package/src/definitions/modules/checkbox.js +3 -1
- package/src/definitions/modules/dimmer.js +3 -1
- package/src/definitions/modules/dropdown.js +17 -7
- package/src/definitions/modules/dropdown.less +2 -2
- package/src/definitions/modules/embed.js +3 -1
- package/src/definitions/modules/flyout.js +3 -1
- package/src/definitions/modules/modal.js +6 -2
- package/src/definitions/modules/nag.js +6 -2
- package/src/definitions/modules/popup.js +9 -3
- package/src/definitions/modules/progress.js +3 -1
- package/src/definitions/modules/rating.js +3 -1
- package/src/definitions/modules/search.js +6 -2
- package/src/definitions/modules/shape.js +3 -1
- package/src/definitions/modules/sidebar.js +3 -1
- package/src/definitions/modules/slider.js +3 -1
- package/src/definitions/modules/sticky.js +3 -1
- package/src/definitions/modules/tab.js +3 -1
- package/src/definitions/modules/toast.js +3 -1
- package/src/definitions/modules/transition.js +6 -2
- package/src/themes/basic/assets/fonts/LICENSE.txt +91 -0
- package/src/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
- package/src/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
- package/src/themes/default/collections/form.variables +1 -0
- package/src/themes/default/elements/button.variables +2 -0
- package/src/themes/default/globals/variation.variables +1 -0
- package/src/themes/github/assets/fonts/LICENSE.txt +94 -0
- package/src/themes/material/assets/fonts/LICENSE.txt +202 -0
- package/types/fomantic-ui-accordion.d.ts +1 -1
- package/types/fomantic-ui-api.d.ts +9 -3
- package/types/fomantic-ui-calendar.d.ts +93 -8
- package/types/fomantic-ui-checkbox.d.ts +14 -4
- package/types/fomantic-ui-dimmer.d.ts +1 -1
- package/types/fomantic-ui-dropdown.d.ts +30 -35
- package/types/fomantic-ui-embed.d.ts +1 -1
- package/types/fomantic-ui-flyout.d.ts +24 -10
- package/types/fomantic-ui-form.d.ts +123 -15
- package/types/fomantic-ui-modal.d.ts +75 -5
- package/types/fomantic-ui-nag.d.ts +4 -4
- package/types/fomantic-ui-popup.d.ts +11 -11
- package/types/fomantic-ui-progress.d.ts +12 -6
- package/types/fomantic-ui-rating.d.ts +1 -1
- package/types/fomantic-ui-search.d.ts +31 -13
- package/types/fomantic-ui-shape.d.ts +2 -2
- package/types/fomantic-ui-sidebar.d.ts +4 -4
- package/types/fomantic-ui-slider.d.ts +1 -1
- package/types/fomantic-ui-sticky.d.ts +1 -1
- package/types/fomantic-ui-tab.d.ts +5 -5
- package/types/fomantic-ui-toast.d.ts +7 -2
- package/types/fomantic-ui-transition.d.ts +29 -1
- package/types/fomantic-ui-visibility.d.ts +3 -3
- package/types/index.d.ts +25 -25
- package/types/tests.ts +188 -0
- package/types/tsconfig.json +1 -1
- package/types/fomantic-ui-tests.ts +0 -25
@@ -5,12 +5,12 @@ declare namespace FomanticUI {
|
|
5
5
|
/**
|
6
6
|
* Shows the modal.
|
7
7
|
*/
|
8
|
-
(behavior: 'show'): JQuery;
|
8
|
+
(behavior: 'show', callback?: Function): JQuery;
|
9
9
|
|
10
10
|
/**
|
11
11
|
* Hides the modal.
|
12
12
|
*/
|
13
|
-
(behavior: 'hide'): JQuery;
|
13
|
+
(behavior: 'hide', callback?: Function): JQuery;
|
14
14
|
|
15
15
|
/**
|
16
16
|
* Toggles the modal.
|
@@ -62,8 +62,13 @@ declare namespace FomanticUI {
|
|
62
62
|
*/
|
63
63
|
(behavior: 'set active'): JQuery;
|
64
64
|
|
65
|
+
/**
|
66
|
+
* Templates handling
|
67
|
+
*/
|
68
|
+
(behavior: keyof Modal.TemplatesSettings, ...args: any): Partial<Pick<ModalSettings, keyof ModalSettings>>;
|
69
|
+
|
65
70
|
(behavior: 'destroy'): JQuery;
|
66
|
-
<K extends keyof ModalSettings>(behavior: 'setting', name: K, value?: undefined,
|
71
|
+
<K extends keyof ModalSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ModalSettings, keyof ModalSettings>>;
|
67
72
|
<K extends keyof ModalSettings>(behavior: 'setting', name: K, value: ModalSettings[K]): JQuery;
|
68
73
|
(behavior: 'setting', value: Partial<Pick<ModalSettings, keyof ModalSettings>>): JQuery;
|
69
74
|
(settings?: Partial<Pick<ModalSettings, keyof ModalSettings>>): JQuery;
|
@@ -166,13 +171,13 @@ declare namespace FomanticUI {
|
|
166
171
|
/**
|
167
172
|
* Custom settings to extend UI dimmer.
|
168
173
|
*/
|
169
|
-
dimmerSettings: DimmerSettings
|
174
|
+
dimmerSettings: Partial<Pick<DimmerSettings, keyof DimmerSettings>>;
|
170
175
|
|
171
176
|
/**
|
172
177
|
* Custom settings to extend UI dimmer.
|
173
178
|
* @default 'scale'
|
174
179
|
*/
|
175
|
-
transition: string | TransitionSettings
|
180
|
+
transition: string | Partial<Pick<TransitionSettings, keyof TransitionSettings>>;
|
176
181
|
|
177
182
|
/**
|
178
183
|
* Duration of animation.
|
@@ -194,6 +199,62 @@ declare namespace FomanticUI {
|
|
194
199
|
*/
|
195
200
|
scrollbarWidth: number;
|
196
201
|
|
202
|
+
// dynamic content
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Title of dynamicly created modal.
|
206
|
+
* @default ''
|
207
|
+
*/
|
208
|
+
title: string;
|
209
|
+
|
210
|
+
/**
|
211
|
+
* HTML content of dynamicly created modal.
|
212
|
+
* @default ''
|
213
|
+
*/
|
214
|
+
content: string;
|
215
|
+
|
216
|
+
/**
|
217
|
+
* CSS classname(s) of dynamicly created modal.
|
218
|
+
* @default ''
|
219
|
+
*/
|
220
|
+
class: string;
|
221
|
+
|
222
|
+
/**
|
223
|
+
* CSS classname(s) of dynamicly created modal's title.
|
224
|
+
* @default ''
|
225
|
+
*/
|
226
|
+
classTitle: string;
|
227
|
+
|
228
|
+
/**
|
229
|
+
* CSS classname(s) of dynamicly created modal's content.
|
230
|
+
* @default ''
|
231
|
+
*/
|
232
|
+
classContent: string;
|
233
|
+
|
234
|
+
/**
|
235
|
+
* CSS classname(s) of dynamicly created modal's actions.
|
236
|
+
* @default ''
|
237
|
+
*/
|
238
|
+
classActions: string;
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Determine if a close icon shoud be displayed on dynamicly created modal.
|
242
|
+
* @default false
|
243
|
+
*/
|
244
|
+
closeIcon: boolean;
|
245
|
+
|
246
|
+
/**
|
247
|
+
*
|
248
|
+
* @default false
|
249
|
+
*/
|
250
|
+
actions: any;
|
251
|
+
|
252
|
+
/**
|
253
|
+
*
|
254
|
+
* @default true
|
255
|
+
*/
|
256
|
+
preserveHTML: boolean;
|
257
|
+
|
197
258
|
// endregion
|
198
259
|
|
199
260
|
// region Callbacks
|
@@ -250,6 +311,8 @@ declare namespace FomanticUI {
|
|
250
311
|
|
251
312
|
// region Config Template Settings
|
252
313
|
|
314
|
+
templates: Modal.TemplatesSettings;
|
315
|
+
|
253
316
|
// endregion
|
254
317
|
|
255
318
|
// region Debug Settings
|
@@ -299,6 +362,7 @@ declare namespace FomanticUI {
|
|
299
362
|
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
300
363
|
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
301
364
|
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
365
|
+
type TemplatesSettings = Partial<Pick<Settings.Templates, keyof Settings.Templates>> & {[key: string]: (...args: any) => Partial<Pick<ModalSettings, keyof ModalSettings>>};
|
302
366
|
|
303
367
|
namespace Settings {
|
304
368
|
interface Selectors {
|
@@ -466,6 +530,12 @@ declare namespace FomanticUI {
|
|
466
530
|
*/
|
467
531
|
notFound: string;
|
468
532
|
}
|
533
|
+
|
534
|
+
interface Templates {
|
535
|
+
alert(): Partial<Pick<ModalSettings, keyof ModalSettings>>;
|
536
|
+
confirm(): Partial<Pick<ModalSettings, keyof ModalSettings>>;
|
537
|
+
prompt(): Partial<Pick<ModalSettings, keyof ModalSettings>>;
|
538
|
+
}
|
469
539
|
}
|
470
540
|
}
|
471
541
|
}
|
@@ -23,10 +23,10 @@ declare namespace FomanticUI {
|
|
23
23
|
(behavior: 'clear'): JQuery;
|
24
24
|
|
25
25
|
(behavior: 'destroy'): JQuery;
|
26
|
-
<K extends keyof NagSettings>(behavior: 'setting', name: K, value?: undefined,
|
26
|
+
<K extends keyof NagSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<NagSettings, keyof NagSettings>>;
|
27
27
|
<K extends keyof NagSettings>(behavior: 'setting', name: K, value: NagSettings[K]): JQuery;
|
28
28
|
(behavior: 'setting', value: Partial<Pick<NagSettings, keyof NagSettings>>): JQuery;
|
29
|
-
(settings?:
|
29
|
+
(settings?: Partial<Pick<NagSettings, keyof NagSettings>>): JQuery;
|
30
30
|
}
|
31
31
|
|
32
32
|
/**
|
@@ -231,7 +231,7 @@ declare namespace FomanticUI {
|
|
231
231
|
*/
|
232
232
|
close: string;
|
233
233
|
}
|
234
|
-
|
234
|
+
|
235
235
|
interface ClassNames {
|
236
236
|
/**
|
237
237
|
* @default 'bottom'
|
@@ -243,7 +243,7 @@ declare namespace FomanticUI {
|
|
243
243
|
*/
|
244
244
|
fixed: string;
|
245
245
|
}
|
246
|
-
|
246
|
+
|
247
247
|
interface Errors {
|
248
248
|
/**
|
249
249
|
* @default 'Unsupported storage method'
|
@@ -67,7 +67,7 @@ declare namespace FomanticUI {
|
|
67
67
|
*/
|
68
68
|
(behavior: 'destroy'): JQuery;
|
69
69
|
|
70
|
-
<K extends keyof PopupSettings>(behavior: 'setting', name: K, value?: undefined,
|
70
|
+
<K extends keyof PopupSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<PopupSettings, keyof PopupSettings>>;
|
71
71
|
<K extends keyof PopupSettings>(behavior: 'setting', name: K, value: PopupSettings[K]): JQuery;
|
72
72
|
(behavior: 'setting', value: Partial<Pick<PopupSettings, keyof PopupSettings>>): JQuery;
|
73
73
|
(settings?: Partial<Pick<PopupSettings, keyof PopupSettings>>): JQuery;
|
@@ -84,7 +84,7 @@ declare namespace FomanticUI {
|
|
84
84
|
* This is useful for including a pre-formatted popup.
|
85
85
|
* @default false
|
86
86
|
*/
|
87
|
-
popup: false | string;
|
87
|
+
popup: false | string | JQuery;
|
88
88
|
|
89
89
|
/**
|
90
90
|
* Whether all other popups should be hidden when this popup is opened.
|
@@ -266,39 +266,39 @@ declare namespace FomanticUI {
|
|
266
266
|
/**
|
267
267
|
* Callback on popup element creation, with created popup.
|
268
268
|
*/
|
269
|
-
onCreate(this: JQuery): void;
|
269
|
+
onCreate(this: JQuery, element?: JQuery<HTMLElement>): void;
|
270
270
|
|
271
271
|
/**
|
272
272
|
* Callback immediately before Popup is removed from DOM.
|
273
273
|
*/
|
274
|
-
onRemove(this: JQuery): void;
|
274
|
+
onRemove(this: JQuery, element?: JQuery<HTMLElement>): void;
|
275
275
|
|
276
276
|
/**
|
277
277
|
* Callback before popup is shown.
|
278
278
|
* Returning 'false' from this callback will cancel the popup from showing.
|
279
279
|
*/
|
280
|
-
onShow(this: JQuery):
|
280
|
+
onShow(this: JQuery, element?: JQuery<HTMLElement>): any;
|
281
281
|
|
282
282
|
/**
|
283
283
|
* Callback after popup is shown.
|
284
284
|
*/
|
285
|
-
onVisible(this: JQuery): void;
|
285
|
+
onVisible(this: JQuery, element?: JQuery<HTMLElement>): void;
|
286
286
|
|
287
287
|
/**
|
288
288
|
* Callback before popup is hidden.
|
289
289
|
* Returning 'false' from this callback will cancel the popup from hiding.
|
290
290
|
*/
|
291
|
-
onHide(this: JQuery):
|
291
|
+
onHide(this: JQuery, element?: JQuery<HTMLElement>): any;
|
292
292
|
|
293
293
|
/**
|
294
294
|
* Callback after popup is hidden.
|
295
295
|
*/
|
296
|
-
onHidden(this: JQuery): void;
|
296
|
+
onHidden(this: JQuery, element?: JQuery<HTMLElement>): void;
|
297
297
|
|
298
298
|
/**
|
299
299
|
* Callback after popup cannot be placed on screen.
|
300
300
|
*/
|
301
|
-
onUnplaceable(this: JQuery): void;
|
301
|
+
onUnplaceable(this: JQuery, element?: JQuery<HTMLElement>): void;
|
302
302
|
|
303
303
|
// endregion
|
304
304
|
|
@@ -402,7 +402,7 @@ declare namespace FomanticUI {
|
|
402
402
|
*/
|
403
403
|
popup: string;
|
404
404
|
}
|
405
|
-
|
405
|
+
|
406
406
|
interface Metadatas {
|
407
407
|
/**
|
408
408
|
* @default 'activator'
|
@@ -439,7 +439,7 @@ declare namespace FomanticUI {
|
|
439
439
|
*/
|
440
440
|
variation: string;
|
441
441
|
}
|
442
|
-
|
442
|
+
|
443
443
|
interface ClassNames {
|
444
444
|
/**
|
445
445
|
* @default 'active'
|
@@ -158,7 +158,7 @@ declare namespace FomanticUI {
|
|
158
158
|
*/
|
159
159
|
(behavior: 'destroy'): JQuery;
|
160
160
|
|
161
|
-
<K extends keyof ProgressSettings>(behavior: 'setting', name: K, value?: undefined,
|
161
|
+
<K extends keyof ProgressSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ProgressSettings, keyof ProgressSettings>>;
|
162
162
|
<K extends keyof ProgressSettings>(behavior: 'setting', name: K, value: ProgressSettings[K]): JQuery;
|
163
163
|
(behavior: 'setting', value: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
|
164
164
|
(settings?: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
|
@@ -208,6 +208,12 @@ declare namespace FomanticUI {
|
|
208
208
|
*/
|
209
209
|
precision: number;
|
210
210
|
|
211
|
+
/**
|
212
|
+
* Sets current overall percent.
|
213
|
+
* @default false
|
214
|
+
*/
|
215
|
+
percent: false | number;
|
216
|
+
|
211
217
|
/**
|
212
218
|
* Setting a total value will make each call to increment get closer to this total (i.e. 1/20, 2/20 etc).
|
213
219
|
* @default false
|
@@ -349,7 +355,7 @@ declare namespace FomanticUI {
|
|
349
355
|
*/
|
350
356
|
progress: string;
|
351
357
|
}
|
352
|
-
|
358
|
+
|
353
359
|
interface ClassNames {
|
354
360
|
/**
|
355
361
|
* @default 'active'
|
@@ -371,7 +377,7 @@ declare namespace FomanticUI {
|
|
371
377
|
*/
|
372
378
|
warning: string;
|
373
379
|
}
|
374
|
-
|
380
|
+
|
375
381
|
interface Texts {
|
376
382
|
/**
|
377
383
|
* @default false
|
@@ -408,14 +414,14 @@ declare namespace FomanticUI {
|
|
408
414
|
*/
|
409
415
|
bars: string[];
|
410
416
|
}
|
411
|
-
|
417
|
+
|
412
418
|
interface RegExps {
|
413
419
|
/**
|
414
420
|
* @default /\{\$*[A-z0-9]+\}/g
|
415
421
|
*/
|
416
422
|
variable: RegExp;
|
417
423
|
}
|
418
|
-
|
424
|
+
|
419
425
|
interface Metadatas {
|
420
426
|
/**
|
421
427
|
* @default 'percent'
|
@@ -432,7 +438,7 @@ declare namespace FomanticUI {
|
|
432
438
|
*/
|
433
439
|
value: string;
|
434
440
|
}
|
435
|
-
|
441
|
+
|
436
442
|
interface Errors {
|
437
443
|
/**
|
438
444
|
* @default 'The method you called is not defined.'
|
@@ -28,7 +28,7 @@ declare namespace FomanticUI {
|
|
28
28
|
(behavior: 'clear rating'): JQuery;
|
29
29
|
|
30
30
|
(behavior: 'destroy'): JQuery;
|
31
|
-
<K extends keyof RatingSettings>(behavior: 'setting', name: K, value?: undefined,
|
31
|
+
<K extends keyof RatingSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<RatingSettings, keyof RatingSettings>>;
|
32
32
|
<K extends keyof RatingSettings>(behavior: 'setting', name: K, value: RatingSettings[K]): JQuery;
|
33
33
|
(behavior: 'setting', value: Partial<Pick<RatingSettings, keyof RatingSettings>>): JQuery;
|
34
34
|
(settings?: Partial<Pick<RatingSettings, keyof RatingSettings>>): JQuery;
|
@@ -10,7 +10,7 @@ declare namespace FomanticUI {
|
|
10
10
|
/**
|
11
11
|
* Displays message in search results with text, using template matching type.
|
12
12
|
*/
|
13
|
-
(behavior: 'display message', text: string, type
|
13
|
+
(behavior: 'display message', text: string, type?: string): JQuery;
|
14
14
|
|
15
15
|
/**
|
16
16
|
* Cancels current remote search query.
|
@@ -107,7 +107,7 @@ declare namespace FomanticUI {
|
|
107
107
|
*/
|
108
108
|
(behavior: 'destroy'): JQuery;
|
109
109
|
|
110
|
-
<K extends keyof SearchSettings>(behavior: 'setting', name: K, value?: undefined,
|
110
|
+
<K extends keyof SearchSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SearchSettings, keyof SearchSettings>>;
|
111
111
|
<K extends keyof SearchSettings>(behavior: 'setting', name: K, value: SearchSettings[K]): JQuery;
|
112
112
|
(behavior: 'setting', value: Partial<Pick<SearchSettings, keyof SearchSettings>>): JQuery;
|
113
113
|
(settings?: Partial<Pick<SearchSettings, keyof SearchSettings>>): JQuery;
|
@@ -124,7 +124,7 @@ declare namespace FomanticUI {
|
|
124
124
|
* @see {@link https://fomantic-ui.com/behaviors/api.html#/settings}
|
125
125
|
* @default {}
|
126
126
|
*/
|
127
|
-
apiSettings: APISettings | JQueryAjaxSettings;
|
127
|
+
apiSettings: Partial<Pick<APISettings, keyof APISettings>> | JQueryAjaxSettings;
|
128
128
|
|
129
129
|
/**
|
130
130
|
* Minimum characters to query for results.
|
@@ -228,6 +228,24 @@ declare namespace FomanticUI {
|
|
228
228
|
*/
|
229
229
|
ignoreDiacritics: boolean;
|
230
230
|
|
231
|
+
/**
|
232
|
+
* Template to use (specified in settings.templates)
|
233
|
+
* @default 'standard'
|
234
|
+
*/
|
235
|
+
type: 'escape' | 'message' | 'category' | 'standard';
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Field to display in standard results template
|
239
|
+
* @default ''
|
240
|
+
*/
|
241
|
+
displayField: string;
|
242
|
+
|
243
|
+
/**
|
244
|
+
* Whether to add events to prompt automatically
|
245
|
+
* @default true
|
246
|
+
*/
|
247
|
+
automatic: boolean;
|
248
|
+
|
231
249
|
// endregion
|
232
250
|
|
233
251
|
// region Callbacks
|
@@ -237,13 +255,13 @@ declare namespace FomanticUI {
|
|
237
255
|
* The first parameter includes the filtered response results for that element.
|
238
256
|
* The function should return 'false' to prevent default action (closing search results and selecting value).
|
239
257
|
*/
|
240
|
-
onSelect(this: JQuery, result: object, response: object):
|
258
|
+
onSelect(this: JQuery, result: object, response: object): any;
|
241
259
|
|
242
260
|
/**
|
243
261
|
* Callback after processing element template to add HTML to results.
|
244
262
|
* Function should return 'false' to prevent default actions.
|
245
263
|
*/
|
246
|
-
onResultsAdd(this: JQuery, html: string): boolean;
|
264
|
+
onResultsAdd(this: JQuery, html: string): void | boolean;
|
247
265
|
|
248
266
|
/**
|
249
267
|
* Callback on search query.
|
@@ -352,24 +370,24 @@ declare namespace FomanticUI {
|
|
352
370
|
namespace Settings {
|
353
371
|
interface Templates {
|
354
372
|
/**
|
355
|
-
* @default function(string)
|
373
|
+
* @default function(string, preserveHTML)
|
356
374
|
*/
|
357
|
-
escape:
|
375
|
+
escape: (string: string, preserveHTML?: boolean) => string;
|
358
376
|
|
359
377
|
/**
|
360
|
-
* @default function(message, type)
|
378
|
+
* @default function(message, type, header)
|
361
379
|
*/
|
362
|
-
message:
|
380
|
+
message: (message: string, type?: string, header?: string) => string;
|
363
381
|
|
364
382
|
/**
|
365
|
-
* @default function(response)
|
383
|
+
* @default function(response, fields, preserveHTML)
|
366
384
|
*/
|
367
|
-
category:
|
385
|
+
category: (response: unknown, fields: {[key: string]: string}, preserveHTML?: boolean) => string;
|
368
386
|
|
369
387
|
/**
|
370
|
-
* @default function(response)
|
388
|
+
* @default function(response, fields, preserveHTML)
|
371
389
|
*/
|
372
|
-
standard:
|
390
|
+
standard: (response: unknown, fields: {[key: string]: string}, preserveHTML?: boolean) => string;
|
373
391
|
}
|
374
392
|
|
375
393
|
interface Selectors {
|
@@ -102,7 +102,7 @@ declare namespace FomanticUI {
|
|
102
102
|
*/
|
103
103
|
(behavior: 'destroy'): JQuery;
|
104
104
|
|
105
|
-
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined,
|
105
|
+
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ShapeSettings, keyof ShapeSettings>>;
|
106
106
|
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value: ShapeSettings[K]): JQuery;
|
107
107
|
(behavior: 'setting', value: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
|
108
108
|
(settings?: Partial<Pick<ShapeSettings, keyof ShapeSettings>>): JQuery;
|
@@ -257,7 +257,7 @@ declare namespace FomanticUI {
|
|
257
257
|
*/
|
258
258
|
active: string;
|
259
259
|
}
|
260
|
-
|
260
|
+
|
261
261
|
interface Errors {
|
262
262
|
/**
|
263
263
|
* @default 'You tried to switch to a side that does not exist.'
|
@@ -68,7 +68,7 @@ declare namespace FomanticUI {
|
|
68
68
|
*/
|
69
69
|
(behavior: 'destroy'): JQuery;
|
70
70
|
|
71
|
-
<K extends keyof SidebarSettings>(behavior: 'setting', name: K, value?: undefined,
|
71
|
+
<K extends keyof SidebarSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SidebarSettings, keyof SidebarSettings>>;
|
72
72
|
<K extends keyof SidebarSettings>(behavior: 'setting', name: K, value: SidebarSettings[K]): JQuery;
|
73
73
|
(behavior: 'setting', value: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
|
74
74
|
(settings?: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
|
@@ -281,7 +281,7 @@ declare namespace FomanticUI {
|
|
281
281
|
*/
|
282
282
|
sidebar: string;
|
283
283
|
}
|
284
|
-
|
284
|
+
|
285
285
|
interface RegExps {
|
286
286
|
/**
|
287
287
|
* @default /(iPad|iPhone|iPod)/g
|
@@ -298,7 +298,7 @@ declare namespace FomanticUI {
|
|
298
298
|
*/
|
299
299
|
mobile: RegExp;
|
300
300
|
}
|
301
|
-
|
301
|
+
|
302
302
|
interface ClassNames {
|
303
303
|
/**
|
304
304
|
* @default 'active'
|
@@ -370,7 +370,7 @@ declare namespace FomanticUI {
|
|
370
370
|
*/
|
371
371
|
visible: string;
|
372
372
|
}
|
373
|
-
|
373
|
+
|
374
374
|
interface Errors {
|
375
375
|
/**
|
376
376
|
* @default 'The method you called is not defined.'
|
@@ -35,7 +35,7 @@ declare namespace FomanticUI {
|
|
35
35
|
*/
|
36
36
|
(behavior: 'destroy'): JQuery;
|
37
37
|
|
38
|
-
<K extends keyof SliderSettings>(behavior: 'setting', name: K, value?: undefined,
|
38
|
+
<K extends keyof SliderSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<SliderSettings, keyof SliderSettings>>;
|
39
39
|
<K extends keyof SliderSettings>(behavior: 'setting', name: K, value: SliderSettings[K]): JQuery;
|
40
40
|
(behavior: 'setting', value: Partial<Pick<SliderSettings, keyof SliderSettings>>): JQuery;
|
41
41
|
(settings?: Partial<Pick<SliderSettings, keyof SliderSettings>>): JQuery;
|
@@ -3,7 +3,7 @@ declare namespace FomanticUI {
|
|
3
3
|
settings: StickySettings;
|
4
4
|
|
5
5
|
(behavior: 'destroy'): JQuery;
|
6
|
-
<K extends keyof StickySettings>(behavior: 'setting', name: K, value?: undefined,
|
6
|
+
<K extends keyof StickySettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<StickySettings, keyof StickySettings>>;
|
7
7
|
<K extends keyof StickySettings>(behavior: 'setting', name: K, value: StickySettings[K]): JQuery;
|
8
8
|
(behavior: 'setting', value: Partial<Pick<StickySettings, keyof StickySettings>>): JQuery;
|
9
9
|
(settings?: Partial<Pick<StickySettings, keyof StickySettings>>): JQuery;
|
@@ -48,7 +48,7 @@ declare namespace FomanticUI {
|
|
48
48
|
*/
|
49
49
|
(behavior: 'destroy'): JQuery;
|
50
50
|
|
51
|
-
<K extends keyof TabSettings>(behavior: 'setting', name: K, value?: undefined,
|
51
|
+
<K extends keyof TabSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<TabSettings, keyof TabSettings>>;
|
52
52
|
<K extends keyof TabSettings>(behavior: 'setting', name: K, value: TabSettings[K]): JQuery;
|
53
53
|
(behavior: 'setting', value: Partial<Pick<TabSettings, keyof TabSettings>>): JQuery;
|
54
54
|
(settings?: Partial<Pick<TabSettings, keyof TabSettings>>): JQuery;
|
@@ -149,7 +149,7 @@ declare namespace FomanticUI {
|
|
149
149
|
* Tabs are limited to those found inside this context.
|
150
150
|
* @default false
|
151
151
|
*/
|
152
|
-
context:
|
152
|
+
context: JQuery | string | false;
|
153
153
|
|
154
154
|
/**
|
155
155
|
* If enabled limits tabs to children of passed context.
|
@@ -278,7 +278,7 @@ declare namespace FomanticUI {
|
|
278
278
|
*/
|
279
279
|
determineTitle: Function;
|
280
280
|
}
|
281
|
-
|
281
|
+
|
282
282
|
interface Selectors {
|
283
283
|
/**
|
284
284
|
* @default '.ui.tab'
|
@@ -290,7 +290,7 @@ declare namespace FomanticUI {
|
|
290
290
|
*/
|
291
291
|
parent: string;
|
292
292
|
}
|
293
|
-
|
293
|
+
|
294
294
|
interface Metadatas {
|
295
295
|
/**
|
296
296
|
* @default 'tab'
|
@@ -319,7 +319,7 @@ declare namespace FomanticUI {
|
|
319
319
|
*/
|
320
320
|
active: string;
|
321
321
|
}
|
322
|
-
|
322
|
+
|
323
323
|
interface Errors {
|
324
324
|
/**
|
325
325
|
* @default 'You attempted to load content without API module'
|
@@ -12,6 +12,11 @@ declare namespace FomanticUI {
|
|
12
12
|
*/
|
13
13
|
(behavior: 'animate continue'): JQuery;
|
14
14
|
|
15
|
+
/**
|
16
|
+
* Show the toast
|
17
|
+
*/
|
18
|
+
(behavior: 'show'): JQuery;
|
19
|
+
|
15
20
|
/**
|
16
21
|
* Closes the toast
|
17
22
|
*/
|
@@ -28,7 +33,7 @@ declare namespace FomanticUI {
|
|
28
33
|
(behavior: 'get remainingTime'): number;
|
29
34
|
|
30
35
|
(behavior: 'refresh' | 'destroy'): JQuery;
|
31
|
-
<K extends keyof ToastSettings>(behavior: 'setting', name: K, value?: undefined,
|
36
|
+
<K extends keyof ToastSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<ToastSettings, keyof ToastSettings>>;
|
32
37
|
<K extends keyof ToastSettings>(behavior: 'setting', name: K, value: ToastSettings[K]): JQuery;
|
33
38
|
(behavior: 'setting', value: Partial<Pick<ToastSettings, keyof ToastSettings>>): JQuery;
|
34
39
|
(settings?: Partial<Pick<ToastSettings, keyof ToastSettings>>): JQuery;
|
@@ -273,7 +278,7 @@ declare namespace FomanticUI {
|
|
273
278
|
/**
|
274
279
|
* An array of objects. Each object defines an action with 'properties' 'text', 'class', 'icon' and 'click'.
|
275
280
|
*/
|
276
|
-
actions: Toast.ActionsSettings;
|
281
|
+
actions: Toast.ActionsSettings[];
|
277
282
|
|
278
283
|
// endregion
|
279
284
|
|
@@ -112,11 +112,39 @@ declare namespace FomanticUI {
|
|
112
112
|
*/
|
113
113
|
(behavior: 'is supported'): boolean;
|
114
114
|
|
115
|
+
(behavior: 'scale', duration?: any, onComplete?: () => any): JQuery;
|
116
|
+
|
117
|
+
(behavior: 'zoom', duration?: any, onComplete?: () => any): JQuery;
|
118
|
+
|
119
|
+
(behavior: 'fade' | 'fade up' | 'fade down' | 'fade left' | 'fade right', duration?: any, onComplete?: () => any): JQuery;
|
120
|
+
|
121
|
+
(behavior: 'horizontal flip' | 'vertical flip', duration?: any, onComplete?: () => any): JQuery;
|
122
|
+
|
123
|
+
(behavior: 'drop', duration?: any, onComplete?: () => any): JQuery;
|
124
|
+
|
125
|
+
(behavior: 'fly up' | 'fly down' | 'fly left' | 'fly right', duration?: any, onComplete?: () => any): JQuery;
|
126
|
+
|
127
|
+
(behavior: 'swing up' | 'swing down' | 'swing left' | 'swing right', duration?: any, onComplete?: () => any): JQuery;
|
128
|
+
|
129
|
+
(behavior: 'browse' | 'browse up' | 'browse down' | 'browse left' | 'browse right', duration?: any, onComplete?: () => any): JQuery;
|
130
|
+
|
131
|
+
(behavior: 'slide up' | 'slide down' | 'slide left' | 'slide right', duration?: any, onComplete?: () => any): JQuery;
|
132
|
+
|
133
|
+
// Static animations
|
134
|
+
(behavior: 'pulsating', duration?: any, onComplete?: () => any): JQuery;
|
135
|
+
(behavior: 'jiggle', duration?: any, onComplete?: () => any): JQuery;
|
136
|
+
(behavior: 'flash', duration?: any, onComplete?: () => any): JQuery;
|
137
|
+
(behavior: 'shake', duration?: any, onComplete?: () => any): JQuery;
|
138
|
+
(behavior: 'pulse', duration?: any, onComplete?: () => any): JQuery;
|
139
|
+
(behavior: 'tada', duration?: any, onComplete?: () => any): JQuery;
|
140
|
+
(behavior: 'bounce', duration?: any, onComplete?: () => any): JQuery;
|
141
|
+
(behavior: 'glow', duration?: any, onComplete?: () => any): JQuery;
|
142
|
+
|
115
143
|
/**
|
116
144
|
* Destroys instance and removes all events.
|
117
145
|
*/
|
118
146
|
(behavior: 'destroy'): JQuery;
|
119
|
-
<K extends keyof TransitionSettings>(behavior: 'setting', name: K, value?: undefined,
|
147
|
+
<K extends keyof TransitionSettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<TransitionSettings, keyof TransitionSettings>>;
|
120
148
|
<K extends keyof TransitionSettings>(behavior: 'setting', name: K, value: TransitionSettings[K]): JQuery;
|
121
149
|
(behavior: 'setting', value: Partial<Pick<TransitionSettings, keyof TransitionSettings>>): JQuery;
|
122
150
|
(settings?: Partial<Pick<TransitionSettings, keyof TransitionSettings>>): JQuery;
|
@@ -44,10 +44,10 @@ declare namespace FomanticUI {
|
|
44
44
|
(behavior: 'get screen size'): object;
|
45
45
|
|
46
46
|
(behavior: 'destroy'): JQuery;
|
47
|
-
<K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value?: undefined,
|
47
|
+
<K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value?: undefined,): Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>;
|
48
48
|
<K extends keyof VisibilitySettings>(behavior: 'setting', name: K, value: VisibilitySettings[K]): JQuery;
|
49
|
-
(behavior: 'setting', value: VisibilitySettings): JQuery;
|
50
|
-
(settings?: VisibilitySettings): JQuery;
|
49
|
+
(behavior: 'setting', value: Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>): JQuery;
|
50
|
+
(settings?: Partial<Pick<VisibilitySettings, keyof VisibilitySettings>>): JQuery;
|
51
51
|
}
|
52
52
|
|
53
53
|
/**
|