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
@@ -158,375 +158,301 @@ declare namespace FomanticUI {
|
|
158
158
|
*/
|
159
159
|
(behavior: 'destroy'): JQuery;
|
160
160
|
|
161
|
-
<K extends keyof ProgressSettings>(behavior: 'setting', name: K, value?: undefined): ProgressSettings
|
162
|
-
<K extends keyof ProgressSettings>(behavior: 'setting', name: K, value: ProgressSettings
|
163
|
-
(behavior: 'setting', value: ProgressSettings): JQuery;
|
164
|
-
(settings?: ProgressSettings): JQuery;
|
161
|
+
<K extends keyof ProgressSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<ProgressSettings, keyof ProgressSettings>>;
|
162
|
+
<K extends keyof ProgressSettings>(behavior: 'setting', name: K, value: ProgressSettings[K]): JQuery;
|
163
|
+
(behavior: 'setting', value: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
|
164
|
+
(settings?: Partial<Pick<ProgressSettings, keyof ProgressSettings>>): JQuery;
|
165
165
|
}
|
166
166
|
|
167
167
|
/**
|
168
168
|
* @see {@link https://fomantic-ui.com/modules/progress.html#/settings}
|
169
169
|
*/
|
170
|
-
|
171
|
-
|
172
|
-
namespace ProgressSettings {
|
173
|
-
type Param = (
|
174
|
-
| Pick<_Impl, 'autoSuccess'>
|
175
|
-
| Pick<_Impl, 'showActivity'>
|
176
|
-
| Pick<_Impl, 'limitValues'>
|
177
|
-
| Pick<_Impl, 'label'>
|
178
|
-
| Pick<_Impl, 'random'>
|
179
|
-
| Pick<_Impl, 'precision'>
|
180
|
-
| Pick<_Impl, 'total'>
|
181
|
-
| Pick<_Impl, 'value'>
|
182
|
-
| Pick<_Impl, 'onChange'>
|
183
|
-
| Pick<_Impl, 'onSuccess'>
|
184
|
-
| Pick<_Impl, 'onActive'>
|
185
|
-
| Pick<_Impl, 'onError'>
|
186
|
-
| Pick<_Impl, 'onWarning'>
|
187
|
-
| Pick<_Impl, 'selector'>
|
188
|
-
| Pick<_Impl, 'className'>
|
189
|
-
| Pick<_Impl, 'name'>
|
190
|
-
| Pick<_Impl, 'namespace'>
|
191
|
-
| Pick<_Impl, 'silent'>
|
192
|
-
| Pick<_Impl, 'debug'>
|
193
|
-
| Pick<_Impl, 'performance'>
|
194
|
-
| Pick<_Impl, 'verbose'>
|
195
|
-
| Pick<_Impl, 'error'>
|
196
|
-
) &
|
197
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
198
|
-
|
199
|
-
interface _Impl {
|
200
|
-
// region Progress Settings
|
201
|
-
|
202
|
-
/**
|
203
|
-
* Whether success state should automatically trigger when progress completes.
|
204
|
-
* @default true
|
205
|
-
*/
|
206
|
-
autoSuccess: boolean;
|
207
|
-
|
208
|
-
/**
|
209
|
-
* Whether progress should automatically show activity when incremented.
|
210
|
-
* @default true
|
211
|
-
*/
|
212
|
-
showActivity: boolean;
|
213
|
-
|
214
|
-
/**
|
215
|
-
* When set to 'true', values that calculate to above 100% or below 0% will be adjusted.
|
216
|
-
* When set to 'false', inappropriate values will produce an error.
|
217
|
-
* @default true
|
218
|
-
*/
|
219
|
-
limitValues: boolean;
|
220
|
-
|
221
|
-
/**
|
222
|
-
* Can be set to either to display progress as 'percent' or 'ratio'.
|
223
|
-
* Matches up to corresponding text template with the same name.
|
224
|
-
* @default 'percent'
|
225
|
-
*/
|
226
|
-
label: 'percent' | 'ratio';
|
227
|
-
|
228
|
-
/**
|
229
|
-
* When incrementing without value, sets range for random increment value.
|
230
|
-
* @default {}
|
231
|
-
*/
|
232
|
-
random: object;
|
233
|
-
|
234
|
-
/**
|
235
|
-
* Decimal point precision for calculated progress.
|
236
|
-
* @default 0
|
237
|
-
*/
|
238
|
-
precision: number;
|
239
|
-
|
240
|
-
/**
|
241
|
-
* Setting a total value will make each call to increment get closer to this total (i.e. 1/20, 2/20 etc).
|
242
|
-
* @default false
|
243
|
-
*/
|
244
|
-
total: false | number;
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Sets current value, when total is specified, this is used to calculate a ratio of the total, with percent this should be the overall percent.
|
248
|
-
* @default false
|
249
|
-
*/
|
250
|
-
value: false | number;
|
251
|
-
|
252
|
-
// endregion
|
253
|
-
|
254
|
-
// region Callbacks
|
255
|
-
|
256
|
-
/**
|
257
|
-
* Callback on percentage change.
|
258
|
-
*/
|
259
|
-
onChange(this: JQuery, percent: number, value: number, total: number): void;
|
260
|
-
|
261
|
-
/**
|
262
|
-
* Callback on success state.
|
263
|
-
*/
|
264
|
-
onSuccess(this: JQuery, total: number): void;
|
265
|
-
|
266
|
-
/**
|
267
|
-
* Callback on active state.
|
268
|
-
*/
|
269
|
-
onActive(this: JQuery, value: number, total: number): void;
|
270
|
-
|
271
|
-
/**
|
272
|
-
* Callback on error state.
|
273
|
-
*/
|
274
|
-
onError(this: JQuery, value: number, total: number): void;
|
275
|
-
|
276
|
-
/**
|
277
|
-
* Callback on warning state.
|
278
|
-
*/
|
279
|
-
onWarning(this: JQuery, value: number, total: number): void;
|
280
|
-
|
281
|
-
// endregion
|
282
|
-
|
283
|
-
// region DOM Settings
|
284
|
-
|
285
|
-
/**
|
286
|
-
* DOM Selectors used internally.
|
287
|
-
* Selectors used to find parts of a module.
|
288
|
-
*/
|
289
|
-
selector: Progress.SelectorSettings;
|
290
|
-
|
291
|
-
/**
|
292
|
-
* Class names used to determine element state.
|
293
|
-
*/
|
294
|
-
className: Progress.ClassNameSettings;
|
295
|
-
|
296
|
-
/**
|
297
|
-
*
|
298
|
-
*/
|
299
|
-
text: Progress.TextSettings;
|
300
|
-
|
301
|
-
/**
|
302
|
-
* Regular expressions used by module
|
303
|
-
*/
|
304
|
-
regExp: Progress.RegExpSettings;
|
305
|
-
|
306
|
-
/**
|
307
|
-
* Regular expressions used by module
|
308
|
-
*/
|
309
|
-
metadata: Progress.MetadataSettings;
|
310
|
-
|
311
|
-
// endregion
|
312
|
-
|
313
|
-
// region Debug Settings
|
314
|
-
|
315
|
-
/**
|
316
|
-
* Name used in log statements
|
317
|
-
*/
|
318
|
-
name: string;
|
319
|
-
|
320
|
-
/**
|
321
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
322
|
-
*/
|
323
|
-
namespace: string;
|
324
|
-
|
325
|
-
/**
|
326
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
327
|
-
*/
|
328
|
-
silent: boolean;
|
329
|
-
|
330
|
-
/**
|
331
|
-
* Debug output to console
|
332
|
-
*/
|
333
|
-
debug: boolean;
|
334
|
-
|
335
|
-
/**
|
336
|
-
* Show console.table output with performance metrics
|
337
|
-
*/
|
338
|
-
performance: boolean;
|
339
|
-
|
340
|
-
/**
|
341
|
-
* Debug output includes all internal behaviors
|
342
|
-
*/
|
343
|
-
verbose: boolean;
|
344
|
-
|
345
|
-
error: Progress.ErrorSettings;
|
346
|
-
|
347
|
-
// endregion
|
348
|
-
}
|
170
|
+
interface ProgressSettings {
|
171
|
+
// region Progress Settings
|
349
172
|
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
356
|
-
|
357
|
-
interface _Impl {
|
358
|
-
/**
|
359
|
-
* @default '> .bar'
|
360
|
-
*/
|
361
|
-
bar: string;
|
362
|
-
|
363
|
-
/**
|
364
|
-
* @default '> .label'
|
365
|
-
*/
|
366
|
-
label: string;
|
367
|
-
|
368
|
-
/**
|
369
|
-
* @default '.bar > .progress'
|
370
|
-
*/
|
371
|
-
progress: string;
|
372
|
-
}
|
373
|
-
}
|
173
|
+
/**
|
174
|
+
* Whether success state should automatically trigger when progress completes.
|
175
|
+
* @default true
|
176
|
+
*/
|
177
|
+
autoSuccess: boolean;
|
374
178
|
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
| Pick<_Impl, 'error'>
|
381
|
-
| Pick<_Impl, 'success'>
|
382
|
-
| Pick<_Impl, 'warning'>
|
383
|
-
) &
|
384
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
385
|
-
|
386
|
-
interface _Impl {
|
387
|
-
/**
|
388
|
-
* @default 'active'
|
389
|
-
*/
|
390
|
-
active: string;
|
391
|
-
|
392
|
-
/**
|
393
|
-
* @default 'error'
|
394
|
-
*/
|
395
|
-
error: string;
|
396
|
-
|
397
|
-
/**
|
398
|
-
* @default 'success'
|
399
|
-
*/
|
400
|
-
success: string;
|
401
|
-
|
402
|
-
/**
|
403
|
-
* @default 'warning'
|
404
|
-
*/
|
405
|
-
warning: string;
|
406
|
-
}
|
407
|
-
}
|
179
|
+
/**
|
180
|
+
* Whether progress should automatically show activity when incremented.
|
181
|
+
* @default true
|
182
|
+
*/
|
183
|
+
showActivity: boolean;
|
408
184
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
| Pick<_Impl, 'success'>
|
416
|
-
| Pick<_Impl, 'warning'>
|
417
|
-
| Pick<_Impl, 'percent'>
|
418
|
-
| Pick<_Impl, 'ratio'>
|
419
|
-
| Pick<_Impl, 'bars'>
|
420
|
-
) &
|
421
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
422
|
-
|
423
|
-
interface _Impl {
|
424
|
-
/**
|
425
|
-
* @default false
|
426
|
-
*/
|
427
|
-
active: boolean | string;
|
428
|
-
|
429
|
-
/**
|
430
|
-
* @default false
|
431
|
-
*/
|
432
|
-
error: boolean | string;
|
433
|
-
|
434
|
-
/**
|
435
|
-
* @default false
|
436
|
-
*/
|
437
|
-
success: boolean | string;
|
438
|
-
|
439
|
-
/**
|
440
|
-
* @default false
|
441
|
-
*/
|
442
|
-
warning: boolean | string;
|
443
|
-
|
444
|
-
/**
|
445
|
-
* @default '{percent}%''
|
446
|
-
*/
|
447
|
-
percent: string;
|
448
|
-
|
449
|
-
/**
|
450
|
-
* @default '{value} of {total}'
|
451
|
-
*/
|
452
|
-
ratio: string;
|
453
|
-
|
454
|
-
/**
|
455
|
-
* @default []
|
456
|
-
*/
|
457
|
-
bars: string[];
|
458
|
-
}
|
459
|
-
}
|
185
|
+
/**
|
186
|
+
* When set to 'true', values that calculate to above 100% or below 0% will be adjusted.
|
187
|
+
* When set to 'false', inappropriate values will produce an error.
|
188
|
+
* @default true
|
189
|
+
*/
|
190
|
+
limitValues: boolean;
|
460
191
|
|
461
|
-
|
192
|
+
/**
|
193
|
+
* Can be set to either to display progress as 'percent' or 'ratio'.
|
194
|
+
* Matches up to corresponding text template with the same name.
|
195
|
+
* @default 'percent'
|
196
|
+
*/
|
197
|
+
label: 'percent' | 'ratio';
|
462
198
|
|
463
|
-
|
464
|
-
|
199
|
+
/**
|
200
|
+
* When incrementing without value, sets range for random increment value.
|
201
|
+
* @default {}
|
202
|
+
*/
|
203
|
+
random: object;
|
465
204
|
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
}
|
472
|
-
}
|
205
|
+
/**
|
206
|
+
* Decimal point precision for calculated progress.
|
207
|
+
* @default 0
|
208
|
+
*/
|
209
|
+
precision: number;
|
473
210
|
|
474
|
-
|
211
|
+
/**
|
212
|
+
* Setting a total value will make each call to increment get closer to this total (i.e. 1/20, 2/20 etc).
|
213
|
+
* @default false
|
214
|
+
*/
|
215
|
+
total: false | number;
|
475
216
|
|
476
|
-
|
477
|
-
|
478
|
-
|
217
|
+
/**
|
218
|
+
* Sets current value, when total is specified, this is used to calculate a ratio of the total, with percent this should be the overall percent.
|
219
|
+
* @default false
|
220
|
+
*/
|
221
|
+
value: false | number;
|
479
222
|
|
480
|
-
|
481
|
-
/**
|
482
|
-
* @default 'percent'
|
483
|
-
*/
|
484
|
-
percent: string;
|
223
|
+
// endregion
|
485
224
|
|
486
|
-
|
487
|
-
* @default 'total'
|
488
|
-
*/
|
489
|
-
total: string;
|
225
|
+
// region Callbacks
|
490
226
|
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
227
|
+
/**
|
228
|
+
* Callback on percentage change.
|
229
|
+
*/
|
230
|
+
onChange(this: JQuery, percent: number, value: number, total: number): void;
|
231
|
+
|
232
|
+
/**
|
233
|
+
* Callback on success state.
|
234
|
+
*/
|
235
|
+
onSuccess(this: JQuery, total: number): void;
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Callback on active state.
|
239
|
+
*/
|
240
|
+
onActive(this: JQuery, value: number, total: number): void;
|
241
|
+
|
242
|
+
/**
|
243
|
+
* Callback on error state.
|
244
|
+
*/
|
245
|
+
onError(this: JQuery, value: number, total: number): void;
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Callback on warning state.
|
249
|
+
*/
|
250
|
+
onWarning(this: JQuery, value: number, total: number): void;
|
251
|
+
|
252
|
+
// endregion
|
253
|
+
|
254
|
+
// region DOM Settings
|
255
|
+
|
256
|
+
/**
|
257
|
+
* DOM Selectors used internally.
|
258
|
+
* Selectors used to find parts of a module.
|
259
|
+
*/
|
260
|
+
selector: Progress.SelectorSettings;
|
497
261
|
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
262
|
+
/**
|
263
|
+
* Class names used to determine element state.
|
264
|
+
*/
|
265
|
+
className: Progress.ClassNameSettings;
|
266
|
+
|
267
|
+
/**
|
268
|
+
*
|
269
|
+
*/
|
270
|
+
text: Progress.TextSettings;
|
271
|
+
|
272
|
+
/**
|
273
|
+
* Regular expressions used by module
|
274
|
+
*/
|
275
|
+
regExp: Progress.RegExpSettings;
|
276
|
+
|
277
|
+
/**
|
278
|
+
* Regular expressions used by module
|
279
|
+
*/
|
280
|
+
metadata: Progress.MetadataSettings;
|
281
|
+
|
282
|
+
// endregion
|
283
|
+
|
284
|
+
// region Debug Settings
|
285
|
+
|
286
|
+
/**
|
287
|
+
* Name used in log statements
|
288
|
+
* @default 'Progress'
|
289
|
+
*/
|
290
|
+
name: string;
|
291
|
+
|
292
|
+
/**
|
293
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
294
|
+
* @default 'progress'
|
295
|
+
*/
|
296
|
+
namespace: string;
|
297
|
+
|
298
|
+
/**
|
299
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
300
|
+
* @default false
|
301
|
+
*/
|
302
|
+
silent: boolean;
|
303
|
+
|
304
|
+
/**
|
305
|
+
* Debug output to console
|
306
|
+
* @default false
|
307
|
+
*/
|
308
|
+
debug: boolean;
|
309
|
+
|
310
|
+
/**
|
311
|
+
* Show console.table output with performance metrics
|
312
|
+
* @default true
|
313
|
+
*/
|
314
|
+
performance: boolean;
|
315
|
+
|
316
|
+
/**
|
317
|
+
* Debug output includes all internal behaviors
|
318
|
+
* @default false
|
319
|
+
*/
|
320
|
+
verbose: boolean;
|
321
|
+
|
322
|
+
error: Progress.ErrorSettings;
|
323
|
+
|
324
|
+
// endregion
|
325
|
+
}
|
326
|
+
|
327
|
+
namespace Progress {
|
328
|
+
type SelectorSettings = Partial<Pick<Settings.Selectors, keyof Settings.Selectors>>;
|
329
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
330
|
+
type TextSettings = Partial<Pick<Settings.Texts, keyof Settings.Texts>>;
|
331
|
+
type RegExpSettings = Partial<Pick<Settings.RegExps, keyof Settings.RegExps>>;
|
332
|
+
type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
|
333
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
334
|
+
|
335
|
+
namespace Settings {
|
336
|
+
interface Selectors {
|
337
|
+
/**
|
338
|
+
* @default '> .bar'
|
339
|
+
*/
|
340
|
+
bar: string;
|
341
|
+
|
342
|
+
/**
|
343
|
+
* @default '> .label'
|
344
|
+
*/
|
345
|
+
label: string;
|
346
|
+
|
347
|
+
/**
|
348
|
+
* @default '.bar > .progress'
|
349
|
+
*/
|
350
|
+
progress: string;
|
351
|
+
}
|
352
|
+
|
353
|
+
interface ClassNames {
|
354
|
+
/**
|
355
|
+
* @default 'active'
|
356
|
+
*/
|
357
|
+
active: string;
|
358
|
+
|
359
|
+
/**
|
360
|
+
* @default 'error'
|
361
|
+
*/
|
362
|
+
error: string;
|
363
|
+
|
364
|
+
/**
|
365
|
+
* @default 'success'
|
366
|
+
*/
|
367
|
+
success: string;
|
368
|
+
|
369
|
+
/**
|
370
|
+
* @default 'warning'
|
371
|
+
*/
|
372
|
+
warning: string;
|
373
|
+
}
|
374
|
+
|
375
|
+
interface Texts {
|
376
|
+
/**
|
377
|
+
* @default false
|
378
|
+
*/
|
379
|
+
active: boolean | string;
|
380
|
+
|
381
|
+
/**
|
382
|
+
* @default false
|
383
|
+
*/
|
384
|
+
error: boolean | string;
|
385
|
+
|
386
|
+
/**
|
387
|
+
* @default false
|
388
|
+
*/
|
389
|
+
success: boolean | string;
|
390
|
+
|
391
|
+
/**
|
392
|
+
* @default false
|
393
|
+
*/
|
394
|
+
warning: boolean | string;
|
395
|
+
|
396
|
+
/**
|
397
|
+
* @default '{percent}%''
|
398
|
+
*/
|
399
|
+
percent: string;
|
400
|
+
|
401
|
+
/**
|
402
|
+
* @default '{value} of {total}'
|
403
|
+
*/
|
404
|
+
ratio: string;
|
405
|
+
|
406
|
+
/**
|
407
|
+
* @default []
|
408
|
+
*/
|
409
|
+
bars: string[];
|
410
|
+
}
|
411
|
+
|
412
|
+
interface RegExps {
|
413
|
+
/**
|
414
|
+
* @default /\{\$*[A-z0-9]+\}/g
|
415
|
+
*/
|
416
|
+
variable: RegExp;
|
417
|
+
}
|
418
|
+
|
419
|
+
interface Metadatas {
|
420
|
+
/**
|
421
|
+
* @default 'percent'
|
422
|
+
*/
|
423
|
+
percent: string;
|
424
|
+
|
425
|
+
/**
|
426
|
+
* @default 'total'
|
427
|
+
*/
|
428
|
+
total: string;
|
429
|
+
|
430
|
+
/**
|
431
|
+
* @default 'value'
|
432
|
+
*/
|
433
|
+
value: string;
|
434
|
+
}
|
435
|
+
|
436
|
+
interface Errors {
|
437
|
+
/**
|
438
|
+
* @default 'The method you called is not defined.'
|
439
|
+
*/
|
440
|
+
method: string;
|
441
|
+
|
442
|
+
/**
|
443
|
+
* @default 'Progress value is non numeric'
|
444
|
+
*/
|
445
|
+
nonNumeric: string;
|
446
|
+
|
447
|
+
/**
|
448
|
+
* @default 'Value specified is above 100%'
|
449
|
+
*/
|
450
|
+
tooHigh: string;
|
451
|
+
|
452
|
+
/**
|
453
|
+
* @default 'Value specified is below 0%'
|
454
|
+
*/
|
455
|
+
tooLow: string;
|
530
456
|
}
|
531
457
|
}
|
532
458
|
}
|