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
@@ -35,344 +35,281 @@ declare namespace FomanticUI {
|
|
35
35
|
*/
|
36
36
|
(behavior: 'destroy'): JQuery;
|
37
37
|
|
38
|
-
<K extends keyof SliderSettings>(behavior: 'setting', name: K, value?: undefined): SliderSettings
|
39
|
-
<K extends keyof SliderSettings>(behavior: 'setting', name: K, value: SliderSettings
|
40
|
-
(behavior: 'setting', value: SliderSettings): JQuery;
|
41
|
-
(settings?: SliderSettings): JQuery;
|
38
|
+
<K extends keyof SliderSettings>(behavior: 'setting', name: K, value?: undefined, ): Partial<Pick<SliderSettings, keyof SliderSettings>>;
|
39
|
+
<K extends keyof SliderSettings>(behavior: 'setting', name: K, value: SliderSettings[K]): JQuery;
|
40
|
+
(behavior: 'setting', value: Partial<Pick<SliderSettings, keyof SliderSettings>>): JQuery;
|
41
|
+
(settings?: Partial<Pick<SliderSettings, keyof SliderSettings>>): JQuery;
|
42
42
|
}
|
43
43
|
|
44
44
|
/**
|
45
45
|
* @see {@link https://fomantic-ui.com/modules/slider.html#/settings}
|
46
46
|
*/
|
47
|
-
|
48
|
-
|
49
|
-
namespace SliderSettings {
|
50
|
-
type Param = (
|
51
|
-
| Pick<_Impl, 'min'>
|
52
|
-
| Pick<_Impl, 'max'>
|
53
|
-
| Pick<_Impl, 'step'>
|
54
|
-
| Pick<_Impl, 'start'>
|
55
|
-
| Pick<_Impl, 'end'>
|
56
|
-
| Pick<_Impl, 'labelType'>
|
57
|
-
| Pick<_Impl, 'interpretLabel'>
|
58
|
-
| Pick<_Impl, 'showLabelTicks'>
|
59
|
-
| Pick<_Impl, 'smooth'>
|
60
|
-
| Pick<_Impl, 'autoAdjustLabels'>
|
61
|
-
| Pick<_Impl, 'labelDistance'>
|
62
|
-
| Pick<_Impl, 'decimalPlaces'>
|
63
|
-
| Pick<_Impl, 'pageMultiplier'>
|
64
|
-
| Pick<_Impl, 'preventCrossover'>
|
65
|
-
| Pick<_Impl, 'onChange'>
|
66
|
-
| Pick<_Impl, 'onMove'>
|
67
|
-
| Pick<_Impl, 'className'>
|
68
|
-
| Pick<_Impl, 'metadata'>
|
69
|
-
| Pick<_Impl, 'keys'>
|
70
|
-
| Pick<_Impl, 'name'>
|
71
|
-
| Pick<_Impl, 'namespace'>
|
72
|
-
| Pick<_Impl, 'silent'>
|
73
|
-
| Pick<_Impl, 'debug'>
|
74
|
-
| Pick<_Impl, 'performance'>
|
75
|
-
| Pick<_Impl, 'verbose'>
|
76
|
-
| Pick<_Impl, 'error'>
|
77
|
-
) &
|
78
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
79
|
-
|
80
|
-
interface _Impl {
|
81
|
-
// region Slider Settings
|
82
|
-
|
83
|
-
/**
|
84
|
-
* The lowest value the slider can be.
|
85
|
-
* @default 0
|
86
|
-
*/
|
87
|
-
min: number;
|
88
|
-
|
89
|
-
/**
|
90
|
-
* The max value the slider can be.
|
91
|
-
* @default 20
|
92
|
-
*/
|
93
|
-
max: number;
|
94
|
-
|
95
|
-
/**
|
96
|
-
* The slider step.
|
97
|
-
* Set to '0' to disable step.
|
98
|
-
* @default 1
|
99
|
-
*/
|
100
|
-
step: number;
|
101
|
-
|
102
|
-
/**
|
103
|
-
* The value the slider will start at.
|
104
|
-
* @default 0
|
105
|
-
*/
|
106
|
-
start: number;
|
107
|
-
|
108
|
-
/**
|
109
|
-
* The second value to set in case of a range slider.
|
110
|
-
* @default 20
|
111
|
-
*/
|
112
|
-
end: number;
|
113
|
-
|
114
|
-
/**
|
115
|
-
* The type of label to display for a labeled slider.
|
116
|
-
* Can be 'number' or 'letter'.
|
117
|
-
* @default 'number'
|
118
|
-
*/
|
119
|
-
labelType: 'number' | 'letter';
|
120
|
-
|
121
|
-
/**
|
122
|
-
* You can specify a function here which consumes the current label value as parameter and should return a custom label text according to the given value.
|
123
|
-
* @default false
|
124
|
-
*/
|
125
|
-
interpretLabel: false | Function;
|
126
|
-
|
127
|
-
/**
|
128
|
-
* Show ticks on a labeled slider.
|
129
|
-
* @default false
|
130
|
-
*/
|
131
|
-
showLabelTicks: boolean;
|
132
|
-
|
133
|
-
/**
|
134
|
-
* Define smoothness when the slider is moving.
|
135
|
-
* @default false
|
136
|
-
*/
|
137
|
-
smooth: boolean;
|
138
|
-
|
139
|
-
/**
|
140
|
-
* Whether labels should auto adjust on window resize.
|
141
|
-
* @default true
|
142
|
-
*/
|
143
|
-
autoAdjustLabels: boolean;
|
144
|
-
|
145
|
-
/**
|
146
|
-
* The distance between labels.
|
147
|
-
* @default 100
|
148
|
-
*/
|
149
|
-
labelDistance: number;
|
150
|
-
|
151
|
-
/**
|
152
|
-
* Number of decimals to use with an unstepped slider.
|
153
|
-
* @default 2
|
154
|
-
*/
|
155
|
-
decimalPlaces: number;
|
156
|
-
|
157
|
-
/**
|
158
|
-
* Page up/down multiplier.
|
159
|
-
* Define how many more times the steps to take on page up/down press.
|
160
|
-
* @default 2
|
161
|
-
*/
|
162
|
-
pageMultiplier: number;
|
163
|
-
|
164
|
-
/**
|
165
|
-
* Prevents the lower thumb to crossover the thumb handle.
|
166
|
-
* @default true
|
167
|
-
*/
|
168
|
-
preventCrossover: boolean;
|
169
|
-
|
170
|
-
// endregion
|
171
|
-
|
172
|
-
// region Callbacks
|
173
|
-
|
174
|
-
/**
|
175
|
-
* Is called when the slider value is changed.
|
176
|
-
*/
|
177
|
-
onChange(this: JQuery, value: number, thumbVal: number, secondThumbVal: number): void;
|
178
|
-
|
179
|
-
/**
|
180
|
-
* Is called when the slider is moving.
|
181
|
-
*/
|
182
|
-
onMove(this: JQuery, value: number, thumbVal: number, secondThumbVal: number): void;
|
183
|
-
|
184
|
-
// endregion
|
185
|
-
|
186
|
-
// region DOM Settings
|
187
|
-
|
188
|
-
/**
|
189
|
-
* Class names used to determine element state.
|
190
|
-
*/
|
191
|
-
className: Slider.ClassNameSettings;
|
192
|
-
|
193
|
-
/**
|
194
|
-
* DOM metadata used by module.
|
195
|
-
*/
|
196
|
-
metadata: Slider.MetadataSettings;
|
197
|
-
|
198
|
-
/**
|
199
|
-
* Keys used by module.
|
200
|
-
*/
|
201
|
-
keys: Slider.KeySettings;
|
202
|
-
|
203
|
-
// endregion
|
204
|
-
|
205
|
-
// region Debug Settings
|
206
|
-
|
207
|
-
/**
|
208
|
-
* Name used in log statements
|
209
|
-
*/
|
210
|
-
name: string;
|
211
|
-
|
212
|
-
/**
|
213
|
-
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
214
|
-
*/
|
215
|
-
namespace: string;
|
216
|
-
|
217
|
-
/**
|
218
|
-
* Silences all console output including error messages, regardless of other debug settings.
|
219
|
-
*/
|
220
|
-
silent: boolean;
|
221
|
-
|
222
|
-
/**
|
223
|
-
* Debug output to console
|
224
|
-
*/
|
225
|
-
debug: boolean;
|
226
|
-
|
227
|
-
/**
|
228
|
-
* Show console.table output with performance metrics
|
229
|
-
*/
|
230
|
-
performance: boolean;
|
231
|
-
|
232
|
-
/**
|
233
|
-
* Debug output includes all internal behaviors
|
234
|
-
*/
|
235
|
-
verbose: boolean;
|
236
|
-
|
237
|
-
error: Slider.ErrorSettings;
|
238
|
-
|
239
|
-
// endregion
|
240
|
-
}
|
47
|
+
interface SliderSettings {
|
48
|
+
// region Slider Settings
|
241
49
|
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
| Pick<_Impl, 'reversed'>
|
248
|
-
| Pick<_Impl, 'disabled'>
|
249
|
-
| Pick<_Impl, 'labeled'>
|
250
|
-
| Pick<_Impl, 'ticked'>
|
251
|
-
| Pick<_Impl, 'vertical'>
|
252
|
-
| Pick<_Impl, 'range'>
|
253
|
-
| Pick<_Impl, 'smooth'>
|
254
|
-
) &
|
255
|
-
Partial<Pick<_Impl, keyof _Impl>>;
|
256
|
-
|
257
|
-
interface _Impl {
|
258
|
-
/**
|
259
|
-
* @default 'reversed'
|
260
|
-
*/
|
261
|
-
reversed: string;
|
262
|
-
|
263
|
-
/**
|
264
|
-
* @default 'disabled'
|
265
|
-
*/
|
266
|
-
disabled: string;
|
267
|
-
|
268
|
-
/**
|
269
|
-
* @default 'labeled'
|
270
|
-
*/
|
271
|
-
labeled: string;
|
272
|
-
|
273
|
-
/**
|
274
|
-
* @default 'ticked'
|
275
|
-
*/
|
276
|
-
ticked: string;
|
277
|
-
|
278
|
-
/**
|
279
|
-
* @default 'vertical'
|
280
|
-
*/
|
281
|
-
vertical: string;
|
282
|
-
|
283
|
-
/**
|
284
|
-
* @default 'range'
|
285
|
-
*/
|
286
|
-
range: string;
|
287
|
-
|
288
|
-
/**
|
289
|
-
* @default 'smooth'
|
290
|
-
*/
|
291
|
-
smooth: string;
|
292
|
-
}
|
293
|
-
}
|
50
|
+
/**
|
51
|
+
* The lowest value the slider can be.
|
52
|
+
* @default 0
|
53
|
+
*/
|
54
|
+
min: number;
|
294
55
|
|
295
|
-
|
56
|
+
/**
|
57
|
+
* The max value the slider can be.
|
58
|
+
* @default 20
|
59
|
+
*/
|
60
|
+
max: number;
|
296
61
|
|
297
|
-
|
298
|
-
|
299
|
-
|
62
|
+
/**
|
63
|
+
* The slider step.
|
64
|
+
* Set to '0' to disable step.
|
65
|
+
* @default 1
|
66
|
+
*/
|
67
|
+
step: number;
|
300
68
|
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
69
|
+
/**
|
70
|
+
* The value the slider will start at.
|
71
|
+
* @default 0
|
72
|
+
*/
|
73
|
+
start: number;
|
306
74
|
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
75
|
+
/**
|
76
|
+
* The second value to set in case of a range slider.
|
77
|
+
* @default 20
|
78
|
+
*/
|
79
|
+
end: number;
|
80
|
+
|
81
|
+
/**
|
82
|
+
* The type of label to display for a labeled slider.
|
83
|
+
* Can be 'number' or 'letter'.
|
84
|
+
* @default 'number'
|
85
|
+
*/
|
86
|
+
labelType: 'number' | 'letter';
|
87
|
+
|
88
|
+
/**
|
89
|
+
* You can specify a function here which consumes the current label value as parameter and should return a custom label text according to the given value.
|
90
|
+
* @default false
|
91
|
+
*/
|
92
|
+
interpretLabel: false | Function;
|
93
|
+
|
94
|
+
/**
|
95
|
+
* Show ticks on a labeled slider.
|
96
|
+
* @default false
|
97
|
+
*/
|
98
|
+
showLabelTicks: boolean;
|
313
99
|
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
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
|
-
|
100
|
+
/**
|
101
|
+
* Define smoothness when the slider is moving.
|
102
|
+
* @default false
|
103
|
+
*/
|
104
|
+
smooth: boolean;
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Whether labels should auto adjust on window resize.
|
108
|
+
* @default true
|
109
|
+
*/
|
110
|
+
autoAdjustLabels: boolean;
|
111
|
+
|
112
|
+
/**
|
113
|
+
* The distance between labels.
|
114
|
+
* @default 100
|
115
|
+
*/
|
116
|
+
labelDistance: number;
|
117
|
+
|
118
|
+
/**
|
119
|
+
* Number of decimals to use with an unstepped slider.
|
120
|
+
* @default 2
|
121
|
+
*/
|
122
|
+
decimalPlaces: number;
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Page up/down multiplier.
|
126
|
+
* Define how many more times the steps to take on page up/down press.
|
127
|
+
* @default 2
|
128
|
+
*/
|
129
|
+
pageMultiplier: number;
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Prevents the lower thumb to crossover the thumb handle.
|
133
|
+
* @default true
|
134
|
+
*/
|
135
|
+
preventCrossover: boolean;
|
136
|
+
|
137
|
+
// endregion
|
138
|
+
|
139
|
+
// region Callbacks
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Is called when the slider value is changed.
|
143
|
+
*/
|
144
|
+
onChange(this: JQuery, value: number, thumbVal: number, secondThumbVal: number): void;
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Is called when the slider is moving.
|
148
|
+
*/
|
149
|
+
onMove(this: JQuery, value: number, thumbVal: number, secondThumbVal: number): void;
|
150
|
+
|
151
|
+
// endregion
|
152
|
+
|
153
|
+
// region DOM Settings
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Class names used to determine element state.
|
157
|
+
*/
|
158
|
+
className: Slider.ClassNameSettings;
|
159
|
+
|
160
|
+
/**
|
161
|
+
* DOM metadata used by module.
|
162
|
+
*/
|
163
|
+
metadata: Slider.MetadataSettings;
|
164
|
+
|
165
|
+
/**
|
166
|
+
* Keys used by module.
|
167
|
+
*/
|
168
|
+
keys: Slider.KeySettings;
|
169
|
+
|
170
|
+
// endregion
|
171
|
+
|
172
|
+
// region Debug Settings
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Name used in log statements
|
176
|
+
* @default 'Slider'
|
177
|
+
*/
|
178
|
+
name: string;
|
179
|
+
|
180
|
+
/**
|
181
|
+
* Event namespace. Makes sure module teardown does not effect other events attached to an element.
|
182
|
+
* @default 'slider'
|
183
|
+
*/
|
184
|
+
namespace: string;
|
185
|
+
|
186
|
+
/**
|
187
|
+
* Silences all console output including error messages, regardless of other debug settings.
|
188
|
+
* @default false
|
189
|
+
*/
|
190
|
+
silent: boolean;
|
191
|
+
|
192
|
+
/**
|
193
|
+
* Debug output to console
|
194
|
+
* @default false
|
195
|
+
*/
|
196
|
+
debug: boolean;
|
197
|
+
|
198
|
+
/**
|
199
|
+
* Show console.table output with performance metrics
|
200
|
+
* @default true
|
201
|
+
*/
|
202
|
+
performance: boolean;
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Debug output includes all internal behaviors
|
206
|
+
* @default false
|
207
|
+
*/
|
208
|
+
verbose: boolean;
|
209
|
+
|
210
|
+
error: Slider.ErrorSettings;
|
211
|
+
|
212
|
+
// endregion
|
213
|
+
}
|
214
|
+
|
215
|
+
namespace Slider {
|
216
|
+
type ClassNameSettings = Partial<Pick<Settings.ClassNames, keyof Settings.ClassNames>>;
|
217
|
+
type MetadataSettings = Partial<Pick<Settings.Metadatas, keyof Settings.Metadatas>>;
|
218
|
+
type KeySettings = Partial<Pick<Settings.Keys, keyof Settings.Keys>>;
|
219
|
+
type ErrorSettings = Partial<Pick<Settings.Errors, keyof Settings.Errors>>;
|
220
|
+
|
221
|
+
namespace Settings {
|
222
|
+
interface ClassNames {
|
223
|
+
/**
|
224
|
+
* @default 'reversed'
|
225
|
+
*/
|
226
|
+
reversed: string;
|
227
|
+
|
228
|
+
/**
|
229
|
+
* @default 'disabled'
|
230
|
+
*/
|
231
|
+
disabled: string;
|
232
|
+
|
233
|
+
/**
|
234
|
+
* @default 'labeled'
|
235
|
+
*/
|
236
|
+
labeled: string;
|
237
|
+
|
238
|
+
/**
|
239
|
+
* @default 'ticked'
|
240
|
+
*/
|
241
|
+
ticked: string;
|
242
|
+
|
243
|
+
/**
|
244
|
+
* @default 'vertical'
|
245
|
+
*/
|
246
|
+
vertical: string;
|
247
|
+
|
248
|
+
/**
|
249
|
+
* @default 'range'
|
250
|
+
*/
|
251
|
+
range: string;
|
252
|
+
|
253
|
+
/**
|
254
|
+
* @default 'smooth'
|
255
|
+
*/
|
256
|
+
smooth: string;
|
358
257
|
}
|
359
258
|
|
360
|
-
|
259
|
+
interface Metadatas {
|
260
|
+
/**
|
261
|
+
* @default 'thumbVal'
|
262
|
+
*/
|
263
|
+
thumbVal: string;
|
361
264
|
|
362
|
-
|
363
|
-
|
265
|
+
/**
|
266
|
+
* @default 'secondThumbVal'
|
267
|
+
*/
|
268
|
+
secondThumbVal: string;
|
269
|
+
}
|
270
|
+
|
271
|
+
interface Keys {
|
272
|
+
/**
|
273
|
+
* @default 33
|
274
|
+
*/
|
275
|
+
pageUp: number;
|
276
|
+
|
277
|
+
/**
|
278
|
+
* @default 34
|
279
|
+
*/
|
280
|
+
pageDown: number;
|
281
|
+
|
282
|
+
/**
|
283
|
+
* @default 37
|
284
|
+
*/
|
285
|
+
leftArrow: number;
|
286
|
+
|
287
|
+
/**
|
288
|
+
* @default 38
|
289
|
+
*/
|
290
|
+
upArrow: number;
|
291
|
+
|
292
|
+
/**
|
293
|
+
* @default 39
|
294
|
+
*/
|
295
|
+
rightArrow: number;
|
296
|
+
|
297
|
+
/**
|
298
|
+
* @default 40
|
299
|
+
*/
|
300
|
+
downArrow: number;
|
301
|
+
}
|
364
302
|
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
303
|
+
interface Errors {
|
304
|
+
/**
|
305
|
+
* @default 'The method you called is not defined.'
|
306
|
+
*/
|
307
|
+
method: string;
|
370
308
|
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
}
|
309
|
+
/**
|
310
|
+
* @default 'This slider is not a range slider.'
|
311
|
+
*/
|
312
|
+
notrange: string;
|
376
313
|
}
|
377
314
|
}
|
378
315
|
}
|