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.
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +1 -1
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +1 -1
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +1 -1
- package/dist/components/api.min.js +1 -1
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +1 -1
- 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 +1 -1
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +1 -1
- 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 +1 -1
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +1 -1
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +1 -1
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +1 -1
- 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 +1 -1
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +1 -1
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- 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 +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- 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 -1
- package/dist/components/menu.min.css +1 -1
- 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 +1 -1
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +1 -1
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +1 -1
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +1 -1
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +1 -1
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +1 -1
- 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 +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +1 -1
- 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 +1 -1
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +1 -1
- 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 +1 -1
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +1 -1
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +1 -1
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +1 -1
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +1 -1
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +1 -1
- 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 +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +1 -1
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +1 -1
- 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 +1 -1
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +1 -1
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +1 -1
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +1 -1
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +1 -1
- package/dist/semantic.css +53 -53
- package/dist/semantic.js +26 -26
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +1 -1
- package/package.json +3 -2
- package/types/fomantic-ui-accordion.d.ts +250 -0
- package/types/fomantic-ui-api.d.ts +607 -0
- package/types/fomantic-ui-calendar.d.ts +820 -0
- package/types/fomantic-ui-checkbox.d.ts +378 -0
- package/types/fomantic-ui-dimmer.d.ts +485 -0
- package/types/fomantic-ui-dropdown.d.ts +1402 -0
- package/types/fomantic-ui-embed.d.ts +372 -0
- package/types/fomantic-ui-flyout.d.ts +558 -0
- package/types/fomantic-ui-form.d.ts +780 -0
- package/types/fomantic-ui-modal.d.ts +553 -0
- package/types/fomantic-ui-nag.d.ts +319 -0
- package/types/fomantic-ui-popup.d.ts +619 -0
- package/types/fomantic-ui-progress.d.ts +533 -0
- package/types/fomantic-ui-rating.d.ts +218 -0
- package/types/fomantic-ui-search.d.ts +590 -0
- package/types/fomantic-ui-shape.d.ts +316 -0
- package/types/fomantic-ui-sidebar.d.ts +478 -0
- package/types/fomantic-ui-slider.d.ts +379 -0
- package/types/fomantic-ui-sticky.d.ts +261 -0
- package/types/fomantic-ui-tab.d.ts +427 -0
- package/types/fomantic-ui-tests.ts +23 -0
- package/types/fomantic-ui-toast.d.ts +620 -0
- package/types/fomantic-ui-transition.d.ts +405 -0
- package/types/fomantic-ui-visibility.d.ts +422 -0
- package/types/index.d.ts +64 -0
- package/types/tsconfig.json +23 -0
- package/types/tslint.json +1 -0
@@ -0,0 +1,316 @@
|
|
1
|
+
declare namespace FomanticUI {
|
2
|
+
interface Shape {
|
3
|
+
settings: ShapeSettings;
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Flips the shape upward.
|
7
|
+
*/
|
8
|
+
(behavior: 'flip up'): JQuery;
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Flips the shape downward.
|
12
|
+
*/
|
13
|
+
(behavior: 'flip down'): JQuery;
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Flips the shape right.
|
17
|
+
*/
|
18
|
+
(behavior: 'flip right'): JQuery;
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Flips the shape left.
|
22
|
+
*/
|
23
|
+
(behavior: 'flip left'): JQuery;
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Flips the shape over clock-wise.
|
27
|
+
*/
|
28
|
+
(behavior: 'flip over'): JQuery;
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Flips the shape over counter-clockwise.
|
32
|
+
*/
|
33
|
+
(behavior: 'flip back'): JQuery;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Set the next side to a specific selector.
|
37
|
+
*/
|
38
|
+
(behavior: 'set next side', selector: string): JQuery;
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Returns whether shape is currently animating.
|
42
|
+
*/
|
43
|
+
(behavior: 'is animating'): boolean;
|
44
|
+
|
45
|
+
/**
|
46
|
+
* Removes all inline styles.
|
47
|
+
*/
|
48
|
+
(behavior: 'reset'): JQuery;
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Queues an animation after current animation.
|
52
|
+
*/
|
53
|
+
(behavior: 'queue', animation: string): JQuery;
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Forces a reflow on element.
|
57
|
+
*/
|
58
|
+
(behavior: 'repaint', animation: string): JQuery;
|
59
|
+
|
60
|
+
/**
|
61
|
+
* Set the next side to next sibling to active element.
|
62
|
+
*/
|
63
|
+
(behavior: 'set default side'): JQuery;
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Sets shape to the content size of the next side.
|
67
|
+
*/
|
68
|
+
(behavior: 'set stage size'): JQuery;
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Refreshes the selector cache for element sides.
|
72
|
+
*/
|
73
|
+
(behavior: 'refresh'): JQuery;
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Returns translation for next side staged below.
|
77
|
+
*/
|
78
|
+
(behavior: 'get transform down'): object;
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Returns translation for next side staged left.
|
82
|
+
*/
|
83
|
+
(behavior: 'get transform left'): object;
|
84
|
+
|
85
|
+
/**
|
86
|
+
* Returns translation for next side staged right.
|
87
|
+
*/
|
88
|
+
(behavior: 'get transform right'): object;
|
89
|
+
|
90
|
+
/**
|
91
|
+
* Returns translation for next side staged up.
|
92
|
+
*/
|
93
|
+
(behavior: 'get transform up'): object;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Returns translation for next side staged down.
|
97
|
+
*/
|
98
|
+
(behavior: 'get transform down'): object;
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Destroys instance and removes all events.
|
102
|
+
*/
|
103
|
+
(behavior: 'destroy'): JQuery;
|
104
|
+
|
105
|
+
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value?: undefined): ShapeSettings._Impl[K];
|
106
|
+
<K extends keyof ShapeSettings>(behavior: 'setting', name: K, value: ShapeSettings._Impl[K]): JQuery;
|
107
|
+
(behavior: 'setting', value: ShapeSettings): JQuery;
|
108
|
+
(settings?: ShapeSettings): JQuery;
|
109
|
+
}
|
110
|
+
|
111
|
+
/**
|
112
|
+
* @see {@link https://fomantic-ui.com/modules/shape.html#/settings}
|
113
|
+
*/
|
114
|
+
type ShapeSettings = ShapeSettings.Param;
|
115
|
+
|
116
|
+
namespace ShapeSettings {
|
117
|
+
type Param = (
|
118
|
+
| Pick<_Impl, 'duration'>
|
119
|
+
| Pick<_Impl, 'width'>
|
120
|
+
| Pick<_Impl, 'height'>
|
121
|
+
| Pick<_Impl, 'jitter'>
|
122
|
+
| Pick<_Impl, 'allowRepeats'>
|
123
|
+
| Pick<_Impl, 'onBeforeChange'>
|
124
|
+
| Pick<_Impl, 'onChange'>
|
125
|
+
| Pick<_Impl, 'selector'>
|
126
|
+
| Pick<_Impl, 'className'>
|
127
|
+
| Pick<_Impl, 'name'>
|
128
|
+
| Pick<_Impl, 'namespace'>
|
129
|
+
| Pick<_Impl, 'silent'>
|
130
|
+
| Pick<_Impl, 'debug'>
|
131
|
+
| Pick<_Impl, 'performance'>
|
132
|
+
| Pick<_Impl, 'verbose'>
|
133
|
+
| Pick<_Impl, 'error'>
|
134
|
+
) &
|
135
|
+
Partial<Pick<_Impl, keyof _Impl>>;
|
136
|
+
|
137
|
+
interface _Impl {
|
138
|
+
// region Shape Settings
|
139
|
+
|
140
|
+
/**
|
141
|
+
* Duration of side change animation.
|
142
|
+
* @default false
|
143
|
+
*/
|
144
|
+
duration: false | string;
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Width during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
|
148
|
+
* @default 'initial'
|
149
|
+
*/
|
150
|
+
width: 'auto' | 'initial' | 'next' | number;
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Height during animation, can be set to 'auto', 'initial', 'next' or pixel amount.
|
154
|
+
* @default 'initial'
|
155
|
+
*/
|
156
|
+
height: 'auto' | 'initial' | 'next' | number;
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Fudge factor in pixels when swapping from 2d to 3d (can be useful to correct rounding errors).
|
160
|
+
* @default 0
|
161
|
+
*/
|
162
|
+
jitter: number;
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Allow animation to same side.
|
166
|
+
* @default false
|
167
|
+
*/
|
168
|
+
allowRepeats: boolean;
|
169
|
+
|
170
|
+
// endregion
|
171
|
+
|
172
|
+
// region Callbacks
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Is called before side change.
|
176
|
+
*/
|
177
|
+
onBeforeChange(this: JQuery): void;
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Is called after visible side change.
|
181
|
+
*/
|
182
|
+
onChange(this: JQuery): void;
|
183
|
+
|
184
|
+
// endregion
|
185
|
+
|
186
|
+
// region DOM Settings
|
187
|
+
|
188
|
+
/**
|
189
|
+
* DOM Selectors used internally.
|
190
|
+
* Selectors used to find parts of a module.
|
191
|
+
*/
|
192
|
+
selector: Shape.SelectorSettings;
|
193
|
+
|
194
|
+
/**
|
195
|
+
* Class names used to determine element state.
|
196
|
+
*/
|
197
|
+
className: Shape.ClassNameSettings;
|
198
|
+
|
199
|
+
// endregion
|
200
|
+
|
201
|
+
// region Debug Settings
|
202
|
+
|
203
|
+
/**
|
204
|
+
* Name used in log statements
|
205
|
+
* @default 'Shape'
|
206
|
+
*/
|
207
|
+
name: string;
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
211
|
+
* @default 'shape'
|
212
|
+
*/
|
213
|
+
namespace: string;
|
214
|
+
|
215
|
+
/**
|
216
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
217
|
+
* @default false
|
218
|
+
*/
|
219
|
+
silent: boolean;
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Debug output to console
|
223
|
+
* @default false
|
224
|
+
*/
|
225
|
+
debug: boolean;
|
226
|
+
|
227
|
+
/**
|
228
|
+
* Show console.table output with performance metrics
|
229
|
+
* @default true
|
230
|
+
*/
|
231
|
+
performance: boolean;
|
232
|
+
|
233
|
+
/**
|
234
|
+
* Debug output includes all internal behaviors
|
235
|
+
* @default false
|
236
|
+
*/
|
237
|
+
verbose: boolean;
|
238
|
+
|
239
|
+
error: Shape.ErrorSettings;
|
240
|
+
|
241
|
+
// endregion
|
242
|
+
}
|
243
|
+
|
244
|
+
namespace Shape {
|
245
|
+
type SelectorSettings = SelectorSettings.Param;
|
246
|
+
|
247
|
+
namespace SelectorSettings {
|
248
|
+
type Param = (Pick<_Impl, 'sides'> | Pick<_Impl, 'side'>) & Partial<Pick<_Impl, keyof _Impl>>;
|
249
|
+
|
250
|
+
interface _Impl {
|
251
|
+
/**
|
252
|
+
* @default '.sides'
|
253
|
+
*/
|
254
|
+
sides: string;
|
255
|
+
|
256
|
+
/**
|
257
|
+
* @default '.side'
|
258
|
+
*/
|
259
|
+
side: string;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
type ClassNameSettings = ClassNameSettings.Param;
|
264
|
+
|
265
|
+
namespace ClassNameSettings {
|
266
|
+
type Param = (
|
267
|
+
| Pick<_Impl, 'animating'>
|
268
|
+
| Pick<_Impl, 'hidden'>
|
269
|
+
| Pick<_Impl, 'loading'>
|
270
|
+
| Pick<_Impl, 'active'>
|
271
|
+
) &
|
272
|
+
Partial<Pick<_Impl, keyof _Impl>>;
|
273
|
+
|
274
|
+
interface _Impl {
|
275
|
+
/**
|
276
|
+
* @default 'animating'
|
277
|
+
*/
|
278
|
+
animating: string;
|
279
|
+
|
280
|
+
/**
|
281
|
+
* @default 'hidden'
|
282
|
+
*/
|
283
|
+
hidden: string;
|
284
|
+
|
285
|
+
/**
|
286
|
+
* @default 'loading'
|
287
|
+
*/
|
288
|
+
loading: string;
|
289
|
+
|
290
|
+
/**
|
291
|
+
* @default 'active'
|
292
|
+
*/
|
293
|
+
active: string;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
type ErrorSettings = ErrorSettings.Param;
|
298
|
+
|
299
|
+
namespace ErrorSettings {
|
300
|
+
type Param = (Pick<_Impl, 'side'> | Pick<_Impl, 'method'>) & Partial<Pick<_Impl, keyof _Impl>>;
|
301
|
+
|
302
|
+
interface _Impl {
|
303
|
+
/**
|
304
|
+
* @default 'You tried to switch to a side that does not exist.'
|
305
|
+
*/
|
306
|
+
side: string;
|
307
|
+
|
308
|
+
/**
|
309
|
+
* @default 'The method you called is not defined'
|
310
|
+
*/
|
311
|
+
method: string;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
}
|
316
|
+
}
|