@progress/kendo-vue-inputs 8.0.3-develop.2 → 8.0.3-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.
- package/checkbox/Checkbox.d.ts +193 -0
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxProps.d.ts +120 -0
- package/colors/ColorContrastLabels.d.ts +27 -0
- package/colors/ColorContrastSvg.d.ts +30 -0
- package/colors/ColorGradient.d.ts +128 -0
- package/colors/ColorInput.d.ts +67 -0
- package/colors/ColorPalette.d.ts +112 -0
- package/colors/ColorPicker.d.ts +279 -0
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +7 -6
- package/colors/FlatColorPicker.d.ts +286 -0
- package/colors/FlatColorPicker.mjs +3 -3
- package/colors/HexInput.d.ts +55 -0
- package/colors/Picker.d.ts +35 -0
- package/colors/common/ColorsAdaptiveMode.d.ts +47 -0
- package/colors/interfaces/ColorGradientBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorGradientFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientProps.d.ts +95 -0
- package/colors/interfaces/ColorPaletteBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPaletteFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteProps.d.ts +93 -0
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +24 -0
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/ColorPickerProps.d.ts +190 -0
- package/colors/interfaces/ColorPickerView.d.ts +17 -0
- package/colors/interfaces/FlatColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusoutEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +20 -0
- package/colors/interfaces/HexInputBlurEvent.d.ts +17 -0
- package/colors/interfaces/HexInputFocusEvent.d.ts +17 -0
- package/colors/interfaces/PickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/PickerProps.d.ts +53 -0
- package/colors/models/hsva.d.ts +16 -0
- package/colors/models/output-format.d.ts +11 -0
- package/colors/models/palette-presets.d.ts +60 -0
- package/colors/models/rgb.d.ts +15 -0
- package/colors/models/rgba.d.ts +16 -0
- package/colors/models/table-cell.d.ts +14 -0
- package/colors/models/tile-size.d.ts +18 -0
- package/colors/utils/color-cache.d.ts +50 -0
- package/colors/utils/color-palette.service.d.ts +20 -0
- package/colors/utils/color-parser.d.ts +78 -0
- package/colors/utils/misc.d.ts +22 -0
- package/colors/utils/svg-calc.d.ts +69 -0
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/index.d.mts +74 -5820
- package/index.d.ts +74 -5820
- package/input/Input.d.ts +378 -0
- package/input/InputBlurEvent.d.ts +16 -0
- package/input/InputFocusEvent.d.ts +16 -0
- package/input-separator/InputSeparator.d.ts +42 -0
- package/input-separator/interfaces/InputSeparatorOrientation.d.ts +15 -0
- package/interfaces/Direction.d.ts +8 -0
- package/interfaces/ToggleBaseProps.d.ts +15 -0
- package/maskedtextbox/MaskedTextBox.d.ts +269 -0
- package/maskedtextbox/MaskedTextBoxBlurEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxFocusEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxProps.d.ts +230 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/parsing/combinators.d.ts +16 -0
- package/maskedtextbox/parsing/parsers.d.ts +54 -0
- package/maskedtextbox/parsing/result.d.ts +30 -0
- package/maskedtextbox/parsing/stream.d.ts +29 -0
- package/maskedtextbox/utils.d.ts +23 -0
- package/messages/main.d.ts +212 -0
- package/numerictextbox/NumericTextBox.d.ts +264 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +2 -0
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxData.d.ts +22 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +188 -0
- package/numerictextbox/utils/main.d.ts +126 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -11
- package/radiobutton/RadioButton.d.ts +94 -0
- package/radiobutton/RadioGroup.d.ts +97 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonProps.d.ts +120 -0
- package/radiobutton/interfaces/RadioGroupBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupProps.d.ts +86 -0
- package/range-slider/RangeSlider.d.ts +256 -0
- package/range-slider/range-raducer.d.ts +42 -0
- package/range-slider/range-raducer.js +1 -1
- package/range-slider/range-raducer.mjs +2 -2
- package/rating/Rating.d.ts +132 -0
- package/rating/RatingItem.d.ts +98 -0
- package/rating/interfaces/RatingBlurEvent.d.ts +16 -0
- package/rating/interfaces/RatingEvents.d.ts +54 -0
- package/rating/interfaces/RatingFocusEvent.d.ts +16 -0
- package/rating/interfaces/RatingItemProps.d.ts +99 -0
- package/rating/interfaces/RatingProps.d.ts +123 -0
- package/rating/utils/main.d.ts +31 -0
- package/rating/utils/rating-reducer.d.ts +39 -0
- package/signature/Signature.d.ts +219 -0
- package/signature/SignatureBottomActions.d.ts +35 -0
- package/signature/SignatureCanvas.d.ts +66 -0
- package/signature/SignatureDialog.d.ts +90 -0
- package/signature/SignatureLine.d.ts +12 -0
- package/signature/interfaces/SignatureBlurEvent.d.ts +12 -0
- package/signature/interfaces/SignatureCanvasProps.d.ts +23 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +16 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +12 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +12 -0
- package/signature/interfaces/SignatureHandle.d.ts +49 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +12 -0
- package/signature/interfaces/SignatureProps.d.ts +197 -0
- package/signature/interfaces/main.d.ts +14 -0
- package/signature/utils/main.d.ts +11 -0
- package/slider/Slider.d.ts +201 -0
- package/slider/SliderLabel.d.ts +57 -0
- package/slider/interfaces/SliderBlurEvent.d.ts +16 -0
- package/slider/interfaces/SliderFocusEvent.d.ts +16 -0
- package/switch/Switch.d.ts +318 -0
- package/switch/interfaces/SwitchBlurEvent.d.ts +16 -0
- package/switch/interfaces/SwitchFocusEvent.d.ts +16 -0
- package/switch/util.d.ts +15 -0
- package/textarea/TextArea.d.ts +237 -0
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +16 -0
- package/textarea/interfaces/TextAreaFlow.d.ts +15 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaProps.d.ts +191 -0
- package/textarea/interfaces/TextAreaResize.d.ts +38 -0
- package/textbox/TextBox.d.ts +422 -0
- package/textbox/interfaces/TextBoxBlurEvent.d.ts +16 -0
- package/textbox/interfaces/TextBoxFocusEvent.d.ts +16 -0
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { RatingChangeEvent, RatingItemMouseEvent, RatingKeyboardEvent } from './interfaces/RatingEvents';
|
|
9
|
+
import { RatingFocusEvent } from './interfaces/RatingFocusEvent';
|
|
10
|
+
import { RatingBlurEvent } from './interfaces/RatingBlurEvent';
|
|
11
|
+
import { RatingActionDispatch } from './utils/rating-reducer';
|
|
12
|
+
import { PropType } from 'vue';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
declare const Rating: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
min: {
|
|
18
|
+
type: PropType<number>;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
max: {
|
|
22
|
+
type: PropType<number>;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
step: {
|
|
26
|
+
type: PropType<number>;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
item: {
|
|
30
|
+
type: PropType<any>;
|
|
31
|
+
};
|
|
32
|
+
precision: {
|
|
33
|
+
type: PropType<"item" | "half">;
|
|
34
|
+
default: string;
|
|
35
|
+
validator: (value: 'item' | 'half') => any;
|
|
36
|
+
};
|
|
37
|
+
selection: {
|
|
38
|
+
type: PropType<"single" | "continues">;
|
|
39
|
+
default: string;
|
|
40
|
+
validator: (value: 'continues' | 'single') => any;
|
|
41
|
+
};
|
|
42
|
+
value: PropType<number>;
|
|
43
|
+
icon: PropType<string>;
|
|
44
|
+
svgIconOutline: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
45
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
46
|
+
tabIndex: PropType<number>;
|
|
47
|
+
disabled: PropType<boolean>;
|
|
48
|
+
readonly: PropType<boolean>;
|
|
49
|
+
id: PropType<string>;
|
|
50
|
+
half: PropType<boolean>;
|
|
51
|
+
defaultValue: PropType<number>;
|
|
52
|
+
label: PropType<string>;
|
|
53
|
+
}>, {
|
|
54
|
+
inputRef: import('vue').Ref<any, any>;
|
|
55
|
+
}, {
|
|
56
|
+
focused: boolean;
|
|
57
|
+
currentValue: any;
|
|
58
|
+
currentHovered: any;
|
|
59
|
+
}, {
|
|
60
|
+
base(): number;
|
|
61
|
+
computedValue(): number;
|
|
62
|
+
}, {
|
|
63
|
+
handleFocus(event: FocusEvent): void;
|
|
64
|
+
handleBlur(event: FocusEvent): void;
|
|
65
|
+
handleChange(newValue: number, event: PointerEvent): void;
|
|
66
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
67
|
+
handleItemClick(eventData: RatingItemMouseEvent): void;
|
|
68
|
+
handleMouseMove(eventData: RatingItemMouseEvent): void;
|
|
69
|
+
handleMouseLeave(eventData: RatingItemMouseEvent): void;
|
|
70
|
+
dispatchValue(action: RatingActionDispatch): void;
|
|
71
|
+
dispatchHover(action: RatingActionDispatch): void;
|
|
72
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
73
|
+
change: (event: RatingChangeEvent) => true;
|
|
74
|
+
keydown: (event: RatingKeyboardEvent) => true;
|
|
75
|
+
focus: (event: RatingFocusEvent) => true;
|
|
76
|
+
blur: (event: RatingBlurEvent) => true;
|
|
77
|
+
click: (event: RatingItemMouseEvent) => true;
|
|
78
|
+
mouseleave: (event: RatingItemMouseEvent) => true;
|
|
79
|
+
mousemove: (event: RatingItemMouseEvent) => true;
|
|
80
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
81
|
+
min: {
|
|
82
|
+
type: PropType<number>;
|
|
83
|
+
default: number;
|
|
84
|
+
};
|
|
85
|
+
max: {
|
|
86
|
+
type: PropType<number>;
|
|
87
|
+
default: number;
|
|
88
|
+
};
|
|
89
|
+
step: {
|
|
90
|
+
type: PropType<number>;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
93
|
+
item: {
|
|
94
|
+
type: PropType<any>;
|
|
95
|
+
};
|
|
96
|
+
precision: {
|
|
97
|
+
type: PropType<"item" | "half">;
|
|
98
|
+
default: string;
|
|
99
|
+
validator: (value: 'item' | 'half') => any;
|
|
100
|
+
};
|
|
101
|
+
selection: {
|
|
102
|
+
type: PropType<"single" | "continues">;
|
|
103
|
+
default: string;
|
|
104
|
+
validator: (value: 'continues' | 'single') => any;
|
|
105
|
+
};
|
|
106
|
+
value: PropType<number>;
|
|
107
|
+
icon: PropType<string>;
|
|
108
|
+
svgIconOutline: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
109
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
110
|
+
tabIndex: PropType<number>;
|
|
111
|
+
disabled: PropType<boolean>;
|
|
112
|
+
readonly: PropType<boolean>;
|
|
113
|
+
id: PropType<string>;
|
|
114
|
+
half: PropType<boolean>;
|
|
115
|
+
defaultValue: PropType<number>;
|
|
116
|
+
label: PropType<string>;
|
|
117
|
+
}>> & Readonly<{
|
|
118
|
+
onClick?: (event: RatingItemMouseEvent) => any;
|
|
119
|
+
onBlur?: (event: RatingBlurEvent) => any;
|
|
120
|
+
onChange?: (event: RatingChangeEvent) => any;
|
|
121
|
+
onFocus?: (event: RatingFocusEvent) => any;
|
|
122
|
+
onKeydown?: (event: RatingKeyboardEvent) => any;
|
|
123
|
+
onMouseleave?: (event: RatingItemMouseEvent) => any;
|
|
124
|
+
onMousemove?: (event: RatingItemMouseEvent) => any;
|
|
125
|
+
}>, {
|
|
126
|
+
selection: "single" | "continues";
|
|
127
|
+
step: number;
|
|
128
|
+
min: number;
|
|
129
|
+
max: number;
|
|
130
|
+
precision: "item" | "half";
|
|
131
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
132
|
+
export { Rating };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { RatingItemMouseEvent } from './interfaces/RatingEvents';
|
|
9
|
+
import { PropType } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
declare const RatingItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
|
+
id: PropType<string>;
|
|
15
|
+
tabIndex: PropType<number>;
|
|
16
|
+
half: PropType<boolean>;
|
|
17
|
+
title: PropType<string>;
|
|
18
|
+
icon: PropType<any>;
|
|
19
|
+
selected: PropType<boolean>;
|
|
20
|
+
hovered: PropType<boolean>;
|
|
21
|
+
onClick: PropType<(event: RatingItemMouseEvent) => void>;
|
|
22
|
+
onKeyDown: PropType<(event: KeyboardEvent) => void>;
|
|
23
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
24
|
+
onBlur: PropType<(event: FocusEvent) => void>;
|
|
25
|
+
onMouseEnter: PropType<(event: RatingItemMouseEvent) => void>;
|
|
26
|
+
svgIconOutline: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
27
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
28
|
+
haveSelectedValue: PropType<boolean>;
|
|
29
|
+
item: PropType<any>;
|
|
30
|
+
itemTemplate: PropType<any>;
|
|
31
|
+
dir: {
|
|
32
|
+
type: PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
validator: (value: string | undefined) => any;
|
|
35
|
+
};
|
|
36
|
+
value: {
|
|
37
|
+
type: PropType<number>;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
}>, {
|
|
41
|
+
inputRef: import('vue').Ref<any, any>;
|
|
42
|
+
}, {}, {
|
|
43
|
+
wrapperClass(): string;
|
|
44
|
+
}, {
|
|
45
|
+
handleClick(event: PointerEvent): void;
|
|
46
|
+
handleMouseLeave(event: MouseEvent): void;
|
|
47
|
+
handleMouseMove(event: MouseEvent): void;
|
|
48
|
+
handleMouseEnter(event: MouseEvent): void;
|
|
49
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
50
|
+
handleFocus(event: FocusEvent): void;
|
|
51
|
+
handleBlur(event: FocusEvent): void;
|
|
52
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
|
+
click: (event: RatingItemMouseEvent) => true;
|
|
54
|
+
keydown: any;
|
|
55
|
+
focus: any;
|
|
56
|
+
blur: any;
|
|
57
|
+
mouseenter: (event: RatingItemMouseEvent) => true;
|
|
58
|
+
mouseleave: (event: RatingItemMouseEvent) => true;
|
|
59
|
+
mousemove: (event: RatingItemMouseEvent) => true;
|
|
60
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
61
|
+
id: PropType<string>;
|
|
62
|
+
tabIndex: PropType<number>;
|
|
63
|
+
half: PropType<boolean>;
|
|
64
|
+
title: PropType<string>;
|
|
65
|
+
icon: PropType<any>;
|
|
66
|
+
selected: PropType<boolean>;
|
|
67
|
+
hovered: PropType<boolean>;
|
|
68
|
+
onClick: PropType<(event: RatingItemMouseEvent) => void>;
|
|
69
|
+
onKeyDown: PropType<(event: KeyboardEvent) => void>;
|
|
70
|
+
onFocus: PropType<(event: FocusEvent) => void>;
|
|
71
|
+
onBlur: PropType<(event: FocusEvent) => void>;
|
|
72
|
+
onMouseEnter: PropType<(event: RatingItemMouseEvent) => void>;
|
|
73
|
+
svgIconOutline: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
74
|
+
svgIcon: PropType<import('@progress/kendo-vue-common').SVGIcon>;
|
|
75
|
+
haveSelectedValue: PropType<boolean>;
|
|
76
|
+
item: PropType<any>;
|
|
77
|
+
itemTemplate: PropType<any>;
|
|
78
|
+
dir: {
|
|
79
|
+
type: PropType<string>;
|
|
80
|
+
default: string;
|
|
81
|
+
validator: (value: string | undefined) => any;
|
|
82
|
+
};
|
|
83
|
+
value: {
|
|
84
|
+
type: PropType<number>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
}>> & Readonly<{
|
|
88
|
+
onClick?: (event: RatingItemMouseEvent) => any;
|
|
89
|
+
onBlur?: (...args: any[] | unknown[]) => any;
|
|
90
|
+
onFocus?: (...args: any[] | unknown[]) => any;
|
|
91
|
+
onKeydown?: (...args: any[] | unknown[]) => any;
|
|
92
|
+
onMouseenter?: (event: RatingItemMouseEvent) => any;
|
|
93
|
+
onMouseleave?: (event: RatingItemMouseEvent) => any;
|
|
94
|
+
onMousemove?: (event: RatingItemMouseEvent) => any;
|
|
95
|
+
}>, {
|
|
96
|
+
dir: string;
|
|
97
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
98
|
+
export { RatingItem };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onBlur` Rating event.
|
|
10
|
+
*/
|
|
11
|
+
export interface RatingBlurEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Represents the return type of the RatingItemMouseEvent.
|
|
10
|
+
*/
|
|
11
|
+
export interface RatingItemMouseEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The event of the RatingItemMouseEvent.
|
|
14
|
+
*/
|
|
15
|
+
event: MouseEvent;
|
|
16
|
+
/**
|
|
17
|
+
* The target of the RatingItemMouseEvent.
|
|
18
|
+
*/
|
|
19
|
+
target: Element;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
value?: number | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents the return type of the RatingKeyboardEvent.
|
|
27
|
+
*/
|
|
28
|
+
export interface RatingKeyboardEvent {
|
|
29
|
+
/**
|
|
30
|
+
* The current Rating value.
|
|
31
|
+
*/
|
|
32
|
+
value: number;
|
|
33
|
+
/**
|
|
34
|
+
* The event of the RatingKeyboardEvent.
|
|
35
|
+
*/
|
|
36
|
+
event: KeyboardEvent;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Represents the return type of RatingChangeEvent.
|
|
40
|
+
*/
|
|
41
|
+
export interface RatingChangeEvent {
|
|
42
|
+
/**
|
|
43
|
+
* The event of the RatingChangeEvent.
|
|
44
|
+
*/
|
|
45
|
+
event: PointerEvent;
|
|
46
|
+
/**
|
|
47
|
+
* The target of the RatingChangeEvent.
|
|
48
|
+
*/
|
|
49
|
+
target: HTMLSpanElement;
|
|
50
|
+
/**
|
|
51
|
+
* The current Rating value.
|
|
52
|
+
*/
|
|
53
|
+
value: number;
|
|
54
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The arguments for the `onFocus` Rating event.
|
|
10
|
+
*/
|
|
11
|
+
export interface RatingFocusEvent {
|
|
12
|
+
/**
|
|
13
|
+
* The native FocusEvent from the DOM.
|
|
14
|
+
*/
|
|
15
|
+
event: FocusEvent;
|
|
16
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { SVGIcon } from '@progress/kendo-vue-common';
|
|
9
|
+
import { RatingItemMouseEvent } from './RatingEvents';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the properties of [RatingItem](% slug api_inputs_ratingitem %) component.
|
|
12
|
+
*/
|
|
13
|
+
export interface RatingItemProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the `id` property of the top div element of the RatingItem.
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the `tabIndex` attribute.
|
|
20
|
+
*/
|
|
21
|
+
tabIndex?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Determines if icon is partly selected.
|
|
24
|
+
*/
|
|
25
|
+
half?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Determines the RatingItem direction `ltr` - by default, or `rtl`.
|
|
28
|
+
*/
|
|
29
|
+
dir?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Sets the current value of the RatingItem, used in controlled mode.
|
|
32
|
+
*/
|
|
33
|
+
value: number;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the title of current RatingItem component. [See example]({% slug controlled_rating %})
|
|
36
|
+
*/
|
|
37
|
+
title?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the icon of current RatingItem component. [See example]({% slug label_rating %})
|
|
40
|
+
*/
|
|
41
|
+
icon?: any;
|
|
42
|
+
/**
|
|
43
|
+
* Sets custom Rating SVG icon.
|
|
44
|
+
*/
|
|
45
|
+
svgIcon?: SVGIcon;
|
|
46
|
+
/**
|
|
47
|
+
* Sets custom Rating SVG icon.
|
|
48
|
+
*/
|
|
49
|
+
svgIconOutline?: SVGIcon;
|
|
50
|
+
/**
|
|
51
|
+
* Determines if current RatingItem is selected. [See example]({% slug item_customization_ratingitem %})
|
|
52
|
+
*/
|
|
53
|
+
selected?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Determines if some of the RatingItems are selected.
|
|
56
|
+
* [See example]({% slug item_customization_ratingitem %})
|
|
57
|
+
*/
|
|
58
|
+
haveSelectedValue?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Determines if current RatingItem is hovered.
|
|
61
|
+
*/
|
|
62
|
+
hovered?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* @hidden
|
|
65
|
+
*/
|
|
66
|
+
item?: any;
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*/
|
|
70
|
+
itemTemplate?: any;
|
|
71
|
+
/**
|
|
72
|
+
* Triggered after `onClick` event. Gets outside access to the target element, the new value and the event type.
|
|
73
|
+
*/
|
|
74
|
+
onClick?: (event: RatingItemMouseEvent) => void;
|
|
75
|
+
/**
|
|
76
|
+
* Triggered after `onKeyDown` event. Gets outside access to the target element, the new value and the event type.
|
|
77
|
+
*/
|
|
78
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Triggered after `onFocus` event. Gets outside access to the target element and the event type.
|
|
81
|
+
*/
|
|
82
|
+
onFocus?: (event: FocusEvent) => void;
|
|
83
|
+
/**
|
|
84
|
+
* Triggered after `onBlur` event. Gets outside access to the target element and the event type.
|
|
85
|
+
*/
|
|
86
|
+
onBlur?: (event: FocusEvent) => void;
|
|
87
|
+
/**
|
|
88
|
+
* Triggered after `onMouseEnter` event. Gets outside access to the target element and the event type.
|
|
89
|
+
*/
|
|
90
|
+
onMouseEnter?: (event: RatingItemMouseEvent) => void;
|
|
91
|
+
/**
|
|
92
|
+
* Triggered after `onMouseLeave` event. Gets outside access to the target element and the event type.
|
|
93
|
+
*/
|
|
94
|
+
onMouseLeave?: (event: RatingItemMouseEvent) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Triggered after `onMouseMove` event. Gets outside access to the target element and the event type.
|
|
97
|
+
*/
|
|
98
|
+
onMouseMove?: (event: RatingItemMouseEvent) => void;
|
|
99
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FormComponentProps, SVGIcon } from '@progress/kendo-vue-common';
|
|
9
|
+
import { RatingKeyboardEvent, RatingItemMouseEvent, RatingChangeEvent } from './RatingEvents';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the properties of [Rating](% slug overview_rating %) component.
|
|
12
|
+
*/
|
|
13
|
+
export interface RatingProps extends FormComponentProps {
|
|
14
|
+
/**
|
|
15
|
+
* Sets the `id` property of the top div element of the Rating.
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Sets additional classes to the Rating.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sets the `tabIndex` attribute.
|
|
24
|
+
*/
|
|
25
|
+
tabIndex?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Sets additional CSS styles to the Rating.
|
|
28
|
+
*/
|
|
29
|
+
style?: any;
|
|
30
|
+
/**
|
|
31
|
+
* Represents the rendered Rating item.
|
|
32
|
+
*/
|
|
33
|
+
item?: any;
|
|
34
|
+
/**
|
|
35
|
+
* Sets the current value of the Rating, used in controlled mode. [See example]({% slug item_customization_ratingitem %})
|
|
36
|
+
*/
|
|
37
|
+
value?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the default value of the Rating, used in uncontrolled mode. [See example]({% slug controlled_rating %})
|
|
40
|
+
*/
|
|
41
|
+
defaultValue?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Sets the min possible icon value or star value in the main use-case.
|
|
44
|
+
*/
|
|
45
|
+
min?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Sets the max possible icon value or star value in the main use-case.
|
|
48
|
+
*/
|
|
49
|
+
max?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Sets the step value between the min and max value.
|
|
52
|
+
*/
|
|
53
|
+
step?: number;
|
|
54
|
+
/**
|
|
55
|
+
* Determines the Rating direction `ltr` - by default, or `rtl`.
|
|
56
|
+
*/
|
|
57
|
+
dir?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Determines if the Rating has a label and is it a custom one.
|
|
60
|
+
*/
|
|
61
|
+
label?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Sets the `readonly` mode of the Rating, if it is set to `true`. [See example]({% slug label_rating %})
|
|
64
|
+
*/
|
|
65
|
+
readonly?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Sets the `disabled` mode of the Rating, if it is set to `true`. [See example]({% slug readonly_rating %})
|
|
68
|
+
*/
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Sets custom Rating icon, by default - star. [See example]({% slug disabled_rating %})
|
|
72
|
+
*/
|
|
73
|
+
icon?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Sets custom Rating SVG icon.
|
|
76
|
+
*/
|
|
77
|
+
svgIcon?: SVGIcon;
|
|
78
|
+
/**
|
|
79
|
+
* Sets custom Rating SVG icon.
|
|
80
|
+
*/
|
|
81
|
+
svgIconOutline?: SVGIcon;
|
|
82
|
+
/**
|
|
83
|
+
* Determines the selection mode. By default set to `continues`. [See example]({% slug icon_rating %})
|
|
84
|
+
*/
|
|
85
|
+
selection?: 'continues' | 'single';
|
|
86
|
+
/**
|
|
87
|
+
* Determines the precision of the Rating. By default set to `item`. [See example]({% slug selection_rating %})
|
|
88
|
+
*/
|
|
89
|
+
precision?: 'half' | 'item';
|
|
90
|
+
/**
|
|
91
|
+
* Determines if value represents half icon -> true, or not -> false. [See example]({% slug precision_rating %})
|
|
92
|
+
*/
|
|
93
|
+
half?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* 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).
|
|
96
|
+
* For example these elements could contain error or hint message.
|
|
97
|
+
*/
|
|
98
|
+
ariaDescribedBy?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Identifies the element(s) which will label the component.
|
|
101
|
+
*/
|
|
102
|
+
ariaLabelledBy?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Triggered after value change. Gets outside access to the target element, the new value and the event type.
|
|
105
|
+
*/
|
|
106
|
+
onChange?: (event: RatingChangeEvent) => void;
|
|
107
|
+
/**
|
|
108
|
+
* Triggered after `onClick` event. Gets outside access to the target element, the new value and the event type.
|
|
109
|
+
*/
|
|
110
|
+
onClick?: (event: RatingItemMouseEvent) => void;
|
|
111
|
+
/**
|
|
112
|
+
* Triggered after `onKeyDown` event. Gets outside access to the target element, the new value and the event type.
|
|
113
|
+
*/
|
|
114
|
+
onKeyDown?: (event: RatingKeyboardEvent) => void;
|
|
115
|
+
/**
|
|
116
|
+
* Triggered after `onFocus` event. Gets outside access to the target element and the event type.
|
|
117
|
+
*/
|
|
118
|
+
onFocus?: (event: FocusEvent) => void;
|
|
119
|
+
/**
|
|
120
|
+
* Triggered after `onBlur` event. Gets outside access to the target element and the event type.
|
|
121
|
+
*/
|
|
122
|
+
onBlur?: (event: FocusEvent) => void;
|
|
123
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const toRound: (num: number, base: number) => number;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
export declare const getRemainder: (x: number, y: number) => number;
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const isHalf: (index: number, value: number, step: number) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export declare const isSelected: (index: number, value: number | null, step: number, selection: 'single' | 'continues') => boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*/
|
|
27
|
+
export declare const calcIsFirstHalf: (dir: string, rect: any, clientX: number) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export declare const isCorrectValue: (min: number, max: number, step: number, value: number) => boolean;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare enum RATING_ACTION {
|
|
12
|
+
select = "select",
|
|
13
|
+
deselect = "deselect",
|
|
14
|
+
increase = "increase",
|
|
15
|
+
decrease = "decrease",
|
|
16
|
+
min = "min",
|
|
17
|
+
max = "max",
|
|
18
|
+
reset = "reset"
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
export type RatingActionDispatch = {
|
|
24
|
+
type: RATING_ACTION;
|
|
25
|
+
payload?: number;
|
|
26
|
+
event?: any;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*/
|
|
31
|
+
export type RatingAction = {
|
|
32
|
+
min: number;
|
|
33
|
+
max: number;
|
|
34
|
+
step?: number;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare const ratingReducer: (state: any, action: RatingAction & RatingActionDispatch) => any;
|