@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.
- package/checkbox/Checkbox.js +8 -0
- package/checkbox/Checkbox.mjs +214 -0
- package/colors/ColorContrastLabels.js +8 -0
- package/colors/ColorContrastLabels.mjs +24 -0
- package/colors/ColorContrastSvg.js +8 -0
- package/colors/ColorContrastSvg.mjs +52 -0
- package/colors/ColorGradient.js +8 -0
- package/colors/ColorGradient.mjs +293 -0
- package/colors/ColorInput.js +8 -0
- package/colors/ColorInput.mjs +122 -0
- package/colors/ColorPalette.js +8 -0
- package/colors/ColorPalette.mjs +191 -0
- package/colors/ColorPicker.js +8 -0
- package/colors/ColorPicker.mjs +253 -0
- package/colors/FlatColorPicker.js +8 -0
- package/colors/FlatColorPicker.mjs +216 -0
- package/colors/HexInput.js +8 -0
- package/colors/HexInput.mjs +39 -0
- package/colors/Picker.js +8 -0
- package/colors/Picker.mjs +42 -0
- package/colors/models/palette-presets.js +8 -0
- package/colors/models/palette-presets.mjs +61 -0
- package/colors/utils/color-cache.js +8 -0
- package/colors/utils/color-cache.mjs +51 -0
- package/colors/utils/color-palette.service.js +8 -0
- package/colors/utils/color-palette.service.mjs +50 -0
- package/colors/utils/color-parser.js +8 -0
- package/colors/utils/color-parser.mjs +61 -0
- package/colors/utils/misc.js +8 -0
- package/colors/utils/misc.mjs +13 -0
- package/colors/utils/svg-calc.js +8 -0
- package/colors/utils/svg-calc.mjs +36 -0
- package/dist/cdn/js/kendo-react-inputs.js +8 -21
- package/index.d.mts +4275 -5
- package/index.d.ts +4275 -75
- package/index.js +8 -21
- package/index.mjs +97 -5042
- package/input/Input.js +8 -0
- package/input/Input.mjs +185 -0
- package/input/InputClearValue.js +8 -0
- package/input/InputClearValue.mjs +24 -0
- package/input/InputPrefix.js +8 -0
- package/input/InputPrefix.mjs +24 -0
- package/input/InputSeparator.js +8 -0
- package/input/InputSeparator.mjs +24 -0
- package/input/InputSuffix.js +8 -0
- package/input/InputSuffix.mjs +24 -0
- package/input/InputValidationIcon.js +8 -0
- package/input/InputValidationIcon.mjs +15 -0
- package/maskedtextbox/MaskedTextBox.js +8 -0
- package/maskedtextbox/MaskedTextBox.mjs +322 -0
- package/maskedtextbox/masking.service.js +8 -0
- package/maskedtextbox/masking.service.mjs +121 -0
- package/maskedtextbox/parsing/combinators.js +8 -0
- package/maskedtextbox/parsing/combinators.mjs +20 -0
- package/maskedtextbox/parsing/parsers.js +8 -0
- package/maskedtextbox/parsing/parsers.mjs +80 -0
- package/maskedtextbox/parsing/result.js +8 -0
- package/maskedtextbox/parsing/result.mjs +35 -0
- package/maskedtextbox/parsing/stream.js +8 -0
- package/maskedtextbox/parsing/stream.mjs +41 -0
- package/maskedtextbox/utils.js +8 -0
- package/maskedtextbox/utils.mjs +43 -0
- package/messages/index.js +8 -0
- package/messages/index.mjs +77 -0
- package/numerictextbox/NumericTextBox.js +8 -0
- package/numerictextbox/NumericTextBox.mjs +415 -0
- package/numerictextbox/utils/index.js +8 -0
- package/numerictextbox/utils/index.mjs +218 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +8 -8
- package/radiobutton/RadioButton.js +8 -0
- package/radiobutton/RadioButton.mjs +138 -0
- package/radiobutton/RadioGroup.js +8 -0
- package/radiobutton/RadioGroup.mjs +135 -0
- package/range-slider/RangeSlider.js +20 -0
- package/range-slider/RangeSlider.mjs +337 -0
- package/range-slider/range-raducer.js +8 -0
- package/range-slider/range-raducer.mjs +90 -0
- package/rating/Rating.js +12 -0
- package/rating/Rating.mjs +323 -0
- package/rating/RatingItem.js +8 -0
- package/rating/RatingItem.mjs +144 -0
- package/rating/rating-reducer.js +8 -0
- package/rating/rating-reducer.mjs +34 -0
- package/rating/utils/index.js +8 -0
- package/rating/utils/index.mjs +28 -0
- package/signature/Signature.js +8 -0
- package/signature/Signature.mjs +335 -0
- package/signature/utils/index.js +8 -0
- package/signature/utils/index.mjs +17 -0
- package/slider/Slider.js +8 -0
- package/slider/Slider.mjs +223 -0
- package/slider/SliderLabel.js +8 -0
- package/slider/SliderLabel.mjs +39 -0
- package/switch/Switch.js +8 -0
- package/switch/Switch.mjs +228 -0
- package/textarea/TextArea.js +8 -0
- package/textarea/TextArea.mjs +196 -0
- package/textbox/Textbox.js +8 -0
- package/textbox/Textbox.mjs +125 -0
- package/checkbox/Checkbox.d.ts +0 -36
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +0 -11
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +0 -15
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +0 -11
- package/checkbox/interfaces/CheckboxProps.d.ts +0 -126
- package/colors/ColorContrastLabels.d.ts +0 -19
- package/colors/ColorContrastSvg.d.ts +0 -22
- package/colors/ColorGradient.d.ts +0 -191
- package/colors/ColorInput.d.ts +0 -34
- package/colors/ColorPalette.d.ts +0 -127
- package/colors/ColorPicker.d.ts +0 -34
- package/colors/FlatColorPicker.d.ts +0 -139
- package/colors/HexInput.d.ts +0 -33
- package/colors/Picker.d.ts +0 -10
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +0 -15
- package/colors/interfaces/ColorGradientProps.d.ts +0 -101
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -19
- package/colors/interfaces/ColorPaletteProps.d.ts +0 -87
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -21
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -17
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +0 -21
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -17
- package/colors/interfaces/ColorPickerGradientSettings.d.ts +0 -22
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -36
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -18
- package/colors/interfaces/ColorPickerProps.d.ts +0 -165
- package/colors/interfaces/ColorPickerView.d.ts +0 -14
- package/colors/interfaces/PickerPopupSettings.d.ts +0 -22
- package/colors/interfaces/PickerProps.d.ts +0 -46
- package/colors/models/hsva.d.ts +0 -13
- package/colors/models/output-format.d.ts +0 -8
- package/colors/models/palette-presets.d.ts +0 -57
- package/colors/models/rgb.d.ts +0 -12
- package/colors/models/rgba.d.ts +0 -13
- package/colors/models/table-cell.d.ts +0 -11
- package/colors/models/tile-size.d.ts +0 -15
- package/colors/utils/color-cache.d.ts +0 -34
- package/colors/utils/color-palette.service.d.ts +0 -16
- package/colors/utils/color-parser.d.ts +0 -69
- package/colors/utils/misc.d.ts +0 -19
- package/colors/utils/svg-calc.d.ts +0 -66
- package/input/Input.d.ts +0 -171
- package/input/InputClearValue.d.ts +0 -19
- package/input/InputPrefix.d.ts +0 -29
- package/input/InputSeparator.d.ts +0 -29
- package/input/InputSuffix.d.ts +0 -29
- package/input/InputValidationIcon.d.ts +0 -18
- package/input/interfaces/InputChangeEvent.d.ts +0 -15
- package/interfaces/Direction.d.ts +0 -5
- package/interfaces/ToggleBaseProps.d.ts +0 -12
- package/maskedtextbox/MaskedTextBox.d.ts +0 -238
- package/maskedtextbox/MaskedTextBoxProps.d.ts +0 -200
- package/maskedtextbox/masking.service.d.ts +0 -45
- package/maskedtextbox/parsing/combinators.d.ts +0 -13
- package/maskedtextbox/parsing/parsers.d.ts +0 -51
- package/maskedtextbox/parsing/result.d.ts +0 -27
- package/maskedtextbox/parsing/stream.d.ts +0 -26
- package/maskedtextbox/utils.d.ts +0 -20
- package/messages/index.d.ts +0 -169
- package/numerictextbox/NumericTextBox.d.ts +0 -18
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +0 -11
- package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +0 -15
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +0 -11
- package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +0 -43
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +0 -188
- package/numerictextbox/interfaces/NumericTextBoxState.d.ts +0 -19
- package/numerictextbox/utils/index.d.ts +0 -123
- package/package-metadata.d.ts +0 -9
- package/radiobutton/RadioButton.d.ts +0 -27
- package/radiobutton/RadioGroup.d.ts +0 -27
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +0 -11
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +0 -15
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +0 -11
- package/radiobutton/interfaces/RadioButtonProps.d.ts +0 -101
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +0 -15
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +0 -11
- package/radiobutton/interfaces/RadioGroupProps.d.ts +0 -90
- package/range-slider/RangeSlider.d.ts +0 -142
- package/range-slider/range-raducer.d.ts +0 -40
- package/rating/Rating.d.ts +0 -170
- package/rating/RatingItem.d.ts +0 -108
- package/rating/models/index.d.ts +0 -88
- package/rating/rating-reducer.d.ts +0 -36
- package/rating/utils/index.d.ts +0 -28
- package/signature/Signature.d.ts +0 -18
- package/signature/interfaces/SignatureBlurEvent.d.ts +0 -11
- package/signature/interfaces/SignatureChangeEvent.d.ts +0 -15
- package/signature/interfaces/SignatureCloseEvent.d.ts +0 -11
- package/signature/interfaces/SignatureFocusEvent.d.ts +0 -11
- package/signature/interfaces/SignatureHandle.d.ts +0 -46
- package/signature/interfaces/SignatureOpenEvent.d.ts +0 -11
- package/signature/interfaces/SignatureProps.d.ts +0 -198
- package/signature/interfaces/index.d.ts +0 -11
- package/signature/utils/index.d.ts +0 -8
- package/slider/Slider.d.ts +0 -197
- package/slider/SliderLabel.d.ts +0 -38
- package/switch/Switch.d.ts +0 -294
- package/textarea/TextArea.d.ts +0 -40
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +0 -11
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +0 -15
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +0 -11
- package/textarea/interfaces/TextAreaProps.d.ts +0 -140
- package/textbox/Textbox.d.ts +0 -80
package/rating/RatingItem.d.ts
DELETED
|
@@ -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>>;
|
package/rating/models/index.d.ts
DELETED
|
@@ -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;
|
package/rating/utils/index.d.ts
DELETED
|
@@ -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;
|
package/signature/Signature.d.ts
DELETED
|
@@ -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—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—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—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;
|