@progress/kendo-react-inputs 7.2.4-develop.3 → 7.3.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.
Files changed (205) hide show
  1. package/checkbox/Checkbox.js +8 -0
  2. package/checkbox/Checkbox.mjs +214 -0
  3. package/colors/ColorContrastLabels.js +8 -0
  4. package/colors/ColorContrastLabels.mjs +24 -0
  5. package/colors/ColorContrastSvg.js +8 -0
  6. package/colors/ColorContrastSvg.mjs +52 -0
  7. package/colors/ColorGradient.js +8 -0
  8. package/colors/ColorGradient.mjs +293 -0
  9. package/colors/ColorInput.js +8 -0
  10. package/colors/ColorInput.mjs +122 -0
  11. package/colors/ColorPalette.js +8 -0
  12. package/colors/ColorPalette.mjs +191 -0
  13. package/colors/ColorPicker.js +8 -0
  14. package/colors/ColorPicker.mjs +253 -0
  15. package/colors/FlatColorPicker.js +8 -0
  16. package/colors/FlatColorPicker.mjs +216 -0
  17. package/colors/HexInput.js +8 -0
  18. package/colors/HexInput.mjs +39 -0
  19. package/colors/Picker.js +8 -0
  20. package/colors/Picker.mjs +42 -0
  21. package/colors/models/palette-presets.js +8 -0
  22. package/colors/models/palette-presets.mjs +61 -0
  23. package/colors/utils/color-cache.js +8 -0
  24. package/colors/utils/color-cache.mjs +51 -0
  25. package/colors/utils/color-palette.service.js +8 -0
  26. package/colors/utils/color-palette.service.mjs +50 -0
  27. package/colors/utils/color-parser.js +8 -0
  28. package/colors/utils/color-parser.mjs +61 -0
  29. package/colors/utils/misc.js +8 -0
  30. package/colors/utils/misc.mjs +13 -0
  31. package/colors/utils/svg-calc.js +8 -0
  32. package/colors/utils/svg-calc.mjs +36 -0
  33. package/dist/cdn/js/kendo-react-inputs.js +8 -21
  34. package/index.d.mts +4275 -5
  35. package/index.d.ts +4275 -75
  36. package/index.js +8 -21
  37. package/index.mjs +97 -5042
  38. package/input/Input.js +8 -0
  39. package/input/Input.mjs +185 -0
  40. package/input/InputClearValue.js +8 -0
  41. package/input/InputClearValue.mjs +24 -0
  42. package/input/InputPrefix.js +8 -0
  43. package/input/InputPrefix.mjs +24 -0
  44. package/input/InputSeparator.js +8 -0
  45. package/input/InputSeparator.mjs +24 -0
  46. package/input/InputSuffix.js +8 -0
  47. package/input/InputSuffix.mjs +24 -0
  48. package/input/InputValidationIcon.js +8 -0
  49. package/input/InputValidationIcon.mjs +15 -0
  50. package/maskedtextbox/MaskedTextBox.js +8 -0
  51. package/maskedtextbox/MaskedTextBox.mjs +322 -0
  52. package/maskedtextbox/masking.service.js +8 -0
  53. package/maskedtextbox/masking.service.mjs +121 -0
  54. package/maskedtextbox/parsing/combinators.js +8 -0
  55. package/maskedtextbox/parsing/combinators.mjs +20 -0
  56. package/maskedtextbox/parsing/parsers.js +8 -0
  57. package/maskedtextbox/parsing/parsers.mjs +80 -0
  58. package/maskedtextbox/parsing/result.js +8 -0
  59. package/maskedtextbox/parsing/result.mjs +35 -0
  60. package/maskedtextbox/parsing/stream.js +8 -0
  61. package/maskedtextbox/parsing/stream.mjs +41 -0
  62. package/maskedtextbox/utils.js +8 -0
  63. package/maskedtextbox/utils.mjs +43 -0
  64. package/messages/index.js +8 -0
  65. package/messages/index.mjs +77 -0
  66. package/numerictextbox/NumericTextBox.js +8 -0
  67. package/numerictextbox/NumericTextBox.mjs +415 -0
  68. package/numerictextbox/utils/index.js +8 -0
  69. package/numerictextbox/utils/index.mjs +218 -0
  70. package/package-metadata.js +8 -0
  71. package/package-metadata.mjs +19 -0
  72. package/package.json +8 -8
  73. package/radiobutton/RadioButton.js +8 -0
  74. package/radiobutton/RadioButton.mjs +138 -0
  75. package/radiobutton/RadioGroup.js +8 -0
  76. package/radiobutton/RadioGroup.mjs +135 -0
  77. package/range-slider/RangeSlider.js +20 -0
  78. package/range-slider/RangeSlider.mjs +337 -0
  79. package/range-slider/range-raducer.js +8 -0
  80. package/range-slider/range-raducer.mjs +90 -0
  81. package/rating/Rating.js +12 -0
  82. package/rating/Rating.mjs +323 -0
  83. package/rating/RatingItem.js +8 -0
  84. package/rating/RatingItem.mjs +144 -0
  85. package/rating/rating-reducer.js +8 -0
  86. package/rating/rating-reducer.mjs +34 -0
  87. package/rating/utils/index.js +8 -0
  88. package/rating/utils/index.mjs +28 -0
  89. package/signature/Signature.js +8 -0
  90. package/signature/Signature.mjs +335 -0
  91. package/signature/utils/index.js +8 -0
  92. package/signature/utils/index.mjs +17 -0
  93. package/slider/Slider.js +8 -0
  94. package/slider/Slider.mjs +223 -0
  95. package/slider/SliderLabel.js +8 -0
  96. package/slider/SliderLabel.mjs +39 -0
  97. package/switch/Switch.js +8 -0
  98. package/switch/Switch.mjs +228 -0
  99. package/textarea/TextArea.js +8 -0
  100. package/textarea/TextArea.mjs +196 -0
  101. package/textbox/Textbox.js +8 -0
  102. package/textbox/Textbox.mjs +125 -0
  103. package/checkbox/Checkbox.d.ts +0 -36
  104. package/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -11
  105. package/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -15
  106. package/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -11
  107. package/checkbox/interfaces/CheckboxProps.d.ts +0 -126
  108. package/colors/ColorContrastLabels.d.ts +0 -19
  109. package/colors/ColorContrastSvg.d.ts +0 -22
  110. package/colors/ColorGradient.d.ts +0 -191
  111. package/colors/ColorInput.d.ts +0 -34
  112. package/colors/ColorPalette.d.ts +0 -127
  113. package/colors/ColorPicker.d.ts +0 -34
  114. package/colors/FlatColorPicker.d.ts +0 -139
  115. package/colors/HexInput.d.ts +0 -33
  116. package/colors/Picker.d.ts +0 -10
  117. package/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -15
  118. package/colors/interfaces/ColorGradientProps.d.ts +0 -101
  119. package/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -19
  120. package/colors/interfaces/ColorPaletteProps.d.ts +0 -87
  121. package/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -21
  122. package/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -17
  123. package/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -21
  124. package/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -17
  125. package/colors/interfaces/ColorPickerGradientSettings.d.ts +0 -22
  126. package/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -36
  127. package/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -18
  128. package/colors/interfaces/ColorPickerProps.d.ts +0 -165
  129. package/colors/interfaces/ColorPickerView.d.ts +0 -14
  130. package/colors/interfaces/PickerPopupSettings.d.ts +0 -22
  131. package/colors/interfaces/PickerProps.d.ts +0 -46
  132. package/colors/models/hsva.d.ts +0 -13
  133. package/colors/models/output-format.d.ts +0 -8
  134. package/colors/models/palette-presets.d.ts +0 -57
  135. package/colors/models/rgb.d.ts +0 -12
  136. package/colors/models/rgba.d.ts +0 -13
  137. package/colors/models/table-cell.d.ts +0 -11
  138. package/colors/models/tile-size.d.ts +0 -15
  139. package/colors/utils/color-cache.d.ts +0 -34
  140. package/colors/utils/color-palette.service.d.ts +0 -16
  141. package/colors/utils/color-parser.d.ts +0 -69
  142. package/colors/utils/misc.d.ts +0 -19
  143. package/colors/utils/svg-calc.d.ts +0 -66
  144. package/input/Input.d.ts +0 -171
  145. package/input/InputClearValue.d.ts +0 -19
  146. package/input/InputPrefix.d.ts +0 -29
  147. package/input/InputSeparator.d.ts +0 -29
  148. package/input/InputSuffix.d.ts +0 -29
  149. package/input/InputValidationIcon.d.ts +0 -18
  150. package/input/interfaces/InputChangeEvent.d.ts +0 -15
  151. package/interfaces/Direction.d.ts +0 -5
  152. package/interfaces/ToggleBaseProps.d.ts +0 -12
  153. package/maskedtextbox/MaskedTextBox.d.ts +0 -238
  154. package/maskedtextbox/MaskedTextBoxProps.d.ts +0 -200
  155. package/maskedtextbox/masking.service.d.ts +0 -45
  156. package/maskedtextbox/parsing/combinators.d.ts +0 -13
  157. package/maskedtextbox/parsing/parsers.d.ts +0 -51
  158. package/maskedtextbox/parsing/result.d.ts +0 -27
  159. package/maskedtextbox/parsing/stream.d.ts +0 -26
  160. package/maskedtextbox/utils.d.ts +0 -20
  161. package/messages/index.d.ts +0 -169
  162. package/numerictextbox/NumericTextBox.d.ts +0 -18
  163. package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -11
  164. package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +0 -15
  165. package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -11
  166. package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -43
  167. package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -188
  168. package/numerictextbox/interfaces/NumericTextBoxState.d.ts +0 -19
  169. package/numerictextbox/utils/index.d.ts +0 -123
  170. package/package-metadata.d.ts +0 -9
  171. package/radiobutton/RadioButton.d.ts +0 -27
  172. package/radiobutton/RadioGroup.d.ts +0 -27
  173. package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -11
  174. package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -15
  175. package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -11
  176. package/radiobutton/interfaces/RadioButtonProps.d.ts +0 -101
  177. package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -15
  178. package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -11
  179. package/radiobutton/interfaces/RadioGroupProps.d.ts +0 -90
  180. package/range-slider/RangeSlider.d.ts +0 -142
  181. package/range-slider/range-raducer.d.ts +0 -40
  182. package/rating/Rating.d.ts +0 -170
  183. package/rating/RatingItem.d.ts +0 -108
  184. package/rating/models/index.d.ts +0 -88
  185. package/rating/rating-reducer.d.ts +0 -36
  186. package/rating/utils/index.d.ts +0 -28
  187. package/signature/Signature.d.ts +0 -18
  188. package/signature/interfaces/SignatureBlurEvent.d.ts +0 -11
  189. package/signature/interfaces/SignatureChangeEvent.d.ts +0 -15
  190. package/signature/interfaces/SignatureCloseEvent.d.ts +0 -11
  191. package/signature/interfaces/SignatureFocusEvent.d.ts +0 -11
  192. package/signature/interfaces/SignatureHandle.d.ts +0 -46
  193. package/signature/interfaces/SignatureOpenEvent.d.ts +0 -11
  194. package/signature/interfaces/SignatureProps.d.ts +0 -198
  195. package/signature/interfaces/index.d.ts +0 -11
  196. package/signature/utils/index.d.ts +0 -8
  197. package/slider/Slider.d.ts +0 -197
  198. package/slider/SliderLabel.d.ts +0 -38
  199. package/switch/Switch.d.ts +0 -294
  200. package/textarea/TextArea.d.ts +0 -40
  201. package/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -11
  202. package/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -15
  203. package/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -11
  204. package/textarea/interfaces/TextAreaProps.d.ts +0 -140
  205. package/textbox/Textbox.d.ts +0 -80
