@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,108 +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 { RatingItemMouseEvent, RatingItemFocusEvent, RatingItemKeyboardEvent } from './models';
7
- /**
8
- * Represents the properties of [RatingItem](% slug api_inputs_ratingitem %) component.
9
- */
10
- export interface RatingItemProps {
11
- /**
12
- * Sets the `id` property of the top div element of the RatingItem.
13
- */
14
- id?: string;
15
- /**
16
- * Sets additional classes to the RatingItem.
17
- */
18
- className?: string;
19
- /**
20
- * Sets the `tabIndex` attribute.
21
- */
22
- tabIndex?: number;
23
- /**
24
- * Determines if icon is partly selected.
25
- */
26
- half?: boolean;
27
- /**
28
- * Sets additional CSS styles to the RatingItem.
29
- */
30
- style?: React.CSSProperties;
31
- /**
32
- * Determines the children nodes.
33
- */
34
- children?: React.ReactNode;
35
- /**
36
- * Determines the RatingItem direction `ltr` - by default, or `rtl`.
37
- */
38
- dir?: string;
39
- /**
40
- * Sets the current value of the RatingItem, used in controlled mode.
41
- */
42
- value: number;
43
- /**
44
- * Sets the title of current RatingItem component. [See example]({% slug controlled_rating %})
45
- */
46
- title?: string;
47
- /**
48
- * Sets the icon of current RatingItem component. [See example]({% slug label_rating %})
49
- */
50
- icon?: any;
51
- /**
52
- * Determines if current RatingItem is selected. [See example]({% slug item_customization_ratingitem %})
53
- */
54
- selected?: boolean;
55
- /**
56
- * Determines if current RatingItem is hovered.
57
- */
58
- hovered?: boolean;
59
- /**
60
- * Triggered after `onClick` event. Gets outside access to the target element, the new value and the event type.
61
- */
62
- onClick?: (event: RatingItemMouseEvent) => void;
63
- /**
64
- * Triggered after `onKeyDown` event. Gets outside access to the target element, the new value and the event type.
65
- */
66
- onKeyDown?: (event: RatingItemKeyboardEvent) => void;
67
- /**
68
- * Triggered after `onFocus` event. Gets outside access to the target element and the event type.
69
- */
70
- onFocus?: (event: RatingItemFocusEvent) => void;
71
- /**
72
- * Triggered after `onBlur` event. Gets outside access to the target element and the event type.
73
- */
74
- onBlur?: (event: RatingItemFocusEvent) => void;
75
- /**
76
- * Triggered after `onMouseEnter` event. Gets outside access to the target element and the event type.
77
- */
78
- onMouseEnter?: (event: RatingItemMouseEvent) => void;
79
- /**
80
- * Triggered after `onMouseLeave` event. Gets outside access to the target element and the event type.
81
- */
82
- onMouseLeave?: (event: RatingItemMouseEvent) => void;
83
- /**
84
- * Triggered after `onMouseMove` event. Gets outside access to the target element and the event type.
85
- */
86
- onMouseMove?: (event: RatingItemMouseEvent) => void;
87
- }
88
- /**
89
- * Represents the target(value, element and props) of The RatingItem.
90
- */
91
- export interface RatingItemHandle {
92
- /**
93
- * The current RatingItem value.
94
- */
95
- value: number;
96
- /**
97
- * The current element or `null` if there is no one.
98
- */
99
- element: HTMLDivElement | null;
100
- /**
101
- * The props value of the RatingItem.
102
- */
103
- props: RatingItemProps;
104
- }
105
- /**
106
- * Represents the RatingItem component.
107
- */
108
- export declare const RatingItem: React.ForwardRefExoticComponent<RatingItemProps & React.RefAttributes<RatingItemHandle | null>>;
@@ -1,88 +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 { RatingItemHandle } from './../RatingItem';
6
- import { RatingHandle } from './../Rating';
7
- /**
8
- * Represents the return type of the RatingItemMouseEvent.
9
- */
10
- export interface RatingItemMouseEvent {
11
- /**
12
- * The target of the RatingItemMouseEvent from RatingItemHandle.
13
- */
14
- target: RatingItemHandle;
15
- /**
16
- * The event of the RatingItemMouseEvent.
17
- */
18
- syntheticEvent: React.MouseEvent<any>;
19
- /**
20
- * @hidden
21
- */
22
- value?: number | null;
23
- }
24
- /**
25
- * Represents the return type of the RatingItemKeyboardEvent.
26
- */
27
- export interface RatingItemKeyboardEvent {
28
- /**
29
- * The target of the RatingItemKeyboardEvent from RatingItemHandle.
30
- */
31
- target: RatingItemHandle;
32
- /**
33
- * The event of the RatingItemKeyboardEvent.
34
- */
35
- syntheticEvent: React.KeyboardEvent<any>;
36
- }
37
- /**
38
- * Represents the return type of the RatingItemFocusEvent.
39
- */
40
- export interface RatingItemFocusEvent {
41
- /**
42
- * The target of the RatingItemFocusEvent from RatingItemHandle.
43
- */
44
- target: RatingItemHandle;
45
- /**
46
- * The event of the RatingItemFocusEvent.
47
- */
48
- syntheticEvent: React.FocusEvent<any>;
49
- }
50
- /**
51
- * Represents the return type of the RatingMouseEvent.
52
- */
53
- export interface RatingMouseEvent {
54
- /**
55
- * The target of the RatingMouseEvent from RatingHandle.
56
- */
57
- target: RatingHandle;
58
- /**
59
- * The event of the RatingMouseEvent.
60
- */
61
- syntheticEvent: React.MouseEvent<any>;
62
- }
63
- /**
64
- * Represents the return type of the RatingKeyboardEvent.
65
- */
66
- export interface RatingKeyboardEvent {
67
- /**
68
- * The target of the RatingKeyboardEvent from RatingHandle.
69
- */
70
- target: RatingHandle;
71
- /**
72
- * The event of the RatingKeyboardEvent.
73
- */
74
- syntheticEvent: React.KeyboardEvent<any>;
75
- }
76
- /**
77
- * Represents the return type od the RatingFocusEvent.
78
- */
79
- export interface RatingFocusEvent {
80
- /**
81
- * The target of the RatingFocusEvent from RatingHandle.
82
- */
83
- target: RatingHandle;
84
- /**
85
- * The event of the RatingFocusEvent.
86
- */
87
- syntheticEvent: React.FocusEvent<any>;
88
- }
@@ -1,36 +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 enum RATING_ACTION {
9
- select = "select",
10
- deselect = "deselect",
11
- increase = "increase",
12
- decrease = "decrease",
13
- min = "min",
14
- max = "max",
15
- reset = "reset"
16
- }
17
- /**
18
- * @hidden
19
- */
20
- export type RatingActionDispatch = {
21
- type: RATING_ACTION;
22
- payload?: number;
23
- event?: React.SyntheticEvent<any>;
24
- };
25
- /**
26
- * @hidden
27
- */
28
- export type RatingAction = {
29
- min: number;
30
- max: number;
31
- step?: number;
32
- };
33
- /**
34
- * @hidden
35
- */
36
- export declare const ratingReducer: (state: any, action: RatingAction & RatingActionDispatch) => any;
@@ -1,28 +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 toRound: (num: number, base: number) => number;
9
- /**
10
- * @hidden
11
- */
12
- export declare const getRemainder: (x: number, y: number) => number;
13
- /**
14
- * @hidden
15
- */
16
- export declare const isHalf: (index: number, value: number, step: number) => boolean;
17
- /**
18
- * @hidden
19
- */
20
- export declare const isSelected: (index: number, value: number | null, step: number, selection: 'single' | 'continues') => boolean;
21
- /**
22
- * @hidden
23
- */
24
- export declare const calcIsFirstHalf: (dir: string, rect: any, clientX: number) => boolean;
25
- /**
26
- * @hidden
27
- */
28
- export declare const isCorrectValue: (min: number, max: number, step: number, value: number) => boolean;
@@ -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 { SignatureHandle } from './interfaces/SignatureHandle';
7
- import { SignatureProps } from './interfaces/SignatureProps';
8
- /**
9
- * Represents the PropsContext of the `Signature` component.
10
- * Used for global configuration of all `Signature` instances.
11
- *
12
- * For more information, refer to the [Inputs Props Context]({% slug props-context_inputs %}) article.
13
- */
14
- export declare const SignaturePropsContext: React.Context<(p: SignatureProps) => SignatureProps>;
15
- /**
16
- * Represents the [KendoReact Signature component]({% slug overview_signature %}).
17
- */
18
- export declare const Signature: React.ForwardRefExoticComponent<SignatureProps & React.RefAttributes<SignatureHandle | 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 { SignatureHandle } from './SignatureHandle';
7
- /**
8
- * The arguments for the `onBlur` Signature event.
9
- */
10
- export interface SignatureBlurEvent extends BaseEvent<SignatureHandle> {
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 { SignatureHandle } from './SignatureHandle';
7
- /**
8
- * The arguments for the `change` event of the Signature.
9
- */
10
- export interface SignatureChangeEvent extends BaseEvent<SignatureHandle> {
11
- /**
12
- * The current value of the Signature.
13
- */
14
- value: string;
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 { SignatureHandle } from './SignatureHandle';
7
- /**
8
- * The arguments for the `onClose` Signature event.
9
- */
10
- export interface SignatureCloseEvent extends BaseEvent<SignatureHandle> {
11
- }
@@ -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 { SignatureHandle } from './SignatureHandle';
7
- /**
8
- * The arguments for the `onFocus` Signature event.
9
- */
10
- export interface SignatureFocusEvent extends BaseEvent<SignatureHandle> {
11
- }
@@ -1,46 +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 { SignatureProps } from './SignatureProps';
6
- /**
7
- * The Signature ref.
8
- */
9
- export interface SignatureHandle {
10
- /**
11
- * The Signature element.
12
- */
13
- element: HTMLInputElement | null;
14
- /**
15
- * Focus the Signature.
16
- */
17
- focus: () => void;
18
- /**
19
- * Gets the `name` property of the Signature.
20
- */
21
- name: string | undefined;
22
- /**
23
- * Gets the value of the Signature.
24
- */
25
- value: number | null;
26
- /**
27
- * @hidden
28
- */
29
- props: SignatureProps;
30
- /**
31
- * @hidden
32
- */
33
- validityStyles: boolean;
34
- /**
35
- * @hidden
36
- */
37
- required: boolean;
38
- /**
39
- * @hidden
40
- */
41
- color: string;
42
- /**
43
- * @hidden
44
- */
45
- backgroundColor: string;
46
- }
@@ -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 { SignatureHandle } from './SignatureHandle';
7
- /**
8
- * The arguments for the `onOpen` Signature event.
9
- */
10
- export interface SignatureOpenEvent extends BaseEvent<SignatureHandle> {
11
- }
@@ -1,198 +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 { FormComponentProps } from '@progress/kendo-react-common';
6
- import { SignatureChangeEvent } from './SignatureChangeEvent';
7
- import { SignatureFocusEvent } from './SignatureFocusEvent';
8
- import { SignatureBlurEvent } from './SignatureBlurEvent';
9
- import { SignatureOpenEvent } from './SignatureOpenEvent';
10
- import { SignatureCloseEvent } from './SignatureCloseEvent';
11
- /**
12
- * Represents the props of the [KendoReact Signature component]({% slug overview_signature %}).
13
- */
14
- export interface SignatureProps extends FormComponentProps {
15
- /**
16
- * Sets a class of the Signature DOM element.
17
- */
18
- className?: string;
19
- /**
20
- * Specifies the value of the Signature.
21
- *
22
- * The value is an image encoded as a [Data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs).
23
- */
24
- value?: string;
25
- /**
26
- * Specifies the width of the Signature in pixels.
27
- */
28
- width?: number;
29
- /**
30
- * Specifies the height of the Signature in pixels.
31
- */
32
- height?: number;
33
- /**
34
- * Sets the `tabIndex` property of the Signature.
35
- */
36
- tabIndex?: number;
37
- /**
38
- * Sets the `id` of the Signature DOM element.
39
- */
40
- id?: string;
41
- /**
42
- * Represents the `dir` HTML attribute.
43
- */
44
- dir?: string;
45
- /**
46
- * Specifies the name of the Signature input.
47
- */
48
- name?: string;
49
- /**
50
- * 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).
51
- * For example these elements could contain error or hint message.
52
- */
53
- ariaDescribedBy?: string;
54
- /**
55
- * Identifies the element(s) which will label the component.
56
- */
57
- ariaLabelledBy?: string;
58
- /**
59
- * The accessible label of the component.
60
- */
61
- ariaLabel?: string;
62
- /**
63
- * Determines whether the Signature is in its read-only state.
64
- */
65
- readOnly?: boolean;
66
- /**
67
- * Determines whether the Signature is in its disabled state.
68
- */
69
- disabled?: boolean;
70
- /**
71
- * Configures the `size` of the Signature.
72
- *
73
- * The available options are:
74
- * - small
75
- * - medium
76
- * - large
77
- * - null&mdash;Does not set a size `className`.
78
- *
79
- * @default `medium`
80
- */
81
- size?: null | 'small' | 'medium' | 'large';
82
- /**
83
- * Configures the `roundness` of the Signature.
84
- *
85
- * The available options are:
86
- * - small
87
- * - medium
88
- * - large
89
- * - null&mdash;Does not set a rounded `className`.
90
- *
91
- * @default `medium`
92
- */
93
- rounded?: null | 'small' | 'medium' | 'large';
94
- /**
95
- * Configures the `fillMode` of the Signature.
96
- *
97
- * The available options are:
98
- * - solid
99
- * - outline
100
- * - flat
101
- * - null&mdash;Does not set a fillMode `className`.
102
- *
103
- * @default `solid`
104
- */
105
- fillMode?: null | 'solid' | 'flat' | 'outline';
106
- /**
107
- * The stroke color of the signature.
108
- *
109
- * Accepts CSS color names and hex values.
110
- *
111
- * The default value is determined by the theme `$kendo-input-text` variable.
112
- */
113
- color?: string;
114
- /**
115
- * The background color of the signature.
116
- *
117
- * Accepts CSS color names and hex values.
118
- *
119
- * The default value is determined by the theme `$kendo-input-bg` variable.
120
- */
121
- backgroundColor?: string;
122
- /**
123
- * The stroke width of the signature.
124
- *
125
- * @default 1
126
- */
127
- strokeWidth?: number;
128
- /**
129
- * A flag indicating whether to smooth out signature lines.
130
- *
131
- * @default false
132
- */
133
- smooth?: boolean;
134
- /**
135
- * A flag indicating if the signature can be maximized.
136
- *
137
- * @default true
138
- */
139
- maximizable?: boolean;
140
- /**
141
- * Sets the open and close state of the Signature.
142
- */
143
- open?: boolean;
144
- /**
145
- * The scale factor for the popup.
146
- *
147
- * The Signature width and height will be multiplied by the scale when showing the popup.
148
- *
149
- * @default 3
150
- */
151
- popupScale?: number;
152
- /**
153
- * The scale factor for the exported image.
154
- *
155
- * The Signature width and height will be multiplied by the scale when converting the signature to an image.
156
- *
157
- * @default 2
158
- */
159
- exportScale?: number;
160
- /**
161
- * A flag indicating whether the dotted line should be displayed in the background.
162
- *
163
- * @default false
164
- */
165
- hideLine?: boolean;
166
- /**
167
- * Represents the `style` HTML attribute.
168
- */
169
- style?: React.CSSProperties;
170
- /**
171
- * Represents the input element `style` HTML attribute.
172
- */
173
- inputStyle?: React.CSSProperties;
174
- /**
175
- * Determines the event handler that will be fired when the user edits the value.
176
- */
177
- onChange?: (event: SignatureChangeEvent) => void;
178
- /**
179
- * The event handler that will be fired when Signature is focused.
180
- */
181
- onFocus?: (event: SignatureFocusEvent) => void;
182
- /**
183
- * The event handler that will be fired when Signature is blurred.
184
- */
185
- onBlur?: (event: SignatureBlurEvent) => void;
186
- /**
187
- * The event handler that will be fired when Signature popup is open.
188
- */
189
- onOpen?: (event: SignatureOpenEvent) => void;
190
- /**
191
- * The event handler that will be fired when Signature popup is closed.
192
- */
193
- onClose?: (event: SignatureCloseEvent) => void;
194
- /** @hidden */
195
- children?: React.ReactNode;
196
- /** @hidden */
197
- maximized?: boolean;
198
- }
@@ -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
- export { type SignatureBlurEvent } from './SignatureBlurEvent';
6
- export { type SignatureChangeEvent } from './SignatureChangeEvent';
7
- export { type SignatureCloseEvent } from './SignatureCloseEvent';
8
- export { type SignatureFocusEvent } from './SignatureFocusEvent';
9
- export { type SignatureHandle } from './SignatureHandle';
10
- export { type SignatureOpenEvent } from './SignatureOpenEvent';
11
- export { type SignatureProps } from './SignatureProps';
@@ -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 declare function hasParent(element: any, parent: any): boolean;