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
@@ -116,289 +116,239 @@ declare namespace FomanticUI {
|
|
116
116
|
* Destroys instance and removes all events.
|
117
117
|
*/
|
118
118
|
(behavior: 'destroy'): JQuery;
|
119
|
-
|
120
|
-
<K extends keyof TransitionSettings>(
|
121
|
-
|
122
|
-
|
123
|
-
value?: undefined,
|
124
|
-
): TransitionSettings._Impl[K];
|
125
|
-
<K extends keyof TransitionSettings>(behavior: 'setting', name: K, value: TransitionSettings._Impl[K]): JQuery;
|
126
|
-
(behavior: 'setting', value: TransitionSettings): JQuery;
|
127
|
-
(settings?: TransitionSettings): JQuery;
|
119
|
+
<K extends keyof TransitionSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<TransitionSettings, keyof TransitionSettings>>;
|
120
|
+
<K extends keyof TransitionSettings>(behavior: 'setting', name: K, value: TransitionSettings[K]): JQuery;
|
121
|
+
(behavior: 'setting', value: Partial<Pick<TransitionSettings, keyof TransitionSettings>>): JQuery;
|
122
|
+
(settings?: Partial<Pick<TransitionSettings, keyof TransitionSettings>>): JQuery;
|
128
123
|
}
|
129
124
|
|
130
125
|
/**
|
131
126
|
* @see {@link https://fomantic-ui.com/modules/transition.html#/settings}
|
132
127
|
*/
|
133
|
-
|
134
|
-
|
135
|
-
namespace TransitionSettings {
|
136
|
-
type Param = (
|
137
|
-
| Pick<_Impl, 'animation'>
|
138
|
-
| Pick<_Impl, 'interval'>
|
139
|
-
| Pick<_Impl, 'reverse'>
|
140
|
-
| Pick<_Impl, 'displayType'>
|
141
|
-
| Pick<_Impl, 'duration'>
|
142
|
-
| Pick<_Impl, 'useFailSafe'>
|
143
|
-
| Pick<_Impl, 'allowRepeats'>
|
144
|
-
| Pick<_Impl, 'queue'>
|
145
|
-
| Pick<_Impl, 'skipInlineHidden'>
|
146
|
-
| Pick<_Impl, 'onShow'>
|
147
|
-
| Pick<_Impl, 'onBeforeShow'>
|
148
|
-
| Pick<_Impl, 'onVisible'>
|
149
|
-
| Pick<_Impl, 'onHide'>
|
150
|
-
| Pick<_Impl, 'onBeforeHide'>
|
151
|
-
| Pick<_Impl, 'onHidden'>
|
152
|
-
| Pick<_Impl, 'onStart'>
|
153
|
-
| Pick<_Impl, 'onComplete'>
|
154
|
-
| Pick<_Impl, 'className'>
|
155
|
-
| Pick<_Impl, 'name'>
|
156
|
-
| Pick<_Impl, 'namespace'>
|
157
|
-
| Pick<_Impl, 'silent'>
|
158
|
-
| Pick<_Impl, 'debug'>
|
159
|
-
| Pick<_Impl, 'performance'>
|
160
|
-
| Pick<_Impl, 'verbose'>
|
161
|
-
| Pick<_Impl, 'errors'>
|
162
|
-
) &
|
163
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
164
|
-
|
165
|
-
interface _Impl {
|
166
|
-
// region Transition Settings
|
167
|
-
|
168
|
-
/**
|
169
|
-
* Named animation event to used.
|
170
|
-
* Must be defined in CSS.
|
171
|
-
* @default 'fade'
|
172
|
-
*/
|
173
|
-
animation: string;
|
174
|
-
|
175
|
-
/**
|
176
|
-
* Interval in MS between each elements transition.
|
177
|
-
* @default 0
|
178
|
-
*/
|
179
|
-
interval: number;
|
180
|
-
|
181
|
-
/**
|
182
|
-
* When an interval is specified, sets order of animations. 'auto' reverses only animations that are hiding.
|
183
|
-
* @default 'auto'
|
184
|
-
*/
|
185
|
-
reverse: string | boolean;
|
186
|
-
|
187
|
-
/**
|
188
|
-
* Specify the final display type (block, inline-block etc) so that it doesn't have to be calculated.
|
189
|
-
* @default false
|
190
|
-
*/
|
191
|
-
displayType: false | string;
|
192
|
-
|
193
|
-
/**
|
194
|
-
* Specify the final display type (block, inline-block etc) so that it doesn't have to be calculated.
|
195
|
-
* @default '500ms'
|
196
|
-
*/
|
197
|
-
duration: string;
|
198
|
-
|
199
|
-
/**
|
200
|
-
* If enabled a 'timeout' will be added to ensure 'animationend' callback occurs even if element is hidden.
|
201
|
-
* @default true
|
202
|
-
*/
|
203
|
-
useFailSafe: boolean;
|
204
|
-
|
205
|
-
/**
|
206
|
-
* If enabled will allow same animation to be queued while it is already occurring.
|
207
|
-
* @default false
|
208
|
-
*/
|
209
|
-
allowRepeats: boolean;
|
210
|
-
|
211
|
-
/**
|
212
|
-
* Whether to automatically queue animation if another is occurring.
|
213
|
-
* @default true
|
214
|
-
*/
|
215
|
-
queue: boolean;
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Whether initially inline hidden objects should be skipped for transition.
|
219
|
-
* Useful, if you do the transition for child objects also, but want to have inline hidden children (defined by style="display:none;") still kept hidden while the parent gets animated.
|
220
|
-
* Accordion uses this.
|
221
|
-
* @default false
|
222
|
-
*/
|
223
|
-
skipInlineHidden: boolean;
|
224
|
-
|
225
|
-
// endregion
|
226
|
-
|
227
|
-
// region Callbacks
|
228
|
-
|
229
|
-
/**
|
230
|
-
* Callback on each transition that changes visibility to shown.
|
231
|
-
* Returning 'false' from this callback will cancel the transition from showing.
|
232
|
-
*/
|
233
|
-
onShow(this: JQuery): boolean;
|
234
|
-
|
235
|
-
/**
|
236
|
-
* Callback right before the show transition should start.
|
237
|
-
* The 'showFunction' parameter has to be called inside the callback to trigger the transition show
|
238
|
-
*/
|
239
|
-
onBeforeShow(this: JQuery, showFunction: Function): void;
|
240
|
-
|
241
|
-
/**
|
242
|
-
* Callback once the show transition has finished.
|
243
|
-
*/
|
244
|
-
onVisible(this: JQuery): void;
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Callback on each transition that changes visibility to hidden.
|
248
|
-
* Returning 'false' from this callback will cancel the transition from hiding.
|
249
|
-
*/
|
250
|
-
onHide(this: JQuery): boolean;
|
251
|
-
|
252
|
-
/**
|
253
|
-
* Callback right before the hide transition should start.
|
254
|
-
* The 'hideFunction' parameter has to be called inside the callback to trigger the transition hide.
|
255
|
-
*/
|
256
|
-
onBeforeHide(this: JQuery, hideFunction: Function): void;
|
257
|
-
|
258
|
-
/**
|
259
|
-
* Callback once the transition hide has finished.
|
260
|
-
*/
|
261
|
-
onHidden(this: JQuery): void;
|
262
|
-
|
263
|
-
/**
|
264
|
-
* Callback on animation start, useful for queued animations.
|
265
|
-
*/
|
266
|
-
onStart(this: JQuery): void;
|
267
|
-
|
268
|
-
/**
|
269
|
-
* Callback on each transition complete.
|
270
|
-
*/
|
271
|
-
onComplete(this: JQuery): void;
|
272
|
-
|
273
|
-
// endregion
|
274
|
-
|
275
|
-
// region DOM Settings
|
276
|
-
|
277
|
-
/**
|
278
|
-
* Class names used to determine element state.
|
279
|
-
*/
|
280
|
-
className: Transition.ClassNameSettings;
|
281
|
-
|
282
|
-
// endregion
|
283
|
-
|
284
|
-
// region Debug Settings
|
285
|
-
|
286
|
-
/**
|
287
|
-
* Name used in log statements
|
288
|
-
*/
|
289
|
-
name: string;
|
290
|
-
|
291
|
-
/**
|
292
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
293
|
-
*/
|
294
|
-
namespace: string;
|
295
|
-
|
296
|
-
/**
|
297
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
298
|
-
*/
|
299
|
-
silent: boolean;
|
300
|
-
|
301
|
-
/**
|
302
|
-
* Debug output to console
|
303
|
-
*/
|
304
|
-
debug: boolean;
|
305
|
-
|
306
|
-
/**
|
307
|
-
* Show console.table output with performance metrics
|
308
|
-
*/
|
309
|
-
performance: boolean;
|
310
|
-
|
311
|
-
/**
|
312
|
-
* Debug output includes all internal behaviors
|
313
|
-
*/
|
314
|
-
verbose: boolean;
|
315
|
-
|
316
|
-
errors: Transition.ErrorSettings;
|
317
|
-
|
318
|
-
// endregion
|
319
|
-
}
|
128
|
+
interface TransitionSettings {
|
129
|
+
// region Transition Settings
|
320
130
|
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
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
|
-
* @default 'out'
|
371
|
-
*/
|
372
|
-
outward: string;
|
373
|
-
|
374
|
-
/**
|
375
|
-
* @default 'transition'
|
376
|
-
*/
|
377
|
-
transition: string;
|
378
|
-
|
379
|
-
/**
|
380
|
-
* @default 'visible'
|
381
|
-
*/
|
382
|
-
visible: string;
|
383
|
-
}
|
384
|
-
}
|
131
|
+
/**
|
132
|
+
* Named animation event to used.
|
133
|
+
* Must be defined in CSS.
|
134
|
+
* @default 'fade'
|
135
|
+
*/
|
136
|
+
animation: string;
|
137
|
+
|
138
|
+
/**
|
139
|
+
* Interval in MS between each elements transition.
|
140
|
+
* @default 0
|
141
|
+
*/
|
142
|
+
interval: number;
|
143
|
+
|
144
|
+
/**
|
145
|
+
* When an interval is specified, sets order of animations. 'auto' reverses only animations that are hiding.
|
146
|
+
* @default 'auto'
|
147
|
+
*/
|
148
|
+
reverse: string | boolean;
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Specify the final display type (block, inline-block etc) so that it doesn't have to be calculated.
|
152
|
+
* @default false
|
153
|
+
*/
|
154
|
+
displayType: false | string;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Specify the final display type (block, inline-block etc) so that it doesn't have to be calculated.
|
158
|
+
* @default '500ms'
|
159
|
+
*/
|
160
|
+
duration: string;
|
161
|
+
|
162
|
+
/**
|
163
|
+
* If enabled a 'timeout' will be added to ensure 'animationend' callback occurs even if element is hidden.
|
164
|
+
* @default true
|
165
|
+
*/
|
166
|
+
useFailSafe: boolean;
|
167
|
+
|
168
|
+
/**
|
169
|
+
* If enabled will allow same animation to be queued while it is already occurring.
|
170
|
+
* @default false
|
171
|
+
*/
|
172
|
+
allowRepeats: boolean;
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Whether to automatically queue animation if another is occurring.
|
176
|
+
* @default true
|
177
|
+
*/
|
178
|
+
queue: boolean;
|
385
179
|
|
386
|
-
|
180
|
+
/**
|
181
|
+
* Whether initially inline hidden objects should be skipped for transition.
|
182
|
+
* Useful, if you do the transition for child objects also, but want to have inline hidden children (defined by style="display:none;") still kept hidden while the parent gets animated.
|
183
|
+
* Accordion uses this.
|
184
|
+
* @default false
|
185
|
+
*/
|
186
|
+
skipInlineHidden: boolean;
|
187
|
+
|
188
|
+
// endregion
|
189
|
+
|
190
|
+
// region Callbacks
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Callback on each transition that changes visibility to shown.
|
194
|
+
* Returning 'false' from this callback will cancel the transition from showing.
|
195
|
+
*/
|
196
|
+
onShow(this: JQuery): boolean;
|
197
|
+
|
198
|
+
/**
|
199
|
+
* Callback right before the show transition should start.
|
200
|
+
* The 'showFunction' parameter has to be called inside the callback to trigger the transition show
|
201
|
+
*/
|
202
|
+
onBeforeShow(this: JQuery, showFunction: Function): void;
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Callback once the show transition has finished.
|
206
|
+
*/
|
207
|
+
onVisible(this: JQuery): void;
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Callback on each transition that changes visibility to hidden.
|
211
|
+
* Returning 'false' from this callback will cancel the transition from hiding.
|
212
|
+
*/
|
213
|
+
onHide(this: JQuery): boolean;
|
387
214
|
|
388
|
-
|
389
|
-
|
215
|
+
/**
|
216
|
+
* Callback right before the hide transition should start.
|
217
|
+
* The 'hideFunction' parameter has to be called inside the callback to trigger the transition hide.
|
218
|
+
*/
|
219
|
+
onBeforeHide(this: JQuery, hideFunction: Function): void;
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Callback once the transition hide has finished.
|
223
|
+
*/
|
224
|
+
onHidden(this: JQuery): void;
|
225
|
+
|
226
|
+
/**
|
227
|
+
* Callback on animation start, useful for queued animations.
|
228
|
+
*/
|
229
|
+
onStart(this: JQuery): void;
|
230
|
+
|
231
|
+
/**
|
232
|
+
* Callback on each transition complete.
|
233
|
+
*/
|
234
|
+
onComplete(this: JQuery): void;
|
235
|
+
|
236
|
+
// endregion
|
237
|
+
|
238
|
+
// region DOM Settings
|
239
|
+
|
240
|
+
/**
|
241
|
+
* Class names used to determine element state.
|
242
|
+
*/
|
243
|
+
className: Transition.ClassNameSettings;
|
244
|
+
|
245
|
+
// endregion
|
246
|
+
|
247
|
+
// region Debug Settings
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Name used in log statements
|
251
|
+
* @default 'Transition'
|
252
|
+
*/
|
253
|
+
name: string;
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
257
|
+
* @default 'transition'
|
258
|
+
*/
|
259
|
+
namespace: string;
|
260
|
+
|
261
|
+
/**
|
262
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
263
|
+
* @default false
|
264
|
+
*/
|
265
|
+
silent: boolean;
|
266
|
+
|
267
|
+
/**
|
268
|
+
* Debug output to console
|
269
|
+
* @default false
|
270
|
+
*/
|
271
|
+
debug: boolean;
|
272
|
+
|
273
|
+
/**
|
274
|
+
* Show console.table output with performance metrics
|
275
|
+
* @default true
|
276
|
+
*/
|
277
|
+
performance: boolean;
|
278
|
+
|
279
|
+
/**
|
280
|
+
* Debug output includes all internal behaviors
|
281
|
+
* @default false
|
282
|
+
*/
|
283
|
+
verbose: boolean;
|
284
|
+
|
285
|
+
errors: Transition.ErrorSettings;
|
286
|
+
|
287
|
+
// endregion
|
288
|
+
}
|
289
|
+
|
290
|
+
namespace Transition {
|
291
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
292
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
293
|
+
|
294
|
+
namespace Settings {
|
295
|
+
interface ClassNames {
|
296
|
+
/**
|
297
|
+
* @default 'animating'
|
298
|
+
*/
|
299
|
+
animating: string;
|
300
|
+
|
301
|
+
/**
|
302
|
+
* @default 'disabled'
|
303
|
+
*/
|
304
|
+
disabled: string;
|
305
|
+
|
306
|
+
/**
|
307
|
+
* @default 'hidden'
|
308
|
+
*/
|
309
|
+
hidden: string;
|
310
|
+
|
311
|
+
/**
|
312
|
+
* @default 'in'
|
313
|
+
*/
|
314
|
+
inward: string;
|
315
|
+
|
316
|
+
/**
|
317
|
+
* @default 'loading'
|
318
|
+
*/
|
319
|
+
loading: string;
|
320
|
+
|
321
|
+
/**
|
322
|
+
* @default 'looping'
|
323
|
+
*/
|
324
|
+
looping: string;
|
325
|
+
|
326
|
+
/**
|
327
|
+
* @default 'out'
|
328
|
+
*/
|
329
|
+
outward: string;
|
330
|
+
|
331
|
+
/**
|
332
|
+
* @default 'transition'
|
333
|
+
*/
|
334
|
+
transition: string;
|
335
|
+
|
336
|
+
/**
|
337
|
+
* @default 'visible'
|
338
|
+
*/
|
339
|
+
visible: string;
|
340
|
+
}
|
390
341
|
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
342
|
+
interface Errors {
|
343
|
+
/**
|
344
|
+
* @default 'You called a rating action that was not defined'
|
345
|
+
*/
|
346
|
+
noAnimation: string;
|
396
347
|
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
}
|
348
|
+
/**
|
349
|
+
* @default 'The method you called is not defined'
|
350
|
+
*/
|
351
|
+
method: string;
|
402
352
|
}
|
403
353
|
}
|
404
354
|
}
|