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.
Files changed (184) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +1 -1
  34. package/dist/components/dropdown.js +1 -1
  35. package/dist/components/dropdown.min.css +1 -1
  36. package/dist/components/dropdown.min.js +1 -1
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +1 -1
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +1 -1
  41. package/dist/components/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +1 -1
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +1 -1
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +1 -1
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +1 -1
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +1 -1
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +1 -1
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +1 -1
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +1 -1
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +1 -1
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +1 -1
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +1 -1
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +1 -1
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +1 -1
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +1 -1
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +1 -1
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +53 -53
  156. package/dist/semantic.js +26 -26
  157. package/dist/semantic.min.css +1 -1
  158. package/dist/semantic.min.js +1 -1
  159. package/package.json +1 -1
  160. package/types/fomantic-ui-accordion.d.ts +166 -172
  161. package/types/fomantic-ui-api.d.ts +418 -470
  162. package/types/fomantic-ui-calendar.d.ts +425 -479
  163. package/types/fomantic-ui-checkbox.d.ts +148 -194
  164. package/types/fomantic-ui-dimmer.d.ts +188 -265
  165. package/types/fomantic-ui-dropdown.d.ts +447 -666
  166. package/types/fomantic-ui-embed.d.ts +243 -289
  167. package/types/fomantic-ui-flyout.d.ts +259 -292
  168. package/types/fomantic-ui-form.d.ts +478 -607
  169. package/types/fomantic-ui-modal.d.ts +389 -471
  170. package/types/fomantic-ui-nag.d.ts +228 -277
  171. package/types/fomantic-ui-popup.d.ts +438 -534
  172. package/types/fomantic-ui-progress.d.ts +278 -352
  173. package/types/fomantic-ui-rating.d.ts +137 -168
  174. package/types/fomantic-ui-search.d.ts +359 -453
  175. package/types/fomantic-ui-shape.d.ts +152 -194
  176. package/types/fomantic-ui-sidebar.d.ts +315 -391
  177. package/types/fomantic-ui-slider.d.ts +259 -322
  178. package/types/fomantic-ui-sticky.d.ts +198 -244
  179. package/types/fomantic-ui-tab.d.ts +284 -350
  180. package/types/fomantic-ui-tests.ts +4 -2
  181. package/types/fomantic-ui-toast.d.ts +318 -424
  182. package/types/fomantic-ui-transition.d.ts +223 -273
  183. package/types/fomantic-ui-visibility.d.ts +286 -353
  184. 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._Impl[K];
162
- <K extends keyof ProgressSettings>(behavior: 'setting', name: K, value: ProgressSettings._Impl[K]): JQuery;
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
- type ProgressSettings = ProgressSettings.Param;
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
- namespace Progress {
351
- type SelectorSettings = SelectorSettings.Param;
352
-
353
- namespace SelectorSettings {
354
- type Param = (Pick<_Impl, 'bar'> | Pick<_Impl, 'label'> | Pick<_Impl, 'progress'>) &
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
- type ClassNameSettings = ClassNameSettings.Param;
376
-
377
- namespace ClassNameSettings {
378
- type Param = (
379
- | Pick<_Impl, 'active'>
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
- type TextSettings = TextSettings.Param;
410
-
411
- namespace TextSettings {
412
- type Param = (
413
- | Pick<_Impl, 'active'>
414
- | Pick<_Impl, 'error'>
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
- type RegExpSettings = RegExpSettings.Param;
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
- namespace RegExpSettings {
464
- type Param = Pick<_Impl, 'variable'> & Partial<Pick<_Impl, keyof _Impl>>;
199
+ /**
200
+ * When incrementing without value, sets range for random increment value.
201
+ * @default {}
202
+ */
203
+ random: object;
465
204
 
466
- interface _Impl {
467
- /**
468
- * @default /\{\$*[A-z0-9]+\}/g
469
- */
470
- variable: RegExp;
471
- }
472
- }
205
+ /**
206
+ * Decimal point precision for calculated progress.
207
+ * @default 0
208
+ */
209
+ precision: number;
473
210
 
474
- type MetadataSettings = MetadataSettings.Param;
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
- namespace MetadataSettings {
477
- type Param = (Pick<_Impl, 'percent'> | Pick<_Impl, 'total'> | Pick<_Impl, 'value'>) &
478
- Partial<Pick<_Impl, keyof _Impl>>;
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
- interface _Impl {
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
- * @default 'value'
493
- */
494
- value: string;
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
- type ErrorSettings = ErrorSettings.Param;
499
-
500
- namespace ErrorSettings {
501
- type Param = (
502
- | Pick<_Impl, 'method'>
503
- | Pick<_Impl, 'nonNumeric'>
504
- | Pick<_Impl, 'tooHigh'>
505
- | Pick<_Impl, 'tooLow'>
506
- ) &
507
- Partial<Pick<_Impl, keyof _Impl>>;
508
-
509
- interface _Impl {
510
- /**
511
- * @default 'The method you called is not defined.'
512
- */
513
- method: string;
514
-
515
- /**
516
- * @default 'Progress value is non numeric'
517
- */
518
- nonNumeric: string;
519
-
520
- /**
521
- * @default 'Value specified is above 100%'
522
- */
523
- tooHigh: string;
524
-
525
- /**
526
- * @default 'Value specified is below 0%'
527
- */
528
- tooLow: string;
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
  }