fomantic-ui 2.9.3-beta.43 → 2.9.3-beta.45
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 +3 -2
- package/types/fomantic-ui-accordion.d.ts +250 -0
- package/types/fomantic-ui-api.d.ts +607 -0
- package/types/fomantic-ui-calendar.d.ts +820 -0
- package/types/fomantic-ui-checkbox.d.ts +378 -0
- package/types/fomantic-ui-dimmer.d.ts +485 -0
- package/types/fomantic-ui-dropdown.d.ts +1402 -0
- package/types/fomantic-ui-embed.d.ts +372 -0
- package/types/fomantic-ui-flyout.d.ts +558 -0
- package/types/fomantic-ui-form.d.ts +780 -0
- package/types/fomantic-ui-modal.d.ts +553 -0
- package/types/fomantic-ui-nag.d.ts +319 -0
- package/types/fomantic-ui-popup.d.ts +619 -0
- package/types/fomantic-ui-progress.d.ts +533 -0
- package/types/fomantic-ui-rating.d.ts +218 -0
- package/types/fomantic-ui-search.d.ts +590 -0
- package/types/fomantic-ui-shape.d.ts +316 -0
- package/types/fomantic-ui-sidebar.d.ts +478 -0
- package/types/fomantic-ui-slider.d.ts +379 -0
- package/types/fomantic-ui-sticky.d.ts +261 -0
- package/types/fomantic-ui-tab.d.ts +427 -0
- package/types/fomantic-ui-tests.ts +23 -0
- package/types/fomantic-ui-toast.d.ts +620 -0
- package/types/fomantic-ui-transition.d.ts +405 -0
- package/types/fomantic-ui-visibility.d.ts +422 -0
- package/types/index.d.ts +64 -0
- package/types/tsconfig.json +23 -0
- package/types/tslint.json +1 -0
@@ -0,0 +1,533 @@
|
|
1
|
+
declare namespace FomanticUI {
|
2
|
+
interface Progress {
|
3
|
+
settings: ProgressSettings;
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Sets current percent of progress to value.
|
7
|
+
* If using a total will convert from percent to estimated value.
|
8
|
+
* 'percent' can be array of percent like '[20,30,50]', comma-separated string like '20,30,50' for `.ui.multiple.progress`.
|
9
|
+
*/
|
10
|
+
(behavior: 'set percent', percent: number | [] | string): JQuery;
|
11
|
+
|
12
|
+
/**
|
13
|
+
* Sets progress to specified value.
|
14
|
+
* Will automatically calculate percent from total.
|
15
|
+
* value can be array of values like '[5,3,10]', comma-separated string like '5,3,10' for `.ui.multiple.progress`.
|
16
|
+
*/
|
17
|
+
(behavior: 'set progress', value: number | [] | string): JQuery;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Increments progress by increment value, if not passed a value will use random amount specified in settings.
|
21
|
+
*/
|
22
|
+
(behavior: 'increment', incrementValue: number): JQuery;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Decrements progress by decrement value, if not passed a value will use random amount specified in settings.
|
26
|
+
*/
|
27
|
+
(behavior: 'decrement', decrementValue: number): JQuery;
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Immediately updates progress to value, ignoring progress animation interval delays.
|
31
|
+
* 'value' can be array of values like '[5,3,10]', comma-separated string like '5,3,10' for `.ui.multiple.progress`.
|
32
|
+
*/
|
33
|
+
(behavior: 'update progress', value: number | [] | string): JQuery;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Finishes progress and sets loaded to 100%.
|
37
|
+
* Set 'keepState' to 'true' (default 'false') to stop the active animation only without setting the progress to 100%.
|
38
|
+
*/
|
39
|
+
(behavior: 'complete', keepState: boolean): JQuery;
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Resets progress to zero.
|
43
|
+
*/
|
44
|
+
(behavior: 'reset'): JQuery;
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Set total to a new value.
|
48
|
+
*/
|
49
|
+
(behavior: 'set total', total: number): JQuery;
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Replaces templated string with value, total, percent left and percent.
|
53
|
+
*/
|
54
|
+
(behavior: 'get text', text: string): JQuery;
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Returns normalized value inside acceptable range specified by total.
|
58
|
+
*/
|
59
|
+
(behavior: 'get normalized value', value: number): JQuery;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Returns percent as last specified.
|
63
|
+
*/
|
64
|
+
(behavior: 'get percent'): number;
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Returns current progress value.
|
68
|
+
*/
|
69
|
+
(behavior: 'get value'): number;
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Returns total.
|
73
|
+
*/
|
74
|
+
(behavior: 'get total'): number;
|
75
|
+
|
76
|
+
/**
|
77
|
+
* Returns whether progress is completed.
|
78
|
+
*/
|
79
|
+
(behavior: 'is complete'): boolean;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Returns whether progress was a success.
|
83
|
+
*/
|
84
|
+
(behavior: 'is success'): boolean;
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Returns whether progress is in warning state.
|
88
|
+
*/
|
89
|
+
(behavior: 'is warning'): boolean;
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Returns whether progress is in error state.
|
93
|
+
*/
|
94
|
+
(behavior: 'is error'): boolean;
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Returns whether progress is in active state.
|
98
|
+
*/
|
99
|
+
(behavior: 'is active'): boolean;
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Sets progress to active state.
|
103
|
+
*/
|
104
|
+
(behavior: 'set active'): JQuery;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Sets progress to warning state. Set 'keepState' to 'true' (default 'false') to keep the progressbar state and the current percentage without raising it up to 100%.
|
108
|
+
*/
|
109
|
+
(behavior: 'set warning', text: string, keepState: boolean): JQuery;
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Sets progress to success state. Set 'keepState' to 'true' (default 'false') to keep the progressbar state and the current percentage without raising it up to 100%.
|
113
|
+
*/
|
114
|
+
(behavior: 'set success', text: string, keepState: boolean): JQuery;
|
115
|
+
|
116
|
+
/**
|
117
|
+
* Sets progress to error state. Set 'keepState' to 'true' (default 'false') to keep the progressbar state and the current percentage without raising it up to 100%.
|
118
|
+
*/
|
119
|
+
(behavior: 'set error', text: string, keepState: boolean): JQuery;
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Changes progress animation speed.
|
123
|
+
*/
|
124
|
+
(behavior: 'set duration', value: number): JQuery;
|
125
|
+
|
126
|
+
/**
|
127
|
+
* Sets progress exterior label to text.
|
128
|
+
*/
|
129
|
+
(behavior: 'set label', text: string): JQuery;
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Sets progress bar label to text.
|
133
|
+
*/
|
134
|
+
(behavior: 'set bar label', text: string): JQuery;
|
135
|
+
|
136
|
+
/**
|
137
|
+
* Removes progress to active state.
|
138
|
+
*/
|
139
|
+
(behavior: 'remove active'): JQuery;
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Removes progress to warning state.
|
143
|
+
*/
|
144
|
+
(behavior: 'remove warning'): JQuery;
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Removes progress to success state.
|
148
|
+
*/
|
149
|
+
(behavior: 'remove success'): JQuery;
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Removes progress to error state.
|
153
|
+
*/
|
154
|
+
(behavior: 'remove error'): JQuery;
|
155
|
+
|
156
|
+
/**
|
157
|
+
* Destroys instance and removes all events.
|
158
|
+
*/
|
159
|
+
(behavior: 'destroy'): JQuery;
|
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;
|
165
|
+
}
|
166
|
+
|
167
|
+
/**
|
168
|
+
* @see {@link https://fomantic-ui.com/modules/progress.html#/settings}
|
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
|
+
}
|
349
|
+
|
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
|
+
}
|
374
|
+
|
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
|
+
}
|
408
|
+
|
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
|
+
}
|
460
|
+
|
461
|
+
type RegExpSettings = RegExpSettings.Param;
|
462
|
+
|
463
|
+
namespace RegExpSettings {
|
464
|
+
type Param = Pick<_Impl, 'variable'> & Partial<Pick<_Impl, keyof _Impl>>;
|
465
|
+
|
466
|
+
interface _Impl {
|
467
|
+
/**
|
468
|
+
* @default /\{\$*[A-z0-9]+\}/g
|
469
|
+
*/
|
470
|
+
variable: RegExp;
|
471
|
+
}
|
472
|
+
}
|
473
|
+
|
474
|
+
type MetadataSettings = MetadataSettings.Param;
|
475
|
+
|
476
|
+
namespace MetadataSettings {
|
477
|
+
type Param = (Pick<_Impl, 'percent'> | Pick<_Impl, 'total'> | Pick<_Impl, 'value'>) &
|
478
|
+
Partial<Pick<_Impl, keyof _Impl>>;
|
479
|
+
|
480
|
+
interface _Impl {
|
481
|
+
/**
|
482
|
+
* @default 'percent'
|
483
|
+
*/
|
484
|
+
percent: string;
|
485
|
+
|
486
|
+
/**
|
487
|
+
* @default 'total'
|
488
|
+
*/
|
489
|
+
total: string;
|
490
|
+
|
491
|
+
/**
|
492
|
+
* @default 'value'
|
493
|
+
*/
|
494
|
+
value: string;
|
495
|
+
}
|
496
|
+
}
|
497
|
+
|
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
|
+
}
|
530
|
+
}
|
531
|
+
}
|
532
|
+
}
|
533
|
+
}
|