@progress/kendo-react-inputs 13.3.0-develop.9 → 13.4.0-develop.1
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/checkbox/Checkbox.d.ts +49 -0
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Checkbox.mjs +35 -36
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +14 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +18 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +14 -0
- package/checkbox/interfaces/CheckboxProps.d.ts +148 -0
- package/colors/ColorContrastLabels.d.ts +22 -0
- package/colors/ColorContrastSvg.d.ts +25 -0
- package/colors/ColorGradient.d.ts +215 -0
- package/colors/ColorGradient.js +1 -1
- package/colors/ColorGradient.mjs +20 -19
- package/colors/ColorInput.d.ts +40 -0
- package/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +20 -16
- package/colors/ColorPalette.d.ts +129 -0
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +7 -7
- package/colors/ColorPicker.d.ts +34 -0
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +96 -94
- package/colors/FlatColorPicker.d.ts +189 -0
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +41 -40
- package/colors/HexInput.d.ts +39 -0
- package/colors/HexInput.js +1 -1
- package/colors/HexInput.mjs +2 -1
- package/colors/Picker.d.ts +13 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +18 -0
- package/colors/interfaces/ColorGradientProps.d.ts +160 -0
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +22 -0
- package/colors/interfaces/ColorPaletteProps.d.ts +116 -0
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +29 -0
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +20 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +29 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +20 -0
- package/colors/interfaces/ColorPickerGradientSettings.d.ts +29 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/ColorPickerProps.d.ts +242 -0
- package/colors/interfaces/ColorPickerView.d.ts +17 -0
- package/colors/interfaces/PickerPopupSettings.d.ts +29 -0
- package/colors/interfaces/PickerProps.d.ts +57 -0
- package/colors/models/hsva.d.ts +16 -0
- package/colors/models/output-format.d.ts +11 -0
- package/colors/models/palette-presets.d.ts +60 -0
- package/colors/models/rgb.d.ts +15 -0
- package/colors/models/rgba.d.ts +16 -0
- package/colors/models/table-cell.d.ts +14 -0
- package/colors/models/tile-size.d.ts +18 -0
- package/colors/utils/color-cache.d.ts +37 -0
- package/colors/utils/color-palette.service.d.ts +19 -0
- package/colors/utils/color-parser.d.ts +72 -0
- package/colors/utils/color-parser.js +1 -1
- package/colors/utils/color-parser.mjs +1 -1
- package/colors/utils/misc.d.ts +23 -0
- package/colors/utils/svg-calc.d.ts +69 -0
- package/common/AdaptiveMode.d.ts +21 -0
- package/common/SliderTooltip.d.ts +25 -0
- package/common/SwitchController.d.ts +38 -0
- package/common/SwitchModel.d.ts +14 -0
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/index.d.mts +72 -5128
- package/index.d.ts +72 -5128
- package/input/Input.d.ts +119 -0
- package/input/Input.js +1 -1
- package/input/Input.mjs +45 -43
- package/input/InputClearValue.d.ts +28 -0
- package/input/InputPrefix.d.ts +30 -0
- package/input/InputSeparator.d.ts +30 -0
- package/input/InputSuffix.d.ts +32 -0
- package/input/InputValidationIcon.d.ts +21 -0
- package/input/interfaces/InputChangeEvent.d.ts +18 -0
- package/interfaces/Direction.d.ts +8 -0
- package/interfaces/ToggleBaseProps.d.ts +24 -0
- package/maskedtextbox/MaskedTextBox.d.ts +224 -0
- package/maskedtextbox/MaskedTextBox.js +1 -1
- package/maskedtextbox/MaskedTextBox.mjs +80 -79
- package/maskedtextbox/MaskedTextBoxProps.d.ts +273 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/masking.service.mjs +9 -9
- package/maskedtextbox/parsing/combinators.d.ts +16 -0
- package/maskedtextbox/parsing/parsers.d.ts +54 -0
- package/maskedtextbox/parsing/result.d.ts +30 -0
- package/maskedtextbox/parsing/stream.d.ts +29 -0
- package/maskedtextbox/utils.d.ts +23 -0
- package/messages/index.d.ts +177 -0
- package/numerictextbox/NumericTextBox.d.ts +21 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +161 -161
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +14 -0
- package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +18 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +14 -0
- package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +46 -0
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +212 -0
- package/numerictextbox/interfaces/NumericTextBoxState.d.ts +22 -0
- package/numerictextbox/utils/index.d.ts +126 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +10 -10
- package/radiobutton/RadioButton.d.ts +36 -0
- package/radiobutton/RadioButton.js +1 -1
- package/radiobutton/RadioButton.mjs +8 -8
- package/radiobutton/RadioGroup.d.ts +36 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +18 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioButtonProps.d.ts +107 -0
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +18 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioGroupProps.d.ts +178 -0
- package/range-slider/RangeSlider.d.ts +152 -0
- package/range-slider/range-raducer.d.ts +46 -0
- package/rating/Rating.d.ts +302 -0
- package/rating/Rating.mjs +3 -3
- package/rating/RatingItem.d.ts +111 -0
- package/rating/models/index.d.ts +91 -0
- package/rating/rating-reducer.d.ts +39 -0
- package/rating/utils/index.d.ts +31 -0
- package/signature/Signature.d.ts +21 -0
- package/signature/Signature.js +1 -1
- package/signature/Signature.mjs +26 -23
- package/signature/interfaces/SignatureBlurEvent.d.ts +14 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +18 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +14 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +14 -0
- package/signature/interfaces/SignatureHandle.d.ts +49 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +14 -0
- package/signature/interfaces/SignatureProps.d.ts +324 -0
- package/signature/interfaces/index.d.ts +14 -0
- package/signature/utils/index.d.ts +11 -0
- package/slider/Slider.d.ts +288 -0
- package/slider/Slider.mjs +9 -9
- package/slider/SliderLabel.d.ts +51 -0
- package/switch/Switch.d.ts +397 -0
- package/switch/Switch.js +1 -1
- package/switch/Switch.mjs +29 -22
- package/textarea/TextArea.d.ts +40 -0
- package/textarea/TextArea.js +1 -1
- package/textarea/TextArea.mjs +41 -41
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +14 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +18 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +14 -0
- package/textarea/interfaces/TextAreaProps.d.ts +199 -0
- package/textbox/Textbox.d.ts +99 -0
- package/textbox/Textbox.js +1 -1
- package/textbox/Textbox.mjs +70 -66
- package/utils.d.ts +11 -0
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { FormComponentProps, BaseEvent } from '@progress/kendo-react-common';
|
|
10
|
+
import { Direction } from '../interfaces/Direction.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* The arguments for the `onChange` Slider event.
|
|
14
|
+
*/
|
|
15
|
+
export interface SliderChangeEvent extends BaseEvent<Slider> {
|
|
16
|
+
/**
|
|
17
|
+
* The current value of the Slider.
|
|
18
|
+
*/
|
|
19
|
+
value: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents the props of the [KendoReact Slider component](https://www.telerik.com/kendo-react-ui/components/inputs/slider).
|
|
23
|
+
*/
|
|
24
|
+
export interface SliderProps extends FormComponentProps {
|
|
25
|
+
/**
|
|
26
|
+
* The content of the Slider component.
|
|
27
|
+
*/
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the current value of the Slider.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```jsx
|
|
34
|
+
* <Slider value={50} min={0} max={100} />
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
value?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the default value of the Slider.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```jsx
|
|
43
|
+
* <Slider defaultValue={30} min={0} max={100} />
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
defaultValue?: number;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the minimum value of the Slider.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```jsx
|
|
52
|
+
* <Slider min={0} max={100} />
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
min: number;
|
|
56
|
+
/**
|
|
57
|
+
* Specifies the maximum value of the Slider.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```jsx
|
|
61
|
+
* <Slider min={0} max={100} />
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
max: number;
|
|
65
|
+
/**
|
|
66
|
+
* Specifies the step by which the Slider's value will be increased or decreased using its buttons or keyboard arrows.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```jsx
|
|
70
|
+
* <Slider step={5} min={0} max={100} />
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
step?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Specifies the step by which the Slider's value will be increased or decreased using `pageUp` or `pageDown` keyboard buttons.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```jsx
|
|
79
|
+
* <Slider largeStep={10} min={0} max={100} />
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
largeStep?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Fires when the value of the Slider changes.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* ```jsx
|
|
88
|
+
* <Slider onChange={(event) => console.log(event.value)} min={0} max={100} />
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
onChange?: (event: SliderChangeEvent) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Sets additional CSS styles to the Slider.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```jsx
|
|
97
|
+
* <Slider style={{ margin: '10px' }} min={0} max={100} />
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
style?: React.CSSProperties;
|
|
101
|
+
/**
|
|
102
|
+
* Adds custom CSS classes to the Slider.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```jsx
|
|
106
|
+
* <Slider className="custom-class" min={0} max={100} />
|
|
107
|
+
* ```
|
|
108
|
+
*/
|
|
109
|
+
className?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Renders the arrow side buttons of the Slider if set to `true`.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```jsx
|
|
115
|
+
* <Slider buttons={true} min={0} max={100} />
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
buttons?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Specifies the `tabIndex` of the Slider.
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* ```jsx
|
|
124
|
+
* <Slider tabIndex={0} min={0} max={100} />
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
tabIndex?: number;
|
|
128
|
+
/**
|
|
129
|
+
* When `true`, disables the Slider.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```jsx
|
|
133
|
+
* <Slider disabled={true} min={0} max={100} />
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
disabled?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Changes the orientation of the Slider to vertical if set to `true`.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```jsx
|
|
142
|
+
* <Slider vertical={true} min={0} max={100} />
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
vertical?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Specifies the `id` of the Slider.
|
|
148
|
+
*
|
|
149
|
+
* @example
|
|
150
|
+
* ```jsx
|
|
151
|
+
* <Slider id="slider-component" min={0} max={100} />
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
id?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Identifies the element(s) which will describe the component.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* ```jsx
|
|
160
|
+
* <Slider ariaDescribedBy="description-id" min={0} max={100} />
|
|
161
|
+
* ```
|
|
162
|
+
*/
|
|
163
|
+
ariaDescribedBy?: string;
|
|
164
|
+
/**
|
|
165
|
+
* Identifies the element(s) which will label the component.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* ```jsx
|
|
169
|
+
* <Slider ariaLabelledBy="label-id" min={0} max={100} />
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
ariaLabelledBy?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Specifies the accessible label of the Slider.
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```jsx
|
|
178
|
+
* <Slider ariaLabel="Slider component" min={0} max={100} />
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
ariaLabel?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Specifies the direction of the Slider (`ltr` or `rtl`).
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```jsx
|
|
187
|
+
* <Slider dir="rtl" min={0} max={100} />
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
dir?: Direction;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* @hidden
|
|
194
|
+
*/
|
|
195
|
+
interface SliderState {
|
|
196
|
+
value: number;
|
|
197
|
+
focused: boolean;
|
|
198
|
+
dir?: Direction;
|
|
199
|
+
}
|
|
200
|
+
/** @hidden */
|
|
201
|
+
export declare class SliderWithoutContext extends React.Component<SliderProps, SliderState> {
|
|
202
|
+
static displayName: string;
|
|
203
|
+
/**
|
|
204
|
+
* @hidden
|
|
205
|
+
*/
|
|
206
|
+
static propTypes: {
|
|
207
|
+
min: PropTypes.Validator<number>;
|
|
208
|
+
max: PropTypes.Validator<number>;
|
|
209
|
+
value: PropTypes.Requireable<number>;
|
|
210
|
+
vertical: PropTypes.Requireable<boolean>;
|
|
211
|
+
id: PropTypes.Requireable<string>;
|
|
212
|
+
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
213
|
+
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
214
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* @hidden
|
|
218
|
+
*/
|
|
219
|
+
static getDerivedStateFromProps(props: SliderProps, state: SliderState): {
|
|
220
|
+
value: number;
|
|
221
|
+
} | null;
|
|
222
|
+
/**
|
|
223
|
+
* @hidden
|
|
224
|
+
*/
|
|
225
|
+
state: {
|
|
226
|
+
value: number;
|
|
227
|
+
focused: boolean;
|
|
228
|
+
dir: Direction | undefined;
|
|
229
|
+
};
|
|
230
|
+
private _sliderTrack;
|
|
231
|
+
private _element;
|
|
232
|
+
constructor(props: SliderProps);
|
|
233
|
+
/**
|
|
234
|
+
* @hidden
|
|
235
|
+
*/
|
|
236
|
+
componentDidMount(): void;
|
|
237
|
+
/**
|
|
238
|
+
* @hidden
|
|
239
|
+
*/
|
|
240
|
+
buttons: (props: any) => any;
|
|
241
|
+
/**
|
|
242
|
+
* @hidden
|
|
243
|
+
*/
|
|
244
|
+
render(): React.JSX.Element;
|
|
245
|
+
/**
|
|
246
|
+
* @hidden
|
|
247
|
+
*/
|
|
248
|
+
focus: () => void;
|
|
249
|
+
/**
|
|
250
|
+
* @hidden
|
|
251
|
+
*/
|
|
252
|
+
get sliderTrack(): HTMLDivElement | null;
|
|
253
|
+
private isLabel;
|
|
254
|
+
private onFocus;
|
|
255
|
+
private onBlur;
|
|
256
|
+
private onKeyDown;
|
|
257
|
+
private decrement;
|
|
258
|
+
private increment;
|
|
259
|
+
private dragStart;
|
|
260
|
+
private dragOver;
|
|
261
|
+
private drag;
|
|
262
|
+
private change;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Represents the PropsContext of the `Slider` component.
|
|
266
|
+
* Used for global configuration of all `Slider` instances.
|
|
267
|
+
*
|
|
268
|
+
* For more information, refer to the [Inputs Props Context](https://www.telerik.com/kendo-react-ui/components/inputs/props-context) article.
|
|
269
|
+
*/
|
|
270
|
+
export declare const SliderPropsContext: React.Context<(p: SliderProps) => SliderProps>;
|
|
271
|
+
/**
|
|
272
|
+
* Represent the `ref` of the Slider component.
|
|
273
|
+
*
|
|
274
|
+
* @remarks
|
|
275
|
+
* Supported children components are: {@link SliderLabel}.
|
|
276
|
+
*/
|
|
277
|
+
export interface SliderHandle extends Pick<SliderWithoutContext, keyof SliderWithoutContext> {
|
|
278
|
+
}
|
|
279
|
+
/** @hidden */
|
|
280
|
+
export type Slider = SliderHandle;
|
|
281
|
+
/**
|
|
282
|
+
* Represents the [KendoReact Slider component](https://www.telerik.com/kendo-react-ui/components/inputs/slider).
|
|
283
|
+
*
|
|
284
|
+
* Accepts properties of type [SliderProps](https://www.telerik.com/kendo-react-ui/components/inputs/api/sliderprops).
|
|
285
|
+
* Obtaining the `ref` returns an object of type [SliderHandle](https://www.telerik.com/kendo-react-ui/components/inputs/api/sliderhandle).
|
|
286
|
+
*/
|
|
287
|
+
export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<any>>;
|
|
288
|
+
export {};
|
package/slider/Slider.mjs
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as i from "react";
|
|
9
9
|
import a from "prop-types";
|
|
10
|
-
import {
|
|
10
|
+
import { withPropsContext as y, createPropsContext as w, Keys as n, classNames as S, Draggable as x, getTabIndex as T, dispatchEvent as E } from "@progress/kendo-react-common";
|
|
11
11
|
import { provideLocalizationService as D, registerForLocalization as C } from "@progress/kendo-react-intl";
|
|
12
|
-
import {
|
|
12
|
+
import { sliderDecreaseValue as d, messages as h, sliderIncreaseValue as m, sliderDragTitle as u } from "../messages/index.mjs";
|
|
13
13
|
import { SLIDER_LABEL_ATTRIBUTE as I } from "./SliderLabel.mjs";
|
|
14
14
|
import { Button as v } from "@progress/kendo-react-buttons";
|
|
15
15
|
import { caretAltUpIcon as g, caretAltLeftIcon as f, caretAltRightIcon as b, caretAltDownIcon as k } from "@progress/kendo-svg-icons";
|
|
@@ -107,7 +107,7 @@ const p = class p extends i.Component {
|
|
|
107
107
|
onFocus: this.onFocus,
|
|
108
108
|
onBlur: this.onBlur,
|
|
109
109
|
onKeyDown: this.onKeyDown,
|
|
110
|
-
className:
|
|
110
|
+
className: S(
|
|
111
111
|
"k-slider",
|
|
112
112
|
{
|
|
113
113
|
"k-focus": this.state.focused,
|
|
@@ -124,10 +124,10 @@ const p = class p extends i.Component {
|
|
|
124
124
|
enabled: this.props.buttons,
|
|
125
125
|
decrement: this.decrement,
|
|
126
126
|
increment: this.increment,
|
|
127
|
-
incrementTitle: s.toLanguageString(
|
|
128
|
-
decrementTitle: s.toLanguageString(
|
|
127
|
+
incrementTitle: s.toLanguageString(m, h[m]),
|
|
128
|
+
decrementTitle: s.toLanguageString(d, h[d])
|
|
129
129
|
},
|
|
130
|
-
/* @__PURE__ */ i.createElement(
|
|
130
|
+
/* @__PURE__ */ i.createElement(x, { onDrag: this.dragOver, onPress: this.dragStart, autoScroll: !1 }, /* @__PURE__ */ i.createElement(
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
133
133
|
className: "k-slider-track-wrap",
|
|
@@ -177,7 +177,7 @@ const p = class p extends i.Component {
|
|
|
177
177
|
"aria-labelledby": this.props.ariaLabelledBy,
|
|
178
178
|
"aria-describedby": this.props.ariaDescribedBy,
|
|
179
179
|
"aria-label": this.props.ariaLabel,
|
|
180
|
-
tabIndex:
|
|
180
|
+
tabIndex: T(this.props.tabIndex, this.props.disabled, void 0),
|
|
181
181
|
className: "k-draghandle k-draghandle-end",
|
|
182
182
|
title: s.toLanguageString(u, h[u]),
|
|
183
183
|
style: this.props.vertical ? { bottom: "calc(" + t + "%)", zIndex: 1 } : this.state.dir === "rtl" ? { right: "calc(" + t + "% - 13px)", zIndex: 1 } : { left: "calc(" + t + "%)", zIndex: 1 }
|
|
@@ -195,7 +195,7 @@ const p = class p extends i.Component {
|
|
|
195
195
|
return this._sliderTrack;
|
|
196
196
|
}
|
|
197
197
|
change(s, t) {
|
|
198
|
-
t = Math.min(Math.max(t, this.props.min), this.props.max), this.setState({ value: t }),
|
|
198
|
+
t = Math.min(Math.max(t, this.props.min), this.props.max), this.setState({ value: t }), E(this.props.onChange, s, this, { value: t });
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
p.displayName = "Slider", p.propTypes = {
|
|
@@ -210,7 +210,7 @@ p.displayName = "Slider", p.propTypes = {
|
|
|
210
210
|
// TODO: validation when buttons is set to true, but no step is provided
|
|
211
211
|
};
|
|
212
212
|
let c = p;
|
|
213
|
-
const L =
|
|
213
|
+
const L = w(), A = y(L, c);
|
|
214
214
|
A.displayName = "KendoReactSlider";
|
|
215
215
|
C(c);
|
|
216
216
|
export {
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const SLIDER_LABEL_ATTRIBUTE = "data-slider-label";
|
|
13
|
+
/**
|
|
14
|
+
* Represents the props of the KendoReact SliderLabel component.
|
|
15
|
+
*/
|
|
16
|
+
export interface SliderLabelProps {
|
|
17
|
+
/**
|
|
18
|
+
* The position in relative to the start of the SliderLabel component.
|
|
19
|
+
*/
|
|
20
|
+
position: number;
|
|
21
|
+
/**
|
|
22
|
+
* The onClick event of the SliderLabel component.
|
|
23
|
+
*/
|
|
24
|
+
onClick?: (event: React.MouseEvent<HTMLLIElement>) => void;
|
|
25
|
+
/**
|
|
26
|
+
* The title of the SliderLabel component.
|
|
27
|
+
*/
|
|
28
|
+
title?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @hidden
|
|
31
|
+
*/
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
*/
|
|
36
|
+
vertical?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* @hidden
|
|
39
|
+
* Used to identify if a tick is first.
|
|
40
|
+
*/
|
|
41
|
+
firstTick?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
* Used to identify if a tick is last.
|
|
45
|
+
*/
|
|
46
|
+
lastTick?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Represents the KendoReact SliderLabel component.
|
|
50
|
+
*/
|
|
51
|
+
export declare const SliderLabel: (props: SliderLabelProps) => React.JSX.Element;
|