@progress/kendo-vue-inputs 3.2.1 → 3.2.3-dev.202204191450

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.
@@ -0,0 +1,606 @@
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
18
+ import * as Vue from 'vue';
19
+ var allVue = Vue;
20
+ var gh = allVue.h;
21
+ var ref = allVue.ref;
22
+ var inject = allVue.inject;
23
+ import { Draggable, Keys, // useDir,
24
+ getTabIndex, validatePackage, getDefaultSlots, classNames } from '@progress/kendo-vue-common';
25
+ import { messages, sliderDragTitle } from './../messages';
26
+ import { provideLocalizationService } from '@progress/kendo-vue-intl';
27
+ import { rangeReducer, RANGE_ACTION } from './range-raducer';
28
+ import { packageMetadata } from '../package-metadata';
29
+ var RangeSliderVue2 = {
30
+ name: 'KendoRangeSlider',
31
+ model: {
32
+ event: 'changemodel'
33
+ },
34
+ props: {
35
+ id: String,
36
+ value: {
37
+ type: Object,
38
+ validator: function validator(value) {
39
+ return value.start <= value.end;
40
+ }
41
+ },
42
+ defaultValue: {
43
+ type: Object,
44
+ default: function _default() {
45
+ return {
46
+ start: 0,
47
+ end: 0
48
+ };
49
+ },
50
+ validator: function validator(value) {
51
+ return value.start <= value.end;
52
+ }
53
+ },
54
+ step: {
55
+ type: Number,
56
+ default: 1
57
+ },
58
+ min: {
59
+ type: Number,
60
+ required: true
61
+ },
62
+ max: {
63
+ type: Number,
64
+ required: true
65
+ },
66
+ vertical: Boolean,
67
+ disabled: Boolean,
68
+ dir: {
69
+ type: String,
70
+ default: 'ltr',
71
+ validator: function validator(value) {
72
+ return [null, 'ltr', 'rtl'].includes(value);
73
+ }
74
+ },
75
+ startTabIndex: Number,
76
+ endTabIndex: Number
77
+ },
78
+ provide: function provide() {
79
+ return {
80
+ kendoMin: this.$props.min,
81
+ kendoMax: this.$props.max,
82
+ kendoVertical: this.$props.vertical
83
+ };
84
+ },
85
+ inject: {
86
+ kendoLocalizationService: {
87
+ default: null
88
+ }
89
+ },
90
+ created: function created() {
91
+ validatePackage(packageMetadata);
92
+ },
93
+ data: function data() {
94
+ return {
95
+ currentValue: this.defaultValue,
96
+ currentDrag: '',
97
+ currentDir: 'ltr'
98
+ };
99
+ },
100
+ computed: {
101
+ computedValue: function computedValue() {
102
+ return this.$props.value !== undefined ? this.$props.value : this.currentValue;
103
+ },
104
+ percentStart: function percentStart() {
105
+ return (this.computedValue.start - this.min) / (this.max - this.min) * 100;
106
+ },
107
+ percentEnd: function percentEnd() {
108
+ return (this.computedValue.end - this.min) / (this.max - this.min) * 100;
109
+ },
110
+ sliderItemsStyle: function sliderItemsStyle() {
111
+ return this.vertical ? {
112
+ paddingTop: 0,
113
+ height: '100%'
114
+ } : {};
115
+ },
116
+ trackStyles: function trackStyles() {
117
+ return this.vertical ? {
118
+ marginTop: '0.5rem',
119
+ marginBottom: '0.5rem'
120
+ } : {
121
+ marginLeft: '0.5rem',
122
+ marginRight: '0.5rem'
123
+ };
124
+ }
125
+ },
126
+ mounted: function mounted() {
127
+ this.sliderRef = this.$refs.sliderRef;
128
+ this.sliderSelectionRef = this.$refs.sliderSelectionRef;
129
+ this.startHandle = this.$refs.startHandle;
130
+ this.endHandle = this.$refs.endHandle;
131
+ this.sliderTrackRef = this.$refs.sliderTrackRef;
132
+ this.sliderTrackWrapRef = this.$refs.sliderTrackWrapRef;
133
+
134
+ if (!this.currentDir && window && this.$el) {
135
+ // Note: getComputedStyle forces reflow
136
+ var direction = window.getComputedStyle(this.$el).direction;
137
+
138
+ if (direction) {
139
+ this.currentDir = direction;
140
+ }
141
+ }
142
+ },
143
+ // @ts-ignore
144
+ setup: !gh ? undefined : function () {
145
+ var v3 = !!gh;
146
+ var inputRef = ref(null);
147
+ var kendoLocalizationService = inject('kendoLocalizationService', {});
148
+ return {
149
+ v3: v3,
150
+ inputRef: inputRef,
151
+ kendoLocalizationService: kendoLocalizationService
152
+ };
153
+ },
154
+ render: function render(createElement) {
155
+ var _this = this;
156
+
157
+ var _a, _b;
158
+
159
+ var h = gh || createElement;
160
+ var localization = provideLocalizationService(this);
161
+ var defaultSlot = getDefaultSlots(this);
162
+ var _c = this.$props,
163
+ id = _c.id,
164
+ dir = _c.dir; // const dir = useDir(sliderRef, this.$props.dir);
165
+
166
+ return h("div", {
167
+ role: "slider",
168
+ attrs: this.v3 ? undefined : {
169
+ role: "slider",
170
+ id: id,
171
+ dir: this.currentDir,
172
+ "aria-labelledby": this.$props.ariaLabelledBy,
173
+ "aria-describedby": this.$props.ariaDescribedBy
174
+ },
175
+ id: id,
176
+ dir: this.currentDir,
177
+ "class": classNames('k-widget k-slider', {
178
+ 'k-rtl': this.currentDir === 'rtl',
179
+ 'k-state-disabled': this.$props.disabled,
180
+ 'k-slider-vertical': this.$props.vertical,
181
+ 'k-slider-horizontal': !this.$props.vertical
182
+ }, this.$props.class),
183
+ "aria-labelledby": this.$props.ariaLabelledBy,
184
+ "aria-describedby": this.$props.ariaDescribedBy
185
+ }, [// @ts-ignore function children
186
+ h(Draggable, {
187
+ onDrag: this.handleTrackPress,
188
+ on: this.v3 ? undefined : {
189
+ "drag": this.handleTrackPress,
190
+ "press": this.handleTrackPress,
191
+ "release": this.handleTrackRelease
192
+ },
193
+ onPress: this.handleTrackPress,
194
+ onRelease: this.handleTrackRelease,
195
+ ref: 'draggable'
196
+ }, this.v3 ? function () {
197
+ return [h("div", {
198
+ ref: 'sliderTrackWrapRef',
199
+ "class": "k-slider-track-wrap",
200
+ style: __assign({
201
+ flexGrow: 1,
202
+ position: 'relative',
203
+ touchAction: 'none'
204
+ }, _this.trackStyles)
205
+ }, [defaultSlot && h("ul", {
206
+ "class": "k-reset k-slider-items",
207
+ style: __assign({}, _this.sliderItemsStyle)
208
+ }, [defaultSlot]), h("div", {
209
+ ref: 'sliderTrackRef',
210
+ "class": "k-slider-track",
211
+ style: _this.$props.vertical ? {
212
+ bottom: 0,
213
+ height: '100%'
214
+ } : (_a = {}, _a[_this.currentDir === 'rtl' ? 'right' : 'left'] = 0, _a.width = '100%', _a)
215
+ }, [_this.percentStart !== null && _this.percentEnd !== null && h("div", {
216
+ "data-selection": true,
217
+ attrs: _this.v3 ? undefined : {
218
+ "data-selection": true,
219
+ title: _this.computedValue.start + " - " + _this.computedValue.end
220
+ },
221
+ ref: 'sliderSelectionRef',
222
+ title: _this.computedValue.start + " - " + _this.computedValue.end,
223
+ "class": "k-slider-selection",
224
+ style: _this.vertical ? {
225
+ height: _this.percentEnd - _this.percentStart + '%',
226
+ bottom: _this.percentStart + '%'
227
+ } : (_b = {}, _b[_this.currentDir === 'rtl' ? 'right' : 'left'] = _this.percentStart + '%', _b.width = _this.percentEnd - _this.percentStart + '%', _b)
228
+ }), h("a", {
229
+ ref: 'startHandle',
230
+ role: "slider",
231
+ attrs: _this.v3 ? undefined : {
232
+ role: "slider",
233
+ tabIndex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
234
+ "aria-valuemin": _this.min,
235
+ "aria-valuemax": Math.max(_this.max, _this.computedValue.end),
236
+ "aria-valuenow": _this.computedValue.start,
237
+ "aria-disabled": _this.disabled ? 'true' : undefined,
238
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
239
+ },
240
+ tabIndex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
241
+ "aria-valuemin": _this.min,
242
+ "aria-valuemax": Math.max(_this.max, _this.computedValue.end),
243
+ "aria-valuenow": _this.computedValue.start,
244
+ "aria-disabled": _this.disabled ? 'true' : undefined,
245
+ "class": "k-draghandle",
246
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
247
+ style: _this.vertical ? {
248
+ bottom: 'calc(' + _this.percentStart + '%)',
249
+ zIndex: 1
250
+ } : _this.currentDir === 'rtl' ? {
251
+ right: 'calc(' + _this.percentStart + '% - 13px)',
252
+ zIndex: 1
253
+ } : {
254
+ left: 'calc(' + _this.percentStart + '%)',
255
+ zIndex: 1
256
+ },
257
+ onKeydown: _this.handleStartKeyDown,
258
+ on: _this.v3 ? undefined : {
259
+ "keydown": _this.handleStartKeyDown
260
+ }
261
+ }), h("a", {
262
+ ref: 'endHandle',
263
+ role: "slider",
264
+ attrs: _this.v3 ? undefined : {
265
+ role: "slider",
266
+ tabIndex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
267
+ "aria-valuemin": Math.min(_this.min, _this.computedValue.start),
268
+ "aria-valuemax": _this.max,
269
+ "aria-valuenow": _this.computedValue.end,
270
+ "aria-disabled": _this.disabled ? 'true' : undefined,
271
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
272
+ },
273
+ tabIndex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
274
+ "aria-valuemin": Math.min(_this.min, _this.computedValue.start),
275
+ "aria-valuemax": _this.max,
276
+ "aria-valuenow": _this.computedValue.end,
277
+ "aria-disabled": _this.disabled ? 'true' : undefined,
278
+ "class": "k-draghandle",
279
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
280
+ style: _this.vertical ? {
281
+ bottom: 'calc(' + _this.percentEnd + '%)',
282
+ zIndex: 1
283
+ } : _this.currentDir === 'rtl' ? {
284
+ right: 'calc(' + _this.percentEnd + '% - 13px)',
285
+ zIndex: 1
286
+ } : {
287
+ left: 'calc(' + _this.percentEnd + '%)',
288
+ zIndex: 1
289
+ },
290
+ onKeydown: _this.handleEndKeyDown,
291
+ on: _this.v3 ? undefined : {
292
+ "keydown": _this.handleEndKeyDown
293
+ }
294
+ })])])];
295
+ } : [h("div", {
296
+ ref: 'sliderTrackWrapRef',
297
+ "class": "k-slider-track-wrap",
298
+ style: __assign({
299
+ flexGrow: 1,
300
+ position: 'relative',
301
+ touchAction: 'none'
302
+ }, _this.trackStyles)
303
+ }, [defaultSlot && h("ul", {
304
+ "class": "k-reset k-slider-items",
305
+ style: __assign({}, _this.sliderItemsStyle)
306
+ }, [defaultSlot]), h("div", {
307
+ ref: 'sliderTrackRef',
308
+ "class": "k-slider-track",
309
+ style: _this.$props.vertical ? {
310
+ bottom: 0,
311
+ height: '100%'
312
+ } : (_a = {}, _a[_this.currentDir === 'rtl' ? 'right' : 'left'] = 0, _a.width = '100%', _a)
313
+ }, [_this.percentStart !== null && _this.percentEnd !== null && h("div", {
314
+ "data-selection": true,
315
+ attrs: _this.v3 ? undefined : {
316
+ "data-selection": true,
317
+ title: _this.computedValue.start + " - " + _this.computedValue.end
318
+ },
319
+ ref: 'sliderSelectionRef',
320
+ title: _this.computedValue.start + " - " + _this.computedValue.end,
321
+ "class": "k-slider-selection",
322
+ style: _this.vertical ? {
323
+ height: _this.percentEnd - _this.percentStart + '%',
324
+ bottom: _this.percentStart + '%'
325
+ } : (_b = {}, _b[_this.currentDir === 'rtl' ? 'right' : 'left'] = _this.percentStart + '%', _b.width = _this.percentEnd - _this.percentStart + '%', _b)
326
+ }), h("a", {
327
+ ref: 'startHandle',
328
+ role: "slider",
329
+ attrs: _this.v3 ? undefined : {
330
+ role: "slider",
331
+ tabIndex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
332
+ "aria-valuemin": _this.min,
333
+ "aria-valuemax": Math.max(_this.max, _this.computedValue.end),
334
+ "aria-valuenow": _this.computedValue.start,
335
+ "aria-disabled": _this.disabled ? 'true' : undefined,
336
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
337
+ },
338
+ tabIndex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
339
+ "aria-valuemin": _this.min,
340
+ "aria-valuemax": Math.max(_this.max, _this.computedValue.end),
341
+ "aria-valuenow": _this.computedValue.start,
342
+ "aria-disabled": _this.disabled ? 'true' : undefined,
343
+ "class": "k-draghandle",
344
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
345
+ style: _this.vertical ? {
346
+ bottom: 'calc(' + _this.percentStart + '%)',
347
+ zIndex: 1
348
+ } : _this.currentDir === 'rtl' ? {
349
+ right: 'calc(' + _this.percentStart + '% - 13px)',
350
+ zIndex: 1
351
+ } : {
352
+ left: 'calc(' + _this.percentStart + '%)',
353
+ zIndex: 1
354
+ },
355
+ onKeydown: _this.handleStartKeyDown,
356
+ on: _this.v3 ? undefined : {
357
+ "keydown": _this.handleStartKeyDown
358
+ }
359
+ }), h("a", {
360
+ ref: 'endHandle',
361
+ role: "slider",
362
+ attrs: _this.v3 ? undefined : {
363
+ role: "slider",
364
+ tabIndex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
365
+ "aria-valuemin": Math.min(_this.min, _this.computedValue.start),
366
+ "aria-valuemax": _this.max,
367
+ "aria-valuenow": _this.computedValue.end,
368
+ "aria-disabled": _this.disabled ? 'true' : undefined,
369
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
370
+ },
371
+ tabIndex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
372
+ "aria-valuemin": Math.min(_this.min, _this.computedValue.start),
373
+ "aria-valuemax": _this.max,
374
+ "aria-valuenow": _this.computedValue.end,
375
+ "aria-disabled": _this.disabled ? 'true' : undefined,
376
+ "class": "k-draghandle",
377
+ title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle]),
378
+ style: _this.vertical ? {
379
+ bottom: 'calc(' + _this.percentEnd + '%)',
380
+ zIndex: 1
381
+ } : _this.currentDir === 'rtl' ? {
382
+ right: 'calc(' + _this.percentEnd + '% - 13px)',
383
+ zIndex: 1
384
+ } : {
385
+ left: 'calc(' + _this.percentEnd + '%)',
386
+ zIndex: 1
387
+ },
388
+ onKeydown: _this.handleEndKeyDown,
389
+ on: _this.v3 ? undefined : {
390
+ "keydown": _this.handleEndKeyDown
391
+ }
392
+ })])])])]);
393
+ },
394
+ methods: {
395
+ dispatchStateValue: function dispatchStateValue(args) {
396
+ var newState = rangeReducer({
397
+ start: this.computedValue.start,
398
+ end: this.computedValue.end
399
+ }, __assign(__assign({}, args), {
400
+ min: this.min,
401
+ max: this.max,
402
+ step: this.step
403
+ }));
404
+ this.currentValue.start = newState.start;
405
+ this.currentValue.end = newState.end;
406
+ this.$emit('change', {
407
+ min: this.min,
408
+ max: this.max,
409
+ step: this.step,
410
+ value: {
411
+ start: newState.start,
412
+ end: newState.end
413
+ }
414
+ });
415
+ },
416
+ focus: function focus() {
417
+ if (this.startHandle) {
418
+ this.startHandle.focus();
419
+ }
420
+ },
421
+ handleChange: function handleChange(newValue, event) {
422
+ this.$emit('change', {
423
+ value: newValue,
424
+ // target: target.current,
425
+ event: event
426
+ });
427
+ },
428
+ calcNewDistance: function calcNewDistance(event) {
429
+ if (!this.sliderTrackWrapRef) {
430
+ return;
431
+ }
432
+
433
+ event.originalEvent.preventDefault();
434
+ var computed = this.sliderTrackWrapRef.getBoundingClientRect();
435
+ var distance = this.$props.vertical ? computed.bottom - event.clientY : this.currentDir === 'rtl' ? computed.right - event.clientX : event.clientX - computed.left;
436
+ var size = this.$props.vertical ? computed.height : computed.width;
437
+ var percentage = distance / size;
438
+ var payload = this.min + percentage * (this.max - this.min);
439
+ return payload;
440
+ },
441
+ calcKey: function calcKey(payload) {
442
+ if (payload <= this.computedValue.start) {
443
+ return 'start';
444
+ }
445
+
446
+ if (payload >= this.computedValue.end) {
447
+ return 'end';
448
+ }
449
+
450
+ return 2 * payload < this.computedValue.end + this.computedValue.start ? 'start' : 'end';
451
+ },
452
+ handleStartKeyDown: function handleStartKeyDown(event) {
453
+ switch (event.keyCode) {
454
+ case Keys.right:
455
+ event.preventDefault();
456
+ this.dispatchStateValue({
457
+ type: this.currentDir === 'rtl' ? RANGE_ACTION.decrease : RANGE_ACTION.increase,
458
+ key: 'start',
459
+ event: event
460
+ });
461
+ break;
462
+
463
+ case Keys.up:
464
+ event.preventDefault();
465
+ this.dispatchStateValue({
466
+ type: RANGE_ACTION.increase,
467
+ key: 'start',
468
+ event: event
469
+ });
470
+ break;
471
+
472
+ case Keys.left:
473
+ event.preventDefault();
474
+ this.dispatchStateValue({
475
+ type: this.currentDir === 'rtl' ? RANGE_ACTION.increase : RANGE_ACTION.decrease,
476
+ key: 'start',
477
+ event: event
478
+ });
479
+ break;
480
+
481
+ case Keys.down:
482
+ event.preventDefault();
483
+ this.dispatchStateValue({
484
+ type: RANGE_ACTION.decrease,
485
+ key: 'start',
486
+ event: event
487
+ });
488
+ break;
489
+
490
+ case Keys.home:
491
+ event.preventDefault();
492
+ this.dispatchStateValue({
493
+ type: RANGE_ACTION.min,
494
+ key: 'start',
495
+ event: event
496
+ });
497
+ break;
498
+
499
+ case Keys.end:
500
+ event.preventDefault();
501
+ this.dispatchStateValue({
502
+ type: RANGE_ACTION.max,
503
+ key: 'start',
504
+ event: event
505
+ });
506
+ break;
507
+
508
+ default:
509
+ break;
510
+ }
511
+ },
512
+ handleEndKeyDown: function handleEndKeyDown(event) {
513
+ switch (event.keyCode) {
514
+ case Keys.right:
515
+ event.preventDefault();
516
+ this.dispatchStateValue({
517
+ type: this.currentDir === 'rtl' ? RANGE_ACTION.decrease : RANGE_ACTION.increase,
518
+ key: 'end',
519
+ event: event
520
+ });
521
+ break;
522
+
523
+ case Keys.up:
524
+ event.preventDefault();
525
+ this.dispatchStateValue({
526
+ type: RANGE_ACTION.increase,
527
+ key: 'end',
528
+ event: event
529
+ });
530
+ break;
531
+
532
+ case Keys.left:
533
+ event.preventDefault();
534
+ this.dispatchStateValue({
535
+ type: this.currentDir === 'rtl' ? RANGE_ACTION.increase : RANGE_ACTION.decrease,
536
+ key: 'end',
537
+ event: event
538
+ });
539
+ break;
540
+
541
+ case Keys.down:
542
+ event.preventDefault();
543
+ this.dispatchStateValue({
544
+ type: RANGE_ACTION.decrease,
545
+ key: 'end',
546
+ event: event
547
+ });
548
+ break;
549
+
550
+ case Keys.home:
551
+ event.preventDefault();
552
+ this.dispatchStateValue({
553
+ type: RANGE_ACTION.min,
554
+ key: 'end',
555
+ event: event
556
+ });
557
+ break;
558
+
559
+ case Keys.end:
560
+ event.preventDefault();
561
+ this.dispatchStateValue({
562
+ type: RANGE_ACTION.max,
563
+ key: 'end',
564
+ event: event
565
+ });
566
+ break;
567
+
568
+ default:
569
+ break;
570
+ }
571
+ },
572
+ handleTrackPress: function handleTrackPress(event) {
573
+ var payload = this.calcNewDistance(event);
574
+ var key = this.calcKey(payload);
575
+ this.currentDrag = key;
576
+ key === 'end' ? this.endHandle.focus() : this.startHandle.focus();
577
+ var action = key === 'end' ? RANGE_ACTION.end : RANGE_ACTION.start;
578
+ this.dispatchStateValue({
579
+ type: action,
580
+ payload: payload,
581
+ event: event
582
+ });
583
+ },
584
+ handleTrackDrag: function handleTrackDrag(event) {
585
+ var payload = this.calcNewDistance(event);
586
+ var action = this.currentDrag === 'end' ? RANGE_ACTION.end : RANGE_ACTION.start;
587
+ this.dispatchStateValue({
588
+ type: action,
589
+ payload: payload,
590
+ event: event
591
+ });
592
+ },
593
+ handleTrackRelease: function handleTrackRelease(event) {
594
+ var payload = this.calcNewDistance(event);
595
+ var action = this.currentDrag === 'end' ? RANGE_ACTION.end : RANGE_ACTION.start;
596
+ this.dispatchStateValue({
597
+ type: action,
598
+ payload: payload,
599
+ event: event
600
+ });
601
+ this.currentDrag = '';
602
+ }
603
+ }
604
+ };
605
+ var RangeSlider = RangeSliderVue2;
606
+ export { RangeSlider, RangeSliderVue2 };
@@ -0,0 +1,35 @@
1
+ import { Range } from './RangeSlider';
2
+ import { DraggableDragEvent } from '@progress/kendo-vue-common';
3
+ /**
4
+ * @hidden
5
+ */
6
+ export declare enum RANGE_ACTION {
7
+ start = "start",
8
+ end = "end",
9
+ min = "min",
10
+ max = "max",
11
+ increase = "increase",
12
+ decrease = "decrease"
13
+ }
14
+ /**
15
+ * @hidden
16
+ */
17
+ export declare type RangeActionDispatch = {
18
+ type: RANGE_ACTION;
19
+ payload?: number;
20
+ key?: string;
21
+ event?: any | DraggableDragEvent;
22
+ state?: Range;
23
+ };
24
+ /**
25
+ * @hidden
26
+ */
27
+ export interface RangeAction extends RangeActionDispatch {
28
+ step: number;
29
+ min: number;
30
+ max: number;
31
+ }
32
+ /**
33
+ * @hidden
34
+ */
35
+ export declare const rangeReducer: (state: any, action: RangeAction) => any;