@@ -1,169 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export declare const numericIncreaseValue = "numerictextbox.increment";
9
- /**
10
- * @hidden
11
- */
12
- export declare const numericDecreaseValue = "numerictextbox.decrement";
13
- /**
14
- * @hidden
15
- */
16
- export declare const sliderIncreaseValue = "slider.increment";
17
- /**
18
- * @hidden
19
- */
20
- export declare const sliderDecreaseValue = "slider.decrement";
21
- /**
22
- * @hidden
23
- */
24
- export declare const sliderDragTitle = "slider.dragTitle";
25
- /**
26
- * @hidden
27
- */
28
- export declare const colorGradientR = "colorGradient.r";
29
- /**
30
- * @hidden
31
- */
32
- export declare const colorGradientG = "colorGradient.g";
33
- /**
34
- * @hidden
35
- */
36
- export declare const colorGradientB = "colorGradient.b";
37
- /**
38
- * @hidden
39
- */
40
- export declare const colorGradientA = "colorGradient.a";
41
- /**
42
- * @hidden
43
- */
44
- export declare const colorGradientHex = "colorGradient.hex";
45
- /**
46
- * @hidden
47
- */
48
- export declare const colorGradientContrastRatio = "colorGradient.contrastRatio";
49
- /**
50
- * @hidden
51
- */
52
- export declare const colorGradientAALevel = "colorGradient.colorGradientAALevel";
53
- /**
54
- * @hidden
55
- */
56
- export declare const colorGradientAAALevel = "colorGradient.colorGradientAAALevel";
57
- /**
58
- * @hidden
59
- */
60
- export declare const colorGradientPass = "colorGradient.colorGradientPass";
61
- /**
62
- * @hidden
63
- */
64
- export declare const colorGradientFail = "colorGradient.colorGradientFail";
65
- /**
66
- * @hidden
67
- */
68
- export declare const colorGradientHueSliderLabel = "colorGradient.hueSliderLabel";
69
- /**
70
- * @hidden
71
- */
72
- export declare const colorGradientAlphaSliderLabel = "colorGradient.alphaSliderLabel";
73
- /**
74
- * @hidden
75
- */
76
- export declare const colorGradientToggleInputsButton = "colorGradient.toggleInputsButton";
77
- /**
78
- * @hidden
79
- */
80
- export declare const flatColorPickerCancelBtn = "flatColorPicker.cancelBtn";
81
- /**
82
- * @hidden
83
- */
84
- export declare const flatColorPickerApplyBtn = "flatColorPicker.applyBtn";
85
- /**
86
- * @hidden
87
- */
88
- export declare const flatColorPickerColorGradientBtn = "flatColorPicker.colorGradientBtn";
89
- /**
90
- * @hidden
91
- */
92
- export declare const flatColorPickerColorPaletteBtn = "flatColorPicker.colorPaletteBtn";
93
- /**
94
- * @hidden
95
- */
96
- export declare const flatColorPickerClearBtn = "flatColorPicker.clearBtn";
97
- /**
98
- * @hidden
99
- */
100
- export declare const checkboxValidation = "checkbox.validation";
101
- /**
102
- * @hidden
103
- */
104
- export declare const checkboxOptionalText = "checkbox.optionalText";
105
- /**
106
- * @hidden
107
- */
108
- export declare const radioButtonValidation = "radioButton.validation";
109
- /**
110
- * @hidden
111
- */
112
- export declare const switchValidation = "switch.validation";
113
- /**
114
- * @hidden
115
- */
116
- export declare const colorPickerDropdownButtonAriaLabel = "colorPicker.dropdownButtonAriaLabel";
117
- /**
118
- * @hidden
119
- */
120
- export declare const ratingAriaLabel = "rating.ariaLabel";
121
- /**
122
- * @hidden
123
- */
124
- export declare const signatureClear = "signature.clear";
125
- /**
126
- * @hidden
127
- */
128
- export declare const signatureMaximize = "signature.maximize";
129
- /**
130
- * @hidden
131
- */
132
- export declare const signatureMinimize = "signature.minimize";
133
- /**
134
- * @hidden
135
- */
136
- export declare const messages: {
137
- "numerictextbox.increment": string;
138
- "numerictextbox.decrement": string;
139
- "slider.increment": string;
140
- "slider.decrement": string;
141
- "slider.dragTitle": string;
142
- "colorGradient.r": string;
143
- "colorGradient.g": string;
144
- "colorGradient.b": string;
145
- "colorGradient.a": string;
146
- "colorGradient.hex": string;
147
- "colorGradient.contrastRatio": string;
148
- "colorGradient.colorGradientAALevel": string;
149
- "colorGradient.colorGradientAAALevel": string;
150
- "colorGradient.colorGradientPass": string;
151
- "colorGradient.colorGradientFail": string;
152
- "colorGradient.hueSliderLabel": string;
153
- "colorGradient.alphaSliderLabel": string;
154
- "colorGradient.toggleInputsButton": string;
155
- "flatColorPicker.cancelBtn": string;
156
- "flatColorPicker.applyBtn": string;
157
- "flatColorPicker.colorGradientBtn": string;
158
- "flatColorPicker.colorPaletteBtn": string;
159
- "flatColorPicker.clearBtn": string;
160
- "checkbox.validation": string;
161
- "checkbox.optionalText": string;
162
- "radioButton.validation": string;
163
- "switch.validation": string;
164
- "colorPicker.dropdownButtonAriaLabel": string;
165
- "rating.ariaLabel": string;
166
- "signature.clear": string;
167
- "signature.maximize": string;
168
- "signature.minimize": string;
169
- };
@@ -1,18 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { NumericTextBoxProps } from './interfaces/NumericTextBoxProps';
7
- import { NumericTextBoxHandle } from './interfaces/NumericTextBoxHandle';
8
- /**
9
- * Represents the PropsContext of the `NumericTextBox` component.
10
- * Used for global configuration of all `NumericTextBox` instances.
11
- *
12
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
13
- */
14
- export declare const NumericTextBoxPropsContext: React.Context<(p: NumericTextBoxProps) => NumericTextBoxProps>;
15
- /**
16
- * Represents the [KendoReact NumericTextBox component]({% slug overview_numerictextbox %}).
17
- */
18
- export declare const NumericTextBox: React.ForwardRefExoticComponent<NumericTextBoxProps & React.RefAttributes<NumericTextBoxHandle | null>>;
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseEvent } from '@progress/kendo-react-common';
6
- import { NumericTextBoxHandle } from './NumericTextBoxHandle';
7
- /**
8
- * The arguments for the `onBlur` NumericTextBox event.
9
- */
10
- export interface NumericTextBoxBlurEvent extends BaseEvent<NumericTextBoxHandle> {
11
- }
@@ -1,15 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseEvent } from '@progress/kendo-react-common';
6
- import { NumericTextBoxHandle } from './NumericTextBoxHandle';
7
- /**
8
- * The arguments for the `change` event of the NumericTextBox.
9
- */
10
- export interface NumericTextBoxChangeEvent extends BaseEvent<NumericTextBoxHandle> {
11
- /**
12
- * The current value of the NumericTextBox.
13
- */
14
- value: number | null;
15
- }
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { BaseEvent } from '@progress/kendo-react-common';
6
- import { NumericTextBoxHandle } from './NumericTextBoxHandle';
7
- /**
8
- * The arguments for the `onFocus` NumericTextBox event.
9
- */
10
- export interface NumericTextBoxFocusEvent extends BaseEvent<NumericTextBoxHandle> {
11
- }
@@ -1,43 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { FormComponentValidity } from '@progress/kendo-react-common';
6
- import { NumericTextBoxProps } from './NumericTextBoxProps';
7
- /**
8
- * The NumericTextBox ref.
9
- */
10
- export interface NumericTextBoxHandle {
11
- /**
12
- * The NumericTextBox element.
13
- */
14
- element: HTMLInputElement | null;
15
- /**
16
- * Focus the NumericTextBox.
17
- */
18
- focus: () => void;
19
- /**
20
- * Gets the `name` property of the NumericTextBox.
21
- */
22
- name: string | undefined;
23
- /**
24
- * Gets the value of the NumericTextBox.
25
- */
26
- value: number | null;
27
- /**
28
- * Represents the validity state into which the NumericTextBox is set.
29
- */
30
- validity: FormComponentValidity;
31
- /**
32
- * @hidden
33
- */
34
- props: NumericTextBoxProps;
35
- /**
36
- * @hidden
37
- */
38
- validityStyles: boolean;
39
- /**
40
- * @hidden
41
- */
42
- required: boolean;
43
- }
@@ -1,188 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { CustomComponent, FormComponentProps } from '@progress/kendo-react-common';
6
- import { NumberFormatOptions } from '@progress/kendo-react-intl';
7
- import { NumericTextBoxChangeEvent } from './NumericTextBoxChangeEvent';
8
- import { NumericTextBoxFocusEvent } from './NumericTextBoxFocusEvent';
9
- import { NumericTextBoxBlurEvent } from './NumericTextBoxBlurEvent';
10
- type NumericTextBoxInputType = 'tel' | 'text' | 'number';
11
- /**
12
- * Represents the props of the [KendoReact NumericTextBox component]({% slug overview_numerictextbox %}).
13
- */
14
- export interface NumericTextBoxProps extends FormComponentProps {
15
- /**
16
- * Sets a class of the NumericTextBox DOM element.
17
- */
18
- className?: string;
19
- /**
20
- * Specifies the value of the NumericTextBox.
21
- */
22
- value?: number | null;
23
- /**
24
- * Specifies the initial value. Leaves the subsequent updates uncontrolled.
25
- */
26
- defaultValue?: number | null;
27
- /**
28
- * Specifies the value that is used to increment or decrement the value of the NumericTextBox ([see example]({% slug predefinedsteps_numerictextbox %})).
29
- */
30
- step?: number;
31
- /**
32
- * Specifies the number format which is used for formatting the value ([see example]({% slug formats_numerictextbox %})). If set to `an empty string` or `undefined`, the default format will be used. Format cannot contain decimal separators or numbers. Power signs are supported.
33
- */
34
- format?: string | NumberFormatOptions;
35
- /**
36
- * Specifies the width of the NumericTextBox.
37
- */
38
- width?: number | string;
39
- /**
40
- * Sets the `tabIndex` property of the NumericTextBox.
41
- */
42
- tabIndex?: number;
43
- /**
44
- * Specifies the `accessKey` of the NumericTextBox.
45
- */
46
- accessKey?: string;
47
- /**
48
- * Sets the title of the `input` element of the NumericTextBox.
49
- */
50
- title?: string;
51
- /**
52
- * Specifies the input placeholder.
53
- */
54
- placeholder?: string;
55
- /**
56
- * Specifies the smallest value that can be entered.
57
- */
58
- min?: number;
59
- /**
60
- * Specifies the greatest value that can be entered.
61
- */
62
- max?: number;
63
- /**
64
- * Specifies whether the **Up** and **Down** spin buttons will be rendered ([see example]({% slug spinbuttons_numerictextbox %})).
65
- */
66
- spinners?: boolean;
67
- /**
68
- * Determines whether the NumericTextBox is disabled.
69
- */
70
- disabled?: boolean;
71
- /**
72
- * Represents the `dir` HTML attribute.
73
- */
74
- dir?: string;
75
- /**
76
- * Specifies the name of the `input` DOM element.
77
- */
78
- name?: string;
79
- /**
80
- * Renders a floating label for the NumericTextBox.
81
- */
82
- label?: string;
83
- /**
84
- * Sets the `id` of the `input` DOM element.
85
- */
86
- id?: string;
87
- /**
88
- * Sets a custom prefix to the NumericTextBox component.
89
- */
90
- prefix?: CustomComponent<any>;
91
- /**
92
- * Sets a custom suffix to the NumericTextBox component.
93
- */
94
- suffix?: CustomComponent<any>;
95
- /**
96
- * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
97
- * For example these elements could contain error or hint message.
98
- */
99
- ariaDescribedBy?: string;
100
- /**
101
- * Identifies the element(s) which will label the component.
102
- */
103
- ariaLabelledBy?: string;
104
- /**
105
- * The accessible label of the component.
106
- */
107
- ariaLabel?: string;
108
- /**
109
- * Sets the `type` of the `input` DOM element.
110
- *
111
- * The available options are:
112
- * - (Default) `tel`
113
- * - `text`
114
- */
115
- inputType?: NumericTextBoxInputType;
116
- /**
117
- * If enabled, the NumericTextBox will handle the `enter` key to range the current invalid value between `min` and `max` props.
118
- * The available options are:
119
- * - (Default) `true`
120
- * - `false`
121
- * Can be disabled when form submit is required on pressing the `enter` key.
122
- */
123
- rangeOnEnter?: boolean;
124
- /**
125
- * Determines whether the NumericTextBox is in its read-only state.
126
- */
127
- readOnly?: boolean;
128
- /**
129
- * Determines the event handler that will be fired when the user edits the value.
130
- */
131
- onChange?: (event: NumericTextBoxChangeEvent) => void;
132
- /**
133
- * The event handler that will be fired when NumericTextBox is focused.
134
- */
135
- onFocus?: (event: NumericTextBoxFocusEvent) => void;
136
- /**
137
- * The event handler that will be fired when NumericTextBox is blurred.
138
- */
139
- onBlur?: (event: NumericTextBoxBlurEvent) => void;
140
- /** @hidden */
141
- children?: React.ReactNode;
142
- /**
143
- * Configures the `size` of the NumericTextBox.
144
- *
145
- * The available options are:
146
- * - small
147
- * - medium
148
- * - large
149
- * - null&mdash;Does not set a size `className`.
150
- *
151
- * @default `medium`
152
- */
153
- size?: null | 'small' | 'medium' | 'large';
154
- /**
155
- * Configures the `roundness` of the NumericTextBox.
156
- *
157
- * The available options are:
158
- * - small
159
- * - medium
160
- * - large
161
- * - full
162
- * - null&mdash;Does not set a rounded `className`.
163
- *
164
- * @default `medium`
165
- */
166
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
167
- /**
168
- * Configures the `fillMode` of the NumericTextBox.
169
- *
170
- * The available options are:
171
- * - solid
172
- * - outline
173
- * - flat
174
- * - null&mdash;Does not set a fillMode `className`.
175
- *
176
- * @default `solid`
177
- */
178
- fillMode?: null | 'solid' | 'flat' | 'outline';
179
- /**
180
- * Represents the `style` HTML attribute.
181
- */
182
- style?: React.CSSProperties;
183
- /**
184
- * Represents the input element `style` HTML attribute.
185
- */
186
- inputStyle?: React.CSSProperties;
187
- }
188
- export {};
@@ -1,19 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export interface NumericTextBoxState {
9
- eventValue: number | null | undefined;
10
- prevLooseValue: string | undefined;
11
- currentLooseValue: string | undefined;
12
- selectionStart: number | undefined;
13
- selectionEnd: number | undefined;
14
- decimalSelect: boolean;
15
- valueIsCorrected: boolean;
16
- valueIsOutOfRange: boolean;
17
- focused: boolean;
18
- isPaste: boolean;
19
- }
@@ -1,123 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { NumericTextBoxState } from '../interfaces/NumericTextBoxState';
6
- import { NumberFormatOptions } from '@progress/kendo-react-intl';
7
- /**
8
- * @hidden
9
- */
10
- export declare const getInitialState: () => NumericTextBoxState;
11
- /**
12
- * @hidden
13
- */
14
- export declare const getStateOrPropsValue: (value: number | null | undefined, stateValue: number | null | undefined) => number | null | undefined;
15
- /**
16
- * @hidden
17
- */
18
- export declare const formatValue: (value: string | number | null | undefined, format: string | NumberFormatOptions | undefined, intlService: any) => string;
19
- /**
20
- * @hidden
21
- */
22
- export declare const fractionLength: (value: number) => number;
23
- /**
24
- * @hidden
25
- */
26
- export declare const limitPrecision: (precision: number) => number;
27
- /**
28
- * @hidden
29
- */
30
- export declare const toFixedPrecision: (value: number, precision: number) => number;
31
- /**
32
- * @hidden
33
- */
34
- export declare const increaseValue: (value: any, newState: any, step: any, min: any, max: any, format: any, intlService: any) => void;
35
- /**
36
- * @hidden
37
- */
38
- export declare const decreaseValue: (value: any, newState: any, step: any, min: any, max: any, format: any, intlService: any) => void;
39
- /**
40
- * @hidden
41
- */
42
- export declare const rangeValue: (value: number | null, min?: number, max?: number) => number | null;
43
- /**
44
- * @hidden
45
- */
46
- export declare const getMaxCursorPosition: (nextValue: string, formatInfo: string[][]) => number;
47
- /**
48
- * @hidden
49
- */
50
- export declare const getMinCursorPosition: (nextValue: string, formatInfo: string[][]) => number;
51
- /**
52
- * @hidden
53
- */
54
- export declare const rangeSelection: (nextLooseValue: string, formatInfo: string[][], newState: NumericTextBoxState) => void;
55
- /**
56
- * @hidden
57
- */
58
- export declare const setSelection: (newState: NumericTextBoxState, newIndex: number, nextLooseValue: string, formatInfo: string[][]) => void;
59
- /**
60
- * @hidden
61
- */
62
- export declare const setInvalid: (newState: NumericTextBoxState, format: string | NumberFormatOptions | undefined, formatInfo: string[][], intlService: any) => void;
63
- /**
64
- * @hidden
65
- */
66
- export declare const isMinusSymbolAdded: (newState: NumericTextBoxState, symbols: any) => boolean;
67
- /**
68
- * @hidden
69
- */
70
- export declare const isMinusSymbolRemoved: (newState: NumericTextBoxState, symbols: any) => boolean;
71
- /**
72
- * @hidden
73
- */
74
- export declare const isDecimalDuplicated: (newState: NumericTextBoxState, symbols: any) => boolean;
75
- /**
76
- * @hidden
77
- */
78
- export declare const getFormatPrefixSufix: (format: string | NumberFormatOptions | undefined, intlService: any) => {
79
- positiveInfo: string[];
80
- negativeInfo: string[];
81
- zeroInfo: string[];
82
- oneInfo: string[];
83
- };
84
- /**
85
- * @hidden
86
- */
87
- export declare const getFormatSymbols: (format: string | NumberFormatOptions | undefined, intlService: any) => string;
88
- /**
89
- * @hidden
90
- */
91
- export declare const getInitialPosition: (nextLooseValue: string, symbols: any) => number;
92
- /**
93
- * @hidden
94
- */
95
- export declare const reverseString: (str: string) => string;
96
- /**
97
- * @hidden
98
- */
99
- export declare const getLastNumberIndex: (currentLooseValue: string, inputRegex: RegExp) => number;
100
- /**
101
- * @hidden
102
- */
103
- export declare const getPrefix: (str: string) => string;
104
- /**
105
- * @hidden
106
- */
107
- export declare const getSuffix: (str: string) => string;
108
- /**
109
- * @hidden
110
- */
111
- export declare const getFirstNumberIndex: (prevLooseValue: string, inputRegex: RegExp) => number;
112
- /**
113
- * @hidden
114
- */
115
- export declare const getDecimalCount: (value: string, decimal: string) => number;
116
- /**
117
- * @hidden
118
- */
119
- export declare const changeBasedSelection: (currentValue: string, nextValue: string, selectionPosition: number, isDelete: boolean, sanitizeRegex: any) => number;
120
- /**
121
- * @hidden
122
- */
123
- export declare const sanitizeNumber: (state: NumericTextBoxState, format: string | NumberFormatOptions | undefined, intlService: any) => NumericTextBoxState;
@@ -1,9 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { PackageMetadata } from '@progress/kendo-licensing';
6
- /**
7
- * @hidden
8
- */
9
- export declare const packageMetadata: PackageMetadata;
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { RadioButtonProps } from './interfaces/RadioButtonProps';
7
- /**
8
- * The RadioButton ref.
9
- */
10
- export interface RadioButtonHandle {
11
- element: HTMLInputElement | null;
12
- focus: any;
13
- }
14
- /**
15
- * Represents the PropsContext of the `RadioButton` component.
16
- * Used for global configuration of all `RadioButton` instances.
17
- *
18
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
19
- */
20
- export declare const RadioButtonPropsContext: React.Context<(p: RadioButtonProps) => RadioButtonProps>;
21
- /**
22
- * Represents the [KendoReact RadioButton component]({% slug overview_radiobutton %}).
23
- *
24
- * Accepts properties of type [RadioButtonProps]({% slug api_inputs_radiobuttonprops %}).
25
- * Obtaining the `ref` returns an object of type [RadioButtonHandle]({% slug api_inputs_radiobuttonhandle %}).
26
- */
27
- export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<RadioButtonHandle | null>>;
@@ -1,27 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { RadioGroupProps } from './interfaces/RadioGroupProps';
7
- /**
8
- * The RadioGroup ref.
9
- */
10
- export interface RadioGroupHandle {
11
- element: HTMLUListElement | null;
12
- focus: any;
13
- }
14
- /**
15
- * Represents the PropsContext of the `RadioGroup` component.
16
- * Used for global configuration of all `RadioGroup` instances.
17
- *
18
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
19
- */
20
- export declare const RadioGroupPropsContext: React.Context<(p: RadioGroupProps) => RadioGroupProps>;
21
- /**
22
- * Represents the [KendoReact RadioGroup component]({% slug overview_radiogroup %}).
23
- *
24
- * Accepts properties of type [RadioGroupProps]({% slug api_inputs_radiogroupprops %}).
25
- * Obtaining the `ref` returns an object of type [RadioGroupHandle]({% slug api_inputs_radiogrouphandle %}).
26
- */
27
- export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<RadioGroupHandle | null>>;
@@ -1,11 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { RadioButtonHandle } from './../RadioButton';
6
- import { BaseEvent } from '@progress/kendo-react-common';
7
- /**
8
- * The arguments for the `onBlur` RadioButton event.
9
- */
10
- export interface RadioButtonBlurEvent extends BaseEvent<RadioButtonHandle> {
11
- }