@progress/kendo-react-inputs 7.2.4-develop.2 → 7.2.4-develop.4

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,13 +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 HSVA {
9
- h?: number;
10
- s?: number;
11
- v?: number;
12
- a?: number;
13
- }
@@ -1,8 +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 type OutputFormat = 'hex' | 'rgba';
@@ -1,57 +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 PALETTEPRESETS: {
9
- basic: {
10
- colors: string[];
11
- columns: number;
12
- };
13
- office: {
14
- colors: string[];
15
- columns: number;
16
- };
17
- apex: {
18
- colors: string[];
19
- columns: number;
20
- };
21
- austin: {
22
- colors: string[];
23
- columns: number;
24
- };
25
- clarity: {
26
- colors: string[];
27
- columns: number;
28
- };
29
- slipstream: {
30
- colors: string[];
31
- columns: number;
32
- };
33
- metro: {
34
- colors: string[];
35
- columns: number;
36
- };
37
- flow: {
38
- colors: string[];
39
- columns: number;
40
- };
41
- hardcover: {
42
- colors: string[];
43
- columns: number;
44
- };
45
- trek: {
46
- colors: string[];
47
- columns: number;
48
- };
49
- verve: {
50
- colors: string[];
51
- columns: number;
52
- };
53
- monochrome: {
54
- colors: string[];
55
- columns: number;
56
- };
57
- };
@@ -1,12 +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 RGB {
9
- r?: number;
10
- g?: number;
11
- b?: number;
12
- }
@@ -1,13 +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 RGBA {
9
- r?: number;
10
- g?: number;
11
- b?: number;
12
- a?: number;
13
- }
@@ -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
- /**
6
- * @hidden
7
- */
8
- export interface TableCell {
9
- row: number;
10
- col: number;
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
- /**
6
- * Specifies the size of a color cell.
7
- *
8
- * The possible values are:
9
- * * (Default) `number = 24`
10
- * * `{ width: number, height: number }`
11
- */
12
- export type TileSize = {
13
- width: number;
14
- height: number;
15
- };
@@ -1,34 +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 { HSVA } from '../models/hsva';
6
- import { RGBA } from '../models/rgba';
7
- /**
8
- * @hidden
9
- */
10
- export declare function cacheHsva(componentGuid: string, value: string, hsva: HSVA): void;
11
- /**
12
- * @hidden
13
- */
14
- export declare function cacheRgba(componentGuid: string, value: string, rgba: RGBA): void;
15
- /**
16
- * @hidden
17
- */
18
- export declare function cacheHex(componentGuid: string, value: string, hex: string): void;
19
- /**
20
- * @hidden
21
- */
22
- export declare function removeCachedColor(componentGuid: string): void;
23
- /**
24
- * @hidden
25
- */
26
- export declare function getCachedHex(componentGuid: string | undefined, value: string): any;
27
- /**
28
- * @hidden
29
- */
30
- export declare function getCachedHsva(componentGuid: string | undefined, value: string): any;
31
- /**
32
- * @hidden
33
- */
34
- export declare function getCachedRgba(componentGuid: string | undefined, value: string): any;
@@ -1,16 +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 { TableCell } from '../models/table-cell';
6
- /**
7
- * @hidden
8
- */
9
- export declare class ColorPaletteService {
10
- colorRows: string[][];
11
- setColorMatrix(palette: string[], columns: number): void;
12
- getCellCoordsFor(color?: string): TableCell | undefined;
13
- getColorAt(cellCoords: TableCell): string | undefined;
14
- getNextCell(current: TableCell, horizontalStep: number, verticalStep: number): TableCell;
15
- private clampIndex;
16
- }
@@ -1,69 +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 { HSVA } from '../models/hsva';
6
- import { OutputFormat } from '../models/output-format';
7
- import { RGB } from '../models/rgb';
8
- import { RGBA } from '../models/rgba';
9
- /**
10
- * @hidden
11
- *
12
- * Returns the hex or RGBA string representation of the color.
13
- */
14
- export declare const parseColor: (value: string, format: OutputFormat, safe?: boolean) => string | undefined;
15
- /**
16
- * @hidden
17
- *
18
- * Returns an HSV object representation of the color string.
19
- */
20
- export declare const getHSV: (value: string, safe?: boolean) => HSVA;
21
- /**
22
- * @hidden
23
- *
24
- * Returns an RGBA object representation of the color string.
25
- */
26
- export declare const getRGBA: (value: string, safe?: boolean) => RGBA;
27
- /**
28
- * @hidden
29
- *
30
- * Returns the RGBA string representation of the color.
31
- */
32
- export declare const getColorFromHSV: (hsva: HSVA) => string;
33
- /**
34
- * @hidden
35
- *
36
- * Returns the RGBA string representation of the color based on the `hue` and
37
- * assuming the `value`, `saturation`, and `alpha` have a value of `1`.
38
- */
39
- export declare const getColorFromHue: (hue: number) => string;
40
- /**
41
- * @hidden
42
- *
43
- * Returns the RGBA string representation of the color.
44
- */
45
- export declare const getColorFromRGBA: (rgba: RGBA) => string;
46
- /**
47
- * @hidden
48
- *
49
- * Returns the RGB object representation of the color based on the background color.
50
- */
51
- export declare const getRGBFromRGBA: (foregroundColor: RGBA, backgroundColor: RGBA) => RGB;
52
- /**
53
- * @hidden
54
- *
55
- * Returns the relative luminance.
56
- */
57
- export declare const getLuminance: (rgb: RGB) => number;
58
- /**
59
- * @hidden
60
- *
61
- * Returns the color contrast.
62
- */
63
- export declare const getContrast: (luminance1: number, luminance2: number) => number;
64
- /**
65
- * @hidden
66
- *
67
- * Returns the color contrast from two RGBA colors.
68
- */
69
- export declare const getContrastFromTwoRGBAs: (a: RGBA, b: RGBA) => number;
@@ -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 declare const isPresent: (value: any) => boolean;
9
- /**
10
- * @hidden
11
- *
12
- * Fits the contender number into the specified bounds.
13
- * If the number is NaN or null, the minimum is returned.
14
- *
15
- * @param contender Represents the number you want to fit into the specified bounds.
16
- * @param min The inclusive lower bound number.
17
- * @param max The inclusive upper bound number.
18
- */
19
- export declare const fitIntoBounds: (contender: number | undefined, min: number, max: number) => number;
@@ -1,66 +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
- * Render the svg <path> element.
9
- *
10
- * @param points (array) Represents the points coordinates as an array of tuples.
11
- * @param command (function) The command that is used (bezierCommand, lineCommand).
12
- * @param point (array) [x,y] Represents the current point coordinates.
13
- * @param i (integer) Represents the index of 'point' in the array 'a'.
14
- * @param a (array) Represents the complete array of points coordinates.
15
- * @output (string) a svg path command.
16
- * @output (string) a Svg <path> element
17
- */
18
- export declare const svgPath: (points: number[][], command: Function) => string;
19
- /**
20
- * @hidden
21
- *
22
- * Returns the properties of a line.
23
- *
24
- * @param pointA (array) [x,y] Represents the start point coordinates.
25
- * @param pointB (array) [x,y] Represents the end point coordinates.
26
- * @output (object) { length: (integer), angle: (integer) }
27
- */
28
- export declare const line: (pointA: number[], pointB: number[]) => {
29
- length: number;
30
- angle: number;
31
- };
32
- /**
33
- * @hidden
34
- *
35
- * Create a function to calculate the position of the control point.
36
- *
37
- * @param lineCalc (function) Represents the line function.
38
- * @param pointA (array) [x,y] Represents the start point coordinates.
39
- * @param pointB (array) [x,y] Represents the end point coordinates.
40
- * @output (object) { length: (integer), angle: (integer) }
41
- * @output (function) closure.
42
- * @param current (array) [x, y] Represents the current point coordinates.
43
- * @param previous (array) [x, y] Represents the previous point coordinates.
44
- * @param next (array) [x, y] ]Represents the next point coordinates.
45
- * @param reverse (boolean, optional) Sets the direction.
46
- * @output (array) [x, y] coordinates of a control point.
47
- */
48
- export declare const controlPoint: (lineCalc: Function) => (current: number[], previous: number[], next: number[], reverse?: boolean) => number[];
49
- /**
50
- * @hidden
51
- *
52
- * Create a function to calculate a bezier curve command.
53
- *
54
- * @param controlPointCalc (function) Represents the controlPoint function.
55
- * @param current (array) [x, y] Represents the current point coordinates.
56
- * @param previous (array) [x, y] Represents the previous point coordinates.
57
- * @param next (array) [x, y] ]Represents the next point coordinates.
58
- * @param reverse (boolean, optional) Sets the direction.
59
- * @output (array) [x, y] coordinates of a control point.
60
- * @output (function) closure.
61
- * @param point (array) [x,y] Represents the current point coordinates.
62
- * @param i (integer) Represents the index of 'point' in the array 'a'.
63
- * @param a (array) Represents the complete array of points coordinates.
64
- * @output (string) 'C x2,y2 x1,y1 x,y' Cubic bezier command.
65
- */
66
- export declare const bezierCommand: (controlPointCalc: Function) => (point: number[], i: number, a: number[]) => string;
package/input/Input.d.ts DELETED
@@ -1,171 +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 PropTypes from 'prop-types';
7
- import { FormComponent, FormComponentProps, FormComponentValidity } from '@progress/kendo-react-common';
8
- import { InputChangeEvent } from './interfaces/InputChangeEvent';
9
- /**
10
- * @hidden
11
- */
12
- type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
13
- /**
14
- * Represents the props of the [KendoReact Input component]({% slug overview_textbox %}).
15
- * Extends the [native input props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
16
- */
17
- export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>, FormComponentProps {
18
- /**
19
- * Renders a floating label for the Input component.
20
- */
21
- label?: string;
22
- /**
23
- * Sets a `className` for the floating label.
24
- */
25
- labelClassName?: string;
26
- /**
27
- * Represents the Input value.
28
- */
29
- value?: string | string[] | number;
30
- /**
31
- * Represents the Input default value.
32
- */
33
- defaultValue?: string | string[];
34
- /**
35
- * 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).
36
- * For example these elements could contain error or hint message.
37
- */
38
- ariaDescribedBy?: string;
39
- /**
40
- * Identifies the element(s) which will label the component.
41
- */
42
- ariaLabelledBy?: string;
43
- /**
44
- * Defines a string value that labels an interactive element.
45
- */
46
- ariaLabel?: string;
47
- /**
48
- * Triggered after value change.
49
- */
50
- onChange?: (event: InputChangeEvent) => void;
51
- }
52
- /**
53
- * @hidden
54
- */
55
- export interface InputState {
56
- value?: string | string[] | number;
57
- }
58
- /** @hidden */
59
- export declare class InputWithoutContext extends React.Component<InputProps, InputState> implements FormComponent {
60
- static displayName: string;
61
- /**
62
- * @hidden
63
- */
64
- static propTypes: {
65
- label: PropTypes.Requireable<string>;
66
- labelClassName: PropTypes.Requireable<string>;
67
- validationMessage: PropTypes.Requireable<string>;
68
- required: PropTypes.Requireable<boolean>;
69
- validate: PropTypes.Requireable<boolean>;
70
- id: PropTypes.Requireable<string>;
71
- ariaLabelledBy: PropTypes.Requireable<string>;
72
- ariaDescribedBy: PropTypes.Requireable<string>;
73
- ariaLabel: PropTypes.Requireable<string>;
74
- };
75
- /**
76
- * @hidden
77
- */
78
- static defaultProps: {
79
- defaultValue: string;
80
- required: boolean;
81
- validityStyles: boolean;
82
- };
83
- private _input;
84
- private get _inputId();
85
- private valueDuringOnChange?;
86
- constructor(props: InputProps);
87
- /**
88
- * @hidden
89
- */
90
- focus: () => void;
91
- /**
92
- * Gets the native input element of the Input component.
93
- */
94
- get element(): HTMLInputElement | null;
95
- /**
96
- * Gets the value of the Input.
97
- */
98
- get value(): string | string[] | number | undefined;
99
- /**
100
- * Gets the `name` property of the Input.
101
- */
102
- get name(): string | undefined;
103
- /**
104
- * Represents the validity state into which the Input is set.
105
- */
106
- get validity(): FormComponentValidity;
107
- /**
108
- * @hidden
109
- */
110
- protected get validityStyles(): boolean;
111
- /**
112
- * @hidden
113
- */
114
- componentDidMount(): void;
115
- /**
116
- * @hidden
117
- */
118
- componentDidUpdate(): void;
119
- /**
120
- * @hidden
121
- */
122
- render(): import("react/jsx-runtime").JSX.Element;
123
- protected isInvalid: (state: Object) => boolean;
124
- /**
125
- * @hidden
126
- */
127
- protected setValidity: () => void;
128
- private handleChange;
129
- /**
130
- * @hidden
131
- */
132
- private handleAutoFill;
133
- }
134
- /**
135
- * Represents the PropsContext of the `Input` component.
136
- * Used for global configuration of all `Input` instances.
137
- *
138
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
139
- */
140
- export declare const InputPropsContext: React.Context<(p: InputProps) => InputProps>;
141
- /**
142
- * Represent the `ref` of the Input component.
143
- */
144
- export interface InputHandle extends Pick<InputWithoutContext, keyof InputWithoutContext> {
145
- /**
146
- * Gets the native input element of the Input component.
147
- */
148
- element: HTMLInputElement | null;
149
- /**
150
- * Gets the `name` property of the Input.
151
- */
152
- name: string | undefined;
153
- /**
154
- * Represents the validity state into which the Input is set.
155
- */
156
- validity: FormComponentValidity;
157
- /**
158
- * Gets the value of the Input.
159
- */
160
- value: string | string[] | number | undefined;
161
- }
162
- /** @hidden */
163
- export type Input = InputHandle;
164
- /**
165
- * Represents the [KendoReact Input component]({% slug overview_textbox %}).
166
- *
167
- * Accepts properties of type [InputProps]({% slug api_inputs_inputprops %}).
168
- * Obtaining the `ref` returns an object of type [InputHandle]({% slug api_inputs_inputhandle %}).
169
- */
170
- export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<any>>;
171
- 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
- import * as React from 'react';
6
- /**
7
- * Represent the `ref` of the `InputClearValue` component.
8
- */
9
- export type InputClearValueHandle = {
10
- element: HTMLSpanElement | null;
11
- };
12
- /**
13
- * Represents the `props` of the `InputClearValue` component.
14
- */
15
- export type InputClearValueProps = React.HTMLAttributes<HTMLSpanElement>;
16
- /**
17
- * Represents the KendoReact InputClearValue component.
18
- */
19
- export declare const InputClearValue: React.ForwardRefExoticComponent<InputClearValueProps & React.RefAttributes<InputClearValueHandle>>;
@@ -1,29 +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
- /**
7
- * Represent the `ref` of the `InputPrefix` component.
8
- */
9
- export type InputPrefixHandle = {
10
- element: HTMLSpanElement | null;
11
- };
12
- /**
13
- * Represents the `props` of the `InputPrefix` component.
14
- */
15
- export type InputPrefixProps = React.HTMLAttributes<HTMLSpanElement> & {
16
- /**
17
- * Sets the `orientation` property of the `InputPrefix` component.
18
- */
19
- orientation?: 'horizontal' | 'vertical';
20
- };
21
- /**
22
- * Represents the KendoReact InputPrefix component.
23
- */
24
- export declare const InputPrefix: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
25
- /**
26
- * Sets the `orientation` property of the `InputPrefix` component.
27
- */
28
- orientation?: "vertical" | "horizontal" | undefined;
29
- } & React.RefAttributes<InputPrefixHandle>>;
@@ -1,29 +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
- /**
7
- * Represent the `ref` of the `InputSeparator` component.
8
- */
9
- export type InputSeparatorHandle = {
10
- element: HTMLSpanElement | null;
11
- };
12
- /**
13
- * Represents the `props` of the `InputSeparator` component.
14
- */
15
- export type InputSeparatorProps = React.HTMLAttributes<HTMLSpanElement> & {
16
- /**
17
- * Sets the `orientation` property of the `InputSeparator` component.
18
- */
19
- orientation?: 'horizontal' | 'vertical';
20
- };
21
- /**
22
- * Represents the KendoReact InputSeparator component.
23
- */
24
- export declare const InputSeparator: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
25
- /**
26
- * Sets the `orientation` property of the `InputSeparator` component.
27
- */
28
- orientation?: "vertical" | "horizontal" | undefined;
29
- } & React.RefAttributes<InputSeparatorHandle>>;
@@ -1,29 +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
- /**
7
- * Represent the `ref` of the `InputSuffix` component.
8
- */
9
- export type InputSuffixHandle = {
10
- element: HTMLSpanElement | null;
11
- };
12
- /**
13
- * Represents the `props` of the `InputSuffix` component.
14
- */
15
- export type InputSuffixProps = React.HTMLAttributes<HTMLSpanElement> & {
16
- /**
17
- * Sets the `orientation` property of the `InputSuffix` component.
18
- */
19
- orientation?: 'horizontal' | 'vertical';
20
- };
21
- /**
22
- * Represents the KendoReact InputSuffix component.
23
- */
24
- export declare const InputSuffix: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
25
- /**
26
- * Sets the `orientation` property of the `InputSuffix` component.
27
- */
28
- orientation?: "vertical" | "horizontal" | undefined;
29
- } & React.RefAttributes<InputSuffixHandle>>;
@@ -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 { IconHandle, SvgIconHandle, IconProps, SvgIconProps } from '@progress/kendo-react-common';
6
- import * as React from 'react';
7
- /**
8
- * Represent the `ref` of the `InputValidationIcon` component.
9
- */
10
- export type InputValidationIconHandle = IconHandle & SvgIconHandle;
11
- /**
12
- * Represents the `props` of the `InputValidationIcon` component.
13
- */
14
- export type InputValidationIconProps = IconProps & SvgIconProps;
15
- /**
16
- * Represents the KendoReact InputValidationIcon component.
17
- */
18
- export declare const InputValidationIcon: React.ForwardRefExoticComponent<IconProps & SvgIconProps & React.RefAttributes<InputValidationIconHandle>>;
@@ -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 { Input } from '../..';
7
- /**
8
- * The arguments for the `change` event of the Input.
9
- */
10
- export interface InputChangeEvent extends BaseEvent<Input> {
11
- /**
12
- * The current value of the Input.
13
- */
14
- value: string;
15
- }
@@ -1,5 +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
- export type Direction = 'ltr' | 'rtl';