fomantic-ui 2.9.3-beta.46 → 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/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
@@ -68,410 +68,334 @@ declare namespace FomanticUI {
|
|
68
68
|
*/
|
69
69
|
(behavior: 'destroy'): JQuery;
|
70
70
|
|
71
|
-
<K extends keyof SidebarSettings>(behavior: 'setting', name: K, value?: undefined): SidebarSettings
|
72
|
-
<K extends keyof SidebarSettings>(behavior: 'setting', name: K, value: SidebarSettings
|
73
|
-
(behavior: 'setting', value: SidebarSettings): JQuery;
|
74
|
-
(settings?: SidebarSettings): JQuery;
|
71
|
+
<K extends keyof SidebarSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<SidebarSettings, keyof SidebarSettings>>;
|
72
|
+
<K extends keyof SidebarSettings>(behavior: 'setting', name: K, value: SidebarSettings[K]): JQuery;
|
73
|
+
(behavior: 'setting', value: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
|
74
|
+
(settings?: Partial<Pick<SidebarSettings, keyof SidebarSettings>>): JQuery;
|
75
75
|
}
|
76
76
|
|
77
77
|
/**
|
78
78
|
* @see {@link https://fomantic-ui.com/modules/sidebar.html#/settings}
|
79
79
|
*/
|
80
|
-
|
81
|
-
|
82
|
-
namespace SidebarSettings {
|
83
|
-
type Param = (
|
84
|
-
| Pick<_Impl, 'context'>
|
85
|
-
| Pick<_Impl, 'exclusive'>
|
86
|
-
| Pick<_Impl, 'closable'>
|
87
|
-
| Pick<_Impl, 'dimPage'>
|
88
|
-
| Pick<_Impl, 'blurring'>
|
89
|
-
| Pick<_Impl, 'scrollLock'>
|
90
|
-
| Pick<_Impl, 'returnScroll'>
|
91
|
-
| Pick<_Impl, 'delaySetup'>
|
92
|
-
| Pick<_Impl, 'transition'>
|
93
|
-
| Pick<_Impl, 'mobileTransition'>
|
94
|
-
| Pick<_Impl, 'defaultTransition'>
|
95
|
-
| Pick<_Impl, 'onChange'>
|
96
|
-
| Pick<_Impl, 'onShow'>
|
97
|
-
| Pick<_Impl, 'onHide'>
|
98
|
-
| Pick<_Impl, 'onHidden'>
|
99
|
-
| Pick<_Impl, 'onVisible'>
|
100
|
-
| Pick<_Impl, 'selector'>
|
101
|
-
| Pick<_Impl, 'className'>
|
102
|
-
| Pick<_Impl, 'regExp'>
|
103
|
-
| Pick<_Impl, 'name'>
|
104
|
-
| Pick<_Impl, 'namespace'>
|
105
|
-
| Pick<_Impl, 'silent'>
|
106
|
-
| Pick<_Impl, 'debug'>
|
107
|
-
| Pick<_Impl, 'performance'>
|
108
|
-
| Pick<_Impl, 'verbose'>
|
109
|
-
| Pick<_Impl, 'error'>
|
110
|
-
) &
|
111
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
112
|
-
|
113
|
-
interface _Impl {
|
114
|
-
// region Sidebar Settings
|
115
|
-
|
116
|
-
/**
|
117
|
-
* Context which sidebar will appear inside.
|
118
|
-
* @default 'body'
|
119
|
-
*/
|
120
|
-
context: string | JQuery;
|
121
|
-
|
122
|
-
/**
|
123
|
-
* Whether multiple sidebars can be open at once.
|
124
|
-
* @default false
|
125
|
-
*/
|
126
|
-
exclusive: boolean;
|
127
|
-
|
128
|
-
/**
|
129
|
-
* Whether sidebar can be closed by clicking on page.
|
130
|
-
* @default true
|
131
|
-
*/
|
132
|
-
closable: boolean;
|
133
|
-
|
134
|
-
/**
|
135
|
-
* Whether to dim page contents when sidebar is visible.
|
136
|
-
* @default true
|
137
|
-
*/
|
138
|
-
dimPage: boolean;
|
139
|
-
|
140
|
-
/**
|
141
|
-
* Whether dimmer should blur background.
|
142
|
-
* @default false
|
143
|
-
*/
|
144
|
-
blurring: boolean;
|
145
|
-
|
146
|
-
/**
|
147
|
-
* Whether to lock page scroll when sidebar is visible.
|
148
|
-
* @default false
|
149
|
-
*/
|
150
|
-
scrollLock: boolean;
|
151
|
-
|
152
|
-
/**
|
153
|
-
* Whether to return to original scroll position when sidebar is hidden, automatically occurs with 'transition: scale'.
|
154
|
-
* @default false
|
155
|
-
*/
|
156
|
-
returnScroll: boolean;
|
157
|
-
|
158
|
-
/**
|
159
|
-
* When sidebar is initialized without the proper HTML, using this option will defer creation of DOM to use 'requestAnimationFrame'.
|
160
|
-
* @default false
|
161
|
-
*/
|
162
|
-
delaySetup: boolean;
|
163
|
-
|
164
|
-
// endregion
|
165
|
-
|
166
|
-
// region Animation Settings
|
167
|
-
|
168
|
-
/**
|
169
|
-
* Named transition to use when animating sidebar.
|
170
|
-
* Defaults to 'auto' which selects transition from 'defaultTransition' based on direction.
|
171
|
-
* @default 'auto'
|
172
|
-
*/
|
173
|
-
transition: string;
|
174
|
-
|
175
|
-
/**
|
176
|
-
* Named transition to use when animating when detecting mobile device.
|
177
|
-
* Defaults to 'auto' which selects transition from 'defaultTransition' based on direction.
|
178
|
-
* @default 'auto'
|
179
|
-
*/
|
180
|
-
mobileTransition: string;
|
181
|
-
|
182
|
-
/**
|
183
|
-
* Default transitions for each direction and screen size, used with 'transition: auto'.
|
184
|
-
* @default {}
|
185
|
-
*/
|
186
|
-
defaultTransition: object;
|
187
|
-
|
188
|
-
// endregion
|
189
|
-
|
190
|
-
// region Callbacks
|
191
|
-
|
192
|
-
/**
|
193
|
-
* Is called when a sidebar has finished animating in.
|
194
|
-
*/
|
195
|
-
onVisible(this: JQuery): void;
|
196
|
-
|
197
|
-
/**
|
198
|
-
* Is called when a sidebar begins animating in.
|
199
|
-
* Returning 'false' from this callback will cancel the sidebar from showing.
|
200
|
-
*/
|
201
|
-
onShow(this: JQuery): boolean;
|
202
|
-
|
203
|
-
/**
|
204
|
-
* Is called when a sidebar begins to hide or show.
|
205
|
-
*/
|
206
|
-
onChange(this: JQuery): void;
|
207
|
-
|
208
|
-
/**
|
209
|
-
* Is called before a sidebar begins to animate out.
|
210
|
-
* Returning 'false' from this callback will cancel the sidebar from hiding.
|
211
|
-
*/
|
212
|
-
onHide(this: JQuery): boolean;
|
213
|
-
|
214
|
-
/**
|
215
|
-
* Is called after a sidebar has finished animating out.
|
216
|
-
*/
|
217
|
-
onHidden(this: JQuery): void;
|
218
|
-
|
219
|
-
// endregion
|
220
|
-
|
221
|
-
// region DOM Settings
|
222
|
-
|
223
|
-
/**
|
224
|
-
* DOM Selectors used internally.
|
225
|
-
* Selectors used to find parts of a module.
|
226
|
-
*/
|
227
|
-
selector: Sidebar.SelectorSettings;
|
228
|
-
|
229
|
-
/**
|
230
|
-
* Regular expressions used in the module.
|
231
|
-
*/
|
232
|
-
regExp: Sidebar.RegExpSettings;
|
233
|
-
|
234
|
-
/**
|
235
|
-
* Class names used to determine element state.
|
236
|
-
*/
|
237
|
-
className: Sidebar.ClassNameSettings;
|
238
|
-
|
239
|
-
// endregion
|
240
|
-
|
241
|
-
// region Debug Settings
|
242
|
-
|
243
|
-
/**
|
244
|
-
* Name used in log statements
|
245
|
-
*/
|
246
|
-
name: string;
|
247
|
-
|
248
|
-
/**
|
249
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
250
|
-
*/
|
251
|
-
namespace: string;
|
252
|
-
|
253
|
-
/**
|
254
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
255
|
-
*/
|
256
|
-
silent: boolean;
|
257
|
-
|
258
|
-
/**
|
259
|
-
* Debug output to console
|
260
|
-
*/
|
261
|
-
debug: boolean;
|
262
|
-
|
263
|
-
/**
|
264
|
-
* Show console.table output with performance metrics
|
265
|
-
*/
|
266
|
-
performance: boolean;
|
267
|
-
|
268
|
-
/**
|
269
|
-
* Debug output includes all internal behaviors
|
270
|
-
*/
|
271
|
-
verbose: boolean;
|
272
|
-
|
273
|
-
error: Sidebar.ErrorSettings;
|
274
|
-
|
275
|
-
// endregion
|
276
|
-
}
|
80
|
+
interface SidebarSettings {
|
81
|
+
// region Sidebar Settings
|
277
82
|
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
| Pick<_Impl, 'bodyFixed'>
|
284
|
-
| Pick<_Impl, 'fixed'>
|
285
|
-
| Pick<_Impl, 'omitted'>
|
286
|
-
| Pick<_Impl, 'pusher'>
|
287
|
-
| Pick<_Impl, 'sidebar'>
|
288
|
-
) &
|
289
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
290
|
-
|
291
|
-
interface _Impl {
|
292
|
-
/**
|
293
|
-
* @default '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close'
|
294
|
-
*/
|
295
|
-
bodyFixed: string;
|
296
|
-
|
297
|
-
/**
|
298
|
-
* @default '.fixed'
|
299
|
-
*/
|
300
|
-
fixed: string;
|
301
|
-
|
302
|
-
/**
|
303
|
-
* @default 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed'
|
304
|
-
*/
|
305
|
-
omitted: string;
|
306
|
-
|
307
|
-
/**
|
308
|
-
* @default '.pusher'
|
309
|
-
*/
|
310
|
-
pusher: string;
|
311
|
-
|
312
|
-
/**
|
313
|
-
* @default '.ui.sidebar'
|
314
|
-
*/
|
315
|
-
sidebar: string;
|
316
|
-
}
|
317
|
-
}
|
83
|
+
/**
|
84
|
+
* Context which sidebar will appear inside.
|
85
|
+
* @default 'body'
|
86
|
+
*/
|
87
|
+
context: string | JQuery;
|
318
88
|
|
319
|
-
|
89
|
+
/**
|
90
|
+
* Whether multiple sidebars can be open at once.
|
91
|
+
* @default false
|
92
|
+
*/
|
93
|
+
exclusive: boolean;
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Whether sidebar can be closed by clicking on page.
|
97
|
+
* @default true
|
98
|
+
*/
|
99
|
+
closable: boolean;
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Whether to dim page contents when sidebar is visible.
|
103
|
+
* @default true
|
104
|
+
*/
|
105
|
+
dimPage: boolean;
|
320
106
|
|
321
|
-
|
322
|
-
|
323
|
-
|
107
|
+
/**
|
108
|
+
* Whether dimmer should blur background.
|
109
|
+
* @default false
|
110
|
+
*/
|
111
|
+
blurring: boolean;
|
324
112
|
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
113
|
+
/**
|
114
|
+
* Whether to lock page scroll when sidebar is visible.
|
115
|
+
* @default false
|
116
|
+
*/
|
117
|
+
scrollLock: boolean;
|
330
118
|
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
119
|
+
/**
|
120
|
+
* Whether to return to original scroll position when sidebar is hidden, automatically occurs with 'transition: scale'.
|
121
|
+
* @default false
|
122
|
+
*/
|
123
|
+
returnScroll: boolean;
|
335
124
|
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
}
|
125
|
+
/**
|
126
|
+
* When sidebar is initialized without the proper HTML, using this option will defer creation of DOM to use 'requestAnimationFrame'.
|
127
|
+
* @default false
|
128
|
+
*/
|
129
|
+
delaySetup: boolean;
|
342
130
|
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
* @default 'dimmed'
|
387
|
-
*/
|
388
|
-
dimmed: string;
|
389
|
-
|
390
|
-
/**
|
391
|
-
* @default 'ios'
|
392
|
-
*/
|
393
|
-
ios: string;
|
394
|
-
|
395
|
-
/**
|
396
|
-
* @default 'locked'
|
397
|
-
*/
|
398
|
-
locked: string;
|
399
|
-
|
400
|
-
/**
|
401
|
-
* @default 'pushable'
|
402
|
-
*/
|
403
|
-
pushable: string;
|
404
|
-
|
405
|
-
/**
|
406
|
-
* @default 'pushed'
|
407
|
-
*/
|
408
|
-
pushed: string;
|
409
|
-
|
410
|
-
/**
|
411
|
-
* @default 'right'
|
412
|
-
*/
|
413
|
-
right: string;
|
414
|
-
|
415
|
-
/**
|
416
|
-
* @default 'top'
|
417
|
-
*/
|
418
|
-
top: string;
|
419
|
-
|
420
|
-
/**
|
421
|
-
* @default 'left'
|
422
|
-
*/
|
423
|
-
left: string;
|
424
|
-
|
425
|
-
/**
|
426
|
-
* @default 'bottom'
|
427
|
-
*/
|
428
|
-
bottom: string;
|
429
|
-
|
430
|
-
/**
|
431
|
-
* @default 'visible'
|
432
|
-
*/
|
433
|
-
visible: string;
|
434
|
-
}
|
435
|
-
}
|
131
|
+
// endregion
|
132
|
+
|
133
|
+
// region Animation Settings
|
134
|
+
|
135
|
+
/**
|
136
|
+
* Named transition to use when animating sidebar.
|
137
|
+
* Defaults to 'auto' which selects transition from 'defaultTransition' based on direction.
|
138
|
+
* @default 'auto'
|
139
|
+
*/
|
140
|
+
transition: string;
|
141
|
+
|
142
|
+
/**
|
143
|
+
* Named transition to use when animating when detecting mobile device.
|
144
|
+
* Defaults to 'auto' which selects transition from 'defaultTransition' based on direction.
|
145
|
+
* @default 'auto'
|
146
|
+
*/
|
147
|
+
mobileTransition: string;
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Default transitions for each direction and screen size, used with 'transition: auto'.
|
151
|
+
* @default {}
|
152
|
+
*/
|
153
|
+
defaultTransition: object;
|
154
|
+
|
155
|
+
// endregion
|
156
|
+
|
157
|
+
// region Callbacks
|
158
|
+
|
159
|
+
/**
|
160
|
+
* Is called when a sidebar has finished animating in.
|
161
|
+
*/
|
162
|
+
onVisible(this: JQuery): void;
|
163
|
+
|
164
|
+
/**
|
165
|
+
* Is called when a sidebar begins animating in.
|
166
|
+
* Returning 'false' from this callback will cancel the sidebar from showing.
|
167
|
+
*/
|
168
|
+
onShow(this: JQuery): boolean;
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Is called when a sidebar begins to hide or show.
|
172
|
+
*/
|
173
|
+
onChange(this: JQuery): void;
|
436
174
|
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
175
|
+
/**
|
176
|
+
* Is called before a sidebar begins to animate out.
|
177
|
+
* Returning 'false' from this callback will cancel the sidebar from hiding.
|
178
|
+
*/
|
179
|
+
onHide(this: JQuery): boolean;
|
180
|
+
|
181
|
+
/**
|
182
|
+
* Is called after a sidebar has finished animating out.
|
183
|
+
*/
|
184
|
+
onHidden(this: JQuery): void;
|
185
|
+
|
186
|
+
// endregion
|
187
|
+
|
188
|
+
// region DOM Settings
|
189
|
+
|
190
|
+
/**
|
191
|
+
* DOM Selectors used internally.
|
192
|
+
* Selectors used to find parts of a module.
|
193
|
+
*/
|
194
|
+
selector: Sidebar.SelectorSettings;
|
195
|
+
|
196
|
+
/**
|
197
|
+
* Regular expressions used in the module.
|
198
|
+
*/
|
199
|
+
regExp: Sidebar.RegExpSettings;
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Class names used to determine element state.
|
203
|
+
*/
|
204
|
+
className: Sidebar.ClassNameSettings;
|
205
|
+
|
206
|
+
// endregion
|
207
|
+
|
208
|
+
// region Debug Settings
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Name used in log statements
|
212
|
+
* @default 'Sidebar'
|
213
|
+
*/
|
214
|
+
name: string;
|
215
|
+
|
216
|
+
/**
|
217
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
218
|
+
* @default 'sidebar'
|
219
|
+
*/
|
220
|
+
namespace: string;
|
221
|
+
|
222
|
+
/**
|
223
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
224
|
+
* @default false
|
225
|
+
*/
|
226
|
+
silent: boolean;
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Debug output to console
|
230
|
+
* @default false
|
231
|
+
*/
|
232
|
+
debug: boolean;
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Show console.table output with performance metrics
|
236
|
+
* @default true
|
237
|
+
*/
|
238
|
+
performance: boolean;
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Debug output includes all internal behaviors
|
242
|
+
* @default false
|
243
|
+
*/
|
244
|
+
verbose: boolean;
|
245
|
+
|
246
|
+
error: Sidebar.ErrorSettings;
|
247
|
+
|
248
|
+
// endregion
|
249
|
+
}
|
250
|
+
|
251
|
+
namespace Sidebar {
|
252
|
+
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
253
|
+
type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
|
254
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
255
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
256
|
+
|
257
|
+
namespace Settings {
|
258
|
+
interface Selectors {
|
259
|
+
/**
|
260
|
+
* @default '> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close'
|
261
|
+
*/
|
262
|
+
bodyFixed: string;
|
263
|
+
|
264
|
+
/**
|
265
|
+
* @default '.fixed'
|
266
|
+
*/
|
267
|
+
fixed: string;
|
268
|
+
|
269
|
+
/**
|
270
|
+
* @default 'script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed'
|
271
|
+
*/
|
272
|
+
omitted: string;
|
273
|
+
|
274
|
+
/**
|
275
|
+
* @default '.pusher'
|
276
|
+
*/
|
277
|
+
pusher: string;
|
278
|
+
|
279
|
+
/**
|
280
|
+
* @default '.ui.sidebar'
|
281
|
+
*/
|
282
|
+
sidebar: string;
|
283
|
+
}
|
284
|
+
|
285
|
+
interface RegExps {
|
286
|
+
/**
|
287
|
+
* @default /(iPad|iPhone|iPod)/g
|
288
|
+
*/
|
289
|
+
ios: RegExp;
|
290
|
+
|
291
|
+
/**
|
292
|
+
* @default /(CriOS)/g
|
293
|
+
*/
|
294
|
+
mobileChrome: RegExp;
|
295
|
+
|
296
|
+
/**
|
297
|
+
* @default /Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g
|
298
|
+
*/
|
299
|
+
mobile: RegExp;
|
300
|
+
}
|
301
|
+
|
302
|
+
interface ClassNames {
|
303
|
+
/**
|
304
|
+
* @default 'active'
|
305
|
+
*/
|
306
|
+
active: string;
|
307
|
+
|
308
|
+
/**
|
309
|
+
* @default 'animating'
|
310
|
+
*/
|
311
|
+
animating: string;
|
312
|
+
|
313
|
+
/**
|
314
|
+
* @default 'blurring'
|
315
|
+
*/
|
316
|
+
blurring: string;
|
317
|
+
|
318
|
+
/**
|
319
|
+
* @default 'closing'
|
320
|
+
*/
|
321
|
+
closing: string;
|
322
|
+
|
323
|
+
/**
|
324
|
+
* @default 'dimmed'
|
325
|
+
*/
|
326
|
+
dimmed: string;
|
327
|
+
|
328
|
+
/**
|
329
|
+
* @default 'ios'
|
330
|
+
*/
|
331
|
+
ios: string;
|
332
|
+
|
333
|
+
/**
|
334
|
+
* @default 'locked'
|
335
|
+
*/
|
336
|
+
locked: string;
|
337
|
+
|
338
|
+
/**
|
339
|
+
* @default 'pushable'
|
340
|
+
*/
|
341
|
+
pushable: string;
|
342
|
+
|
343
|
+
/**
|
344
|
+
* @default 'pushed'
|
345
|
+
*/
|
346
|
+
pushed: string;
|
347
|
+
|
348
|
+
/**
|
349
|
+
* @default 'right'
|
350
|
+
*/
|
351
|
+
right: string;
|
352
|
+
|
353
|
+
/**
|
354
|
+
* @default 'top'
|
355
|
+
*/
|
356
|
+
top: string;
|
357
|
+
|
358
|
+
/**
|
359
|
+
* @default 'left'
|
360
|
+
*/
|
361
|
+
left: string;
|
362
|
+
|
363
|
+
/**
|
364
|
+
* @default 'bottom'
|
365
|
+
*/
|
366
|
+
bottom: string;
|
367
|
+
|
368
|
+
/**
|
369
|
+
* @default 'visible'
|
370
|
+
*/
|
371
|
+
visible: string;
|
372
|
+
}
|
373
|
+
|
374
|
+
interface Errors {
|
375
|
+
/**
|
376
|
+
* @default 'The method you called is not defined.'
|
377
|
+
*/
|
378
|
+
method: string;
|
379
|
+
|
380
|
+
/**
|
381
|
+
* @default 'Had to add pusher element. For optimal performance make sure body content is inside a pusher element'
|
382
|
+
*/
|
383
|
+
pusher: string;
|
384
|
+
|
385
|
+
/**
|
386
|
+
* @default 'Had to move sidebar. For optimal performance make sure sidebar and pusher are direct children of your body tag'
|
387
|
+
*/
|
388
|
+
movedSidebar: string;
|
389
|
+
|
390
|
+
/**
|
391
|
+
* @default 'The overlay setting is no longer supported, use animation: overlay'
|
392
|
+
*/
|
393
|
+
overlay: string;
|
394
|
+
|
395
|
+
/**
|
396
|
+
* @default 'There were no elements that matched the specified selector'
|
397
|
+
*/
|
398
|
+
notFound: string;
|
475
399
|
}
|
476
400
|
}
|
477
401
|
}
|