fomantic-ui 2.9.3-beta.45 → 2.9.3-beta.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/SECURITY.md +2 -1
- 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 +1 -1
- package/types/fomantic-ui-accordion.d.ts +166 -172
- package/types/fomantic-ui-api.d.ts +418 -470
- package/types/fomantic-ui-calendar.d.ts +425 -479
- package/types/fomantic-ui-checkbox.d.ts +148 -194
- package/types/fomantic-ui-dimmer.d.ts +188 -265
- package/types/fomantic-ui-dropdown.d.ts +447 -666
- package/types/fomantic-ui-embed.d.ts +243 -289
- package/types/fomantic-ui-flyout.d.ts +259 -292
- package/types/fomantic-ui-form.d.ts +478 -607
- package/types/fomantic-ui-modal.d.ts +389 -471
- package/types/fomantic-ui-nag.d.ts +228 -277
- package/types/fomantic-ui-popup.d.ts +438 -534
- package/types/fomantic-ui-progress.d.ts +278 -352
- package/types/fomantic-ui-rating.d.ts +137 -168
- package/types/fomantic-ui-search.d.ts +359 -453
- package/types/fomantic-ui-shape.d.ts +152 -194
- package/types/fomantic-ui-sidebar.d.ts +315 -391
- package/types/fomantic-ui-slider.d.ts +259 -322
- package/types/fomantic-ui-sticky.d.ts +198 -244
- package/types/fomantic-ui-tab.d.ts +284 -350
- package/types/fomantic-ui-tests.ts +4 -2
- package/types/fomantic-ui-toast.d.ts +318 -424
- package/types/fomantic-ui-transition.d.ts +223 -273
- package/types/fomantic-ui-visibility.d.ts +286 -353
- package/types/index.d.ts +0 -1
@@ -3,258 +3,212 @@ 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): StickySettings
|
7
|
-
<K extends keyof StickySettings>(behavior: 'setting', name: K, value: StickySettings
|
8
|
-
(behavior: 'setting', value: StickySettings): JQuery;
|
9
|
-
(settings?: StickySettings): JQuery;
|
6
|
+
<K extends keyof StickySettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<StickySettings, keyof StickySettings>>;
|
7
|
+
<K extends keyof StickySettings>(behavior: 'setting', name: K, value: StickySettings[K]): JQuery;
|
8
|
+
(behavior: 'setting', value: Partial<Pick<StickySettings, keyof StickySettings>>): JQuery;
|
9
|
+
(settings?: Partial<Pick<StickySettings, keyof StickySettings>>): JQuery;
|
10
10
|
}
|
11
11
|
|
12
12
|
/**
|
13
13
|
* @see {@link https://fomantic-ui.com/modules/sticky.html#/settings}
|
14
14
|
*/
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
/**
|
155
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
156
|
-
*/
|
157
|
-
silent: boolean;
|
158
|
-
|
159
|
-
/**
|
160
|
-
* Debug output to console
|
161
|
-
*/
|
162
|
-
debug: boolean;
|
163
|
-
|
164
|
-
/**
|
165
|
-
* Show console.table output with performance metrics
|
166
|
-
*/
|
167
|
-
performance: boolean;
|
168
|
-
|
169
|
-
/**
|
170
|
-
* Debug output includes all internal behaviors
|
171
|
-
*/
|
172
|
-
verbose: boolean;
|
173
|
-
|
174
|
-
error: Sticky.ErrorSettings;
|
175
|
-
|
176
|
-
// endregion
|
177
|
-
}
|
15
|
+
interface StickySettings {
|
16
|
+
// region Sticky Settings
|
17
|
+
|
18
|
+
/**
|
19
|
+
* Whether element should be "pushed" by the viewport, attaching to the bottom of the screen when scrolling up.
|
20
|
+
* @default false
|
21
|
+
*/
|
22
|
+
pushing: boolean;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Sets size of fixed content to match its width before fixing to screen dynamically.
|
26
|
+
* This is used because fixed may display block or 100% width content differently than it appears before sticking.
|
27
|
+
* @default true
|
28
|
+
*/
|
29
|
+
setSize: boolean;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Sticky container height will only be set if the difference between heights of container and context is larger than this jitter value.
|
33
|
+
* @default 5
|
34
|
+
*/
|
35
|
+
jitter: number;
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Whether any change in 'context' DOM should automatically refresh cached sticky positions.
|
39
|
+
* @default false
|
40
|
+
*/
|
41
|
+
observeChanges: boolean;
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Context which sticky element should stick to.
|
45
|
+
* @default false
|
46
|
+
*/
|
47
|
+
context: boolean | string;
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Context which sticky should attach 'onscroll' events.
|
51
|
+
* @default window
|
52
|
+
*/
|
53
|
+
scrollContext: Window | string;
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Offset in pixels from the top of the screen when fixing element to viewport.
|
57
|
+
* @default 0
|
58
|
+
*/
|
59
|
+
offset: number;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Offset in pixels from the bottom of the screen when fixing element to viewport.
|
63
|
+
* @default 0
|
64
|
+
*/
|
65
|
+
bottomOffset: number;
|
66
|
+
|
67
|
+
// endregion
|
68
|
+
|
69
|
+
// region Callbacks
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Callback when element is repositioned from layout change.
|
73
|
+
*/
|
74
|
+
onReposition(this: JQuery): void;
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Callback when 'requestAnimationFrame' fires from scroll handler.
|
78
|
+
*/
|
79
|
+
onScroll(this: JQuery): void;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Callback when element is fixed to page.
|
83
|
+
*/
|
84
|
+
onStick(this: JQuery): void;
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Callback when element is unfixed from page.
|
88
|
+
*/
|
89
|
+
onUnstick(this: JQuery): void;
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Callback when element is bound to top of parent container.
|
93
|
+
*/
|
94
|
+
onTop(this: JQuery): void;
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Callback when element is bound to bottom of parent container.
|
98
|
+
*/
|
99
|
+
onBottom(this: JQuery): void;
|
100
|
+
|
101
|
+
// endregion
|
102
|
+
|
103
|
+
// region DOM Settings
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Class names used to determine element state.
|
107
|
+
*/
|
108
|
+
className: Sticky.ClassNameSettings;
|
109
|
+
|
110
|
+
// endregion
|
111
|
+
|
112
|
+
// region Debug Settings
|
113
|
+
|
114
|
+
/**
|
115
|
+
* Name used in log statements
|
116
|
+
* @default 'Sticky'
|
117
|
+
*/
|
118
|
+
name: string;
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
122
|
+
* @default 'sticky'
|
123
|
+
*/
|
124
|
+
namespace: string;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
128
|
+
* @default false
|
129
|
+
*/
|
130
|
+
silent: boolean;
|
131
|
+
|
132
|
+
/**
|
133
|
+
* Debug output to console
|
134
|
+
* @default false
|
135
|
+
*/
|
136
|
+
debug: boolean;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Show console.table output with performance metrics
|
140
|
+
* @default true
|
141
|
+
*/
|
142
|
+
performance: boolean;
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Debug output includes all internal behaviors
|
146
|
+
* @default false
|
147
|
+
*/
|
148
|
+
verbose: boolean;
|
149
|
+
|
150
|
+
error: Sticky.ErrorSettings;
|
151
|
+
|
152
|
+
// endregion
|
153
|
+
}
|
178
154
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
* @default 'top'
|
210
|
-
*/
|
211
|
-
top: string;
|
212
|
-
|
213
|
-
/**
|
214
|
-
* @default 'bottom'
|
215
|
-
*/
|
216
|
-
bottom: string;
|
217
|
-
}
|
155
|
+
namespace Sticky {
|
156
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
157
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
158
|
+
|
159
|
+
namespace Settings {
|
160
|
+
interface ClassNames {
|
161
|
+
/**
|
162
|
+
* @default 'bound'
|
163
|
+
*/
|
164
|
+
bound: string;
|
165
|
+
|
166
|
+
/**
|
167
|
+
* @default 'fixed'
|
168
|
+
*/
|
169
|
+
fixed: string;
|
170
|
+
|
171
|
+
/**
|
172
|
+
* @default 'native'
|
173
|
+
*/
|
174
|
+
supported: string;
|
175
|
+
|
176
|
+
/**
|
177
|
+
* @default 'top'
|
178
|
+
*/
|
179
|
+
top: string;
|
180
|
+
|
181
|
+
/**
|
182
|
+
* @default 'bottom'
|
183
|
+
*/
|
184
|
+
bottom: string;
|
218
185
|
}
|
219
186
|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
*/
|
246
|
-
method: string;
|
247
|
-
|
248
|
-
/**
|
249
|
-
* @default 'Context specified does not exist'
|
250
|
-
*/
|
251
|
-
invalidContext: string;
|
252
|
-
|
253
|
-
/**
|
254
|
-
* @default 'Sticky element is larger than its container, cannot create sticky.'
|
255
|
-
*/
|
256
|
-
elementSize: string;
|
257
|
-
}
|
187
|
+
interface Errors {
|
188
|
+
/**
|
189
|
+
* @default 'Sticky element must be inside a relative container'
|
190
|
+
*/
|
191
|
+
container: string;
|
192
|
+
|
193
|
+
/**
|
194
|
+
* @default 'Element is hidden, you must call refresh after element becomes visible'
|
195
|
+
*/
|
196
|
+
visible: string;
|
197
|
+
|
198
|
+
/**
|
199
|
+
* @default 'The method you called is not defined.'
|
200
|
+
*/
|
201
|
+
method: string;
|
202
|
+
|
203
|
+
/**
|
204
|
+
* @default 'Context specified does not exist'
|
205
|
+
*/
|
206
|
+
invalidContext: string;
|
207
|
+
|
208
|
+
/**
|
209
|
+
* @default 'Sticky element is larger than its container, cannot create sticky.'
|
210
|
+
*/
|
211
|
+
elementSize: string;
|
258
212
|
}
|
259
213
|
}
|
260
214
|
}
|