@progress/kendo-react-inputs 13.3.0-develop.9 → 13.4.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.d.ts +49 -0
- package/checkbox/Checkbox.js +1 -1
- package/checkbox/Checkbox.mjs +35 -36
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +14 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +18 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +14 -0
- package/checkbox/interfaces/CheckboxProps.d.ts +148 -0
- package/colors/ColorContrastLabels.d.ts +22 -0
- package/colors/ColorContrastSvg.d.ts +25 -0
- package/colors/ColorGradient.d.ts +215 -0
- package/colors/ColorGradient.js +1 -1
- package/colors/ColorGradient.mjs +20 -19
- package/colors/ColorInput.d.ts +40 -0
- package/colors/ColorInput.js +1 -1
- package/colors/ColorInput.mjs +20 -16
- package/colors/ColorPalette.d.ts +129 -0
- package/colors/ColorPalette.js +1 -1
- package/colors/ColorPalette.mjs +7 -7
- package/colors/ColorPicker.d.ts +34 -0
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +96 -94
- package/colors/FlatColorPicker.d.ts +189 -0
- package/colors/FlatColorPicker.js +1 -1
- package/colors/FlatColorPicker.mjs +41 -40
- package/colors/HexInput.d.ts +39 -0
- package/colors/HexInput.js +1 -1
- package/colors/HexInput.mjs +2 -1
- package/colors/Picker.d.ts +13 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +18 -0
- package/colors/interfaces/ColorGradientProps.d.ts +160 -0
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +22 -0
- package/colors/interfaces/ColorPaletteProps.d.ts +116 -0
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +29 -0
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +20 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +29 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +20 -0
- package/colors/interfaces/ColorPickerGradientSettings.d.ts +29 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/ColorPickerProps.d.ts +242 -0
- package/colors/interfaces/ColorPickerView.d.ts +17 -0
- package/colors/interfaces/PickerPopupSettings.d.ts +29 -0
- package/colors/interfaces/PickerProps.d.ts +57 -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 +37 -0
- package/colors/utils/color-palette.service.d.ts +19 -0
- package/colors/utils/color-parser.d.ts +72 -0
- package/colors/utils/color-parser.js +1 -1
- package/colors/utils/color-parser.mjs +1 -1
- package/colors/utils/misc.d.ts +23 -0
- package/colors/utils/svg-calc.d.ts +69 -0
- package/common/AdaptiveMode.d.ts +21 -0
- package/common/SliderTooltip.d.ts +25 -0
- package/common/SwitchController.d.ts +38 -0
- package/common/SwitchModel.d.ts +14 -0
- package/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/index.d.mts +72 -5128
- package/index.d.ts +72 -5128
- package/input/Input.d.ts +119 -0
- package/input/Input.js +1 -1
- package/input/Input.mjs +45 -43
- package/input/InputClearValue.d.ts +28 -0
- package/input/InputPrefix.d.ts +30 -0
- package/input/InputSeparator.d.ts +30 -0
- package/input/InputSuffix.d.ts +32 -0
- package/input/InputValidationIcon.d.ts +21 -0
- package/input/interfaces/InputChangeEvent.d.ts +18 -0
- package/interfaces/Direction.d.ts +8 -0
- package/interfaces/ToggleBaseProps.d.ts +24 -0
- package/maskedtextbox/MaskedTextBox.d.ts +224 -0
- package/maskedtextbox/MaskedTextBox.js +1 -1
- package/maskedtextbox/MaskedTextBox.mjs +80 -79
- package/maskedtextbox/MaskedTextBoxProps.d.ts +273 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/masking.service.mjs +9 -9
- 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/index.d.ts +177 -0
- package/numerictextbox/NumericTextBox.d.ts +21 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +161 -161
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +14 -0
- package/numerictextbox/interfaces/NumericTextBoxChangeEvent.d.ts +18 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +14 -0
- package/numerictextbox/interfaces/NumericTextBoxHandle.d.ts +46 -0
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +212 -0
- package/numerictextbox/interfaces/NumericTextBoxState.d.ts +22 -0
- package/numerictextbox/utils/index.d.ts +126 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +10 -10
- package/radiobutton/RadioButton.d.ts +36 -0
- package/radiobutton/RadioButton.js +1 -1
- package/radiobutton/RadioButton.mjs +8 -8
- package/radiobutton/RadioGroup.d.ts +36 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +18 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioButtonProps.d.ts +107 -0
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +18 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +14 -0
- package/radiobutton/interfaces/RadioGroupProps.d.ts +178 -0
- package/range-slider/RangeSlider.d.ts +152 -0
- package/range-slider/range-raducer.d.ts +46 -0
- package/rating/Rating.d.ts +302 -0
- package/rating/Rating.mjs +3 -3
- package/rating/RatingItem.d.ts +111 -0
- package/rating/models/index.d.ts +91 -0
- package/rating/rating-reducer.d.ts +39 -0
- package/rating/utils/index.d.ts +31 -0
- package/signature/Signature.d.ts +21 -0
- package/signature/Signature.js +1 -1
- package/signature/Signature.mjs +26 -23
- package/signature/interfaces/SignatureBlurEvent.d.ts +14 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +18 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +14 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +14 -0
- package/signature/interfaces/SignatureHandle.d.ts +49 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +14 -0
- package/signature/interfaces/SignatureProps.d.ts +324 -0
- package/signature/interfaces/index.d.ts +14 -0
- package/signature/utils/index.d.ts +11 -0
- package/slider/Slider.d.ts +288 -0
- package/slider/Slider.mjs +9 -9
- package/slider/SliderLabel.d.ts +51 -0
- package/switch/Switch.d.ts +397 -0
- package/switch/Switch.js +1 -1
- package/switch/Switch.mjs +29 -22
- package/textarea/TextArea.d.ts +40 -0
- package/textarea/TextArea.js +1 -1
- package/textarea/TextArea.mjs +41 -41
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +14 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +18 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +14 -0
- package/textarea/interfaces/TextAreaProps.d.ts +199 -0
- package/textbox/Textbox.d.ts +99 -0
- package/textbox/Textbox.js +1 -1
- package/textbox/Textbox.mjs +70 -66
- package/utils.d.ts +11 -0
package/input/Input.d.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
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, FormComponentValidity, InputsClassStructure } from '@progress/kendo-react-common';
|
|
9
|
+
import { InputChangeEvent } from './interfaces/InputChangeEvent.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
15
|
+
/**
|
|
16
|
+
* Represents the props of the [KendoReact Input component](https://www.telerik.com/kendo-react-ui/components/inputs/input).
|
|
17
|
+
* Extends the [native input props](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement).
|
|
18
|
+
*/
|
|
19
|
+
export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'>, FormComponentProps {
|
|
20
|
+
/**
|
|
21
|
+
* Renders a floating label for the Input component.
|
|
22
|
+
*/
|
|
23
|
+
label?: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Sets a `className` for the floating label.
|
|
26
|
+
*/
|
|
27
|
+
labelClassName?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Represents the Input value.
|
|
30
|
+
*/
|
|
31
|
+
value?: string | string[] | number;
|
|
32
|
+
/**
|
|
33
|
+
* Represents the Input default value.
|
|
34
|
+
*/
|
|
35
|
+
defaultValue?: string | string[];
|
|
36
|
+
/**
|
|
37
|
+
* 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).
|
|
38
|
+
* For example these elements could contain error or hint message.
|
|
39
|
+
*/
|
|
40
|
+
ariaDescribedBy?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Identifies the element(s) which will label the component.
|
|
43
|
+
*/
|
|
44
|
+
ariaLabelledBy?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Defines a string value that labels an interactive element.
|
|
47
|
+
*/
|
|
48
|
+
ariaLabel?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Represents the `autoFocus` HTML attribute that will be applied to the input element of the Input. (Defaults to `false`)
|
|
51
|
+
*/
|
|
52
|
+
autoFocus?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Triggered after value change.
|
|
55
|
+
*/
|
|
56
|
+
onChange?: (event: InputChangeEvent) => void;
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
unstyled?: InputsClassStructure;
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
visited?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
touched?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* @hidden
|
|
71
|
+
*/
|
|
72
|
+
modified?: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* @hidden
|
|
76
|
+
*/
|
|
77
|
+
export interface InputState {
|
|
78
|
+
value?: string | string[] | number;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Represent the `ref` target of the Input component.
|
|
82
|
+
*/
|
|
83
|
+
export interface InputHandle {
|
|
84
|
+
/**
|
|
85
|
+
* Gets the native input element of the Input component.
|
|
86
|
+
*/
|
|
87
|
+
element: HTMLInputElement | null;
|
|
88
|
+
/**
|
|
89
|
+
* Gets the `name` property of the Input.
|
|
90
|
+
*/
|
|
91
|
+
name: string | undefined;
|
|
92
|
+
/**
|
|
93
|
+
*The props of the InputHandle component.
|
|
94
|
+
*/
|
|
95
|
+
props: InputProps;
|
|
96
|
+
/**
|
|
97
|
+
* Represents the validity state into which the Input is set.
|
|
98
|
+
*/
|
|
99
|
+
validity: FormComponentValidity;
|
|
100
|
+
/**
|
|
101
|
+
* Gets the value of the Input.
|
|
102
|
+
*/
|
|
103
|
+
value: string | string[] | number | undefined;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Represents the [KendoReact Input component](https://www.telerik.com/kendo-react-ui/components/inputs/input).
|
|
107
|
+
*
|
|
108
|
+
* Accepts properties of type [InputProps](https://www.telerik.com/kendo-react-ui/components/inputs/api/inputprops).
|
|
109
|
+
* Obtaining the `ref` returns an object of type [InputHandle](https://www.telerik.com/kendo-react-ui/components/inputs/api/inputhandle).
|
|
110
|
+
*/
|
|
111
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputHandle | null>>;
|
|
112
|
+
/**
|
|
113
|
+
* Represents the PropsContext of the `Input` component.
|
|
114
|
+
* Used for global configuration of all `Input` instances.
|
|
115
|
+
*
|
|
116
|
+
* For more information, refer to the [Inputs Props Context](https://www.telerik.com/kendo-react-ui/components/inputs/props-context) article.
|
|
117
|
+
*/
|
|
118
|
+
export declare const InputPropsContext: React.Context<(p: InputProps) => InputProps>;
|
|
119
|
+
export {};
|
package/input/Input.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("react"),a=require("prop-types"),u=require("@progress/kendo-react-common"),W=require("@progress/kendo-react-labels");function X(i){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const o in i)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(i,o);Object.defineProperty(s,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}return s.default=i,Object.freeze(s)}const r=X(Q),m=r.forwardRef((i,s)=>{const c=r.useContext(O).call(void 0,i),[,R]=r.useReducer(t=>t,!0),n=u.applyDefaultProps(c,Y),{className:N,label:p,labelClassName:x,id:E,validationMessage:h,defaultValue:S,valid:C,unstyled:V,visited:Z,touched:$,modified:ee,autoFocus:w,ariaLabelledBy:D,ariaDescribedBy:q,validityStyles:I,style:P,ariaLabel:F,...U}=n,j=u.useUnstyled(),f=V||j;f&&f.uInput;const B=u.useId(),[T,_]=r.useState({value:S}),k=E||B,e=r.useRef(null),d=r.useRef(void 0),y=r.useRef(null),A=()=>{e.current&&e.current.focus()},b=()=>d.current!==void 0?d.current:n.value!==void 0?n.value:T.value,v=()=>{const t={badInput:e.current?e.current.validity.badInput:!1,patternMismatch:e.current?e.current.validity.patternMismatch:!1,rangeOverflow:e.current?e.current.validity.rangeOverflow:!1,rangeUnderflow:e.current?e.current.validity.rangeUnderflow:!1,stepMismatch:e.current?e.current.validity.stepMismatch:!1,tooLong:e.current?e.current.validity.tooLong:!1,typeMismatch:e.current?e.current.validity.typeMismatch:!1,valueMissing:e.current?e.current.validity.valueMissing:!1};return{...t,customError:h!==void 0,valid:C!==void 0?C:e.current?!G(t):!0}};r.useImperativeHandle(y,()=>({element:e.current,props:n,get value(){return b()},name:n.name,get validity(){return v()},focus:A})),r.useImperativeHandle(s,()=>y.current);const G=t=>{let l=!1;for(const M in t)t.hasOwnProperty(M)&&(l=l||!!t[M]);return l},g=!I||v().valid,H=u.classNames("k-input",{"k-invalid":!g,"k-disabled":n.disabled},N),z=()=>{e.current&&e.current.setCustomValidity&&(v().valid||!I?e.current.classList.remove("k-invalid"):e.current.classList.add("k-invalid"),e.current.setCustomValidity(v().valid?"":h||""))},K=t=>{_({value:t.target.value}),d.current=t.target.value,n.onChange&&n.onChange.call(void 0,{syntheticEvent:t,nativeEvent:t.nativeEvent,value:t.target.value,target:y.current}),d.current=void 0},J=t=>{if(t.animationName==="autoFillStart"){const l=t.target.parentNode;l&&l.classList.contains("k-empty")&&l.classList.remove("k-empty")}};r.useEffect(()=>{R()},[]),r.useEffect(()=>{z()});const L=r.createElement("input",{"aria-labelledby":D,"aria-describedby":q,"aria-disabled":n.disabled||void 0,"aria-invalid":!g||void 0,"aria-label":F||void 0,...U,style:p?void 0:P,value:b(),id:k,autoFocus:w,className:H,onChange:K,onAnimationStart:J,ref:e});return p?r.createElement(W.FloatingLabel,{label:p,labelClassName:x,editorId:k,editorValue:String(b()),editorValid:g,editorDisabled:n.disabled,editorPlaceholder:n.placeholder,children:L,style:P,dir:n.dir,unstyled:f}):L}),O=u.createPropsContext(),Y={defaultValue:"",required:!1,validityStyles:!0,autoFocus:!1};m.displayName="KendoReactInput";m.propTypes={label:a.node,labelClassName:a.string,validationMessage:a.string,required:a.bool,validate:a.bool,id:a.string,ariaLabelledBy:a.string,ariaDescribedBy:a.string,ariaLabel:a.string,autoFocus:a.bool,value:a.oneOfType([a.string,a.number,a.array])};exports.Input=m;exports.InputPropsContext=O;
|
package/input/Input.mjs
CHANGED
|
@@ -7,34 +7,36 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as r from "react";
|
|
9
9
|
import a from "prop-types";
|
|
10
|
-
import { applyDefaultProps as J, useUnstyled as Q, useId as W, classNames as X
|
|
11
|
-
import { FloatingLabel as
|
|
10
|
+
import { createPropsContext as z, applyDefaultProps as J, useUnstyled as Q, useId as W, classNames as X } from "@progress/kendo-react-common";
|
|
11
|
+
import { FloatingLabel as Y } from "@progress/kendo-react-labels";
|
|
12
12
|
const C = r.forwardRef((I, L) => {
|
|
13
|
-
const M = r.useContext(
|
|
14
|
-
className:
|
|
13
|
+
const M = r.useContext(Z).call(void 0, I), [, P] = r.useReducer((t) => t, !0), n = J(M, _), {
|
|
14
|
+
className: k,
|
|
15
15
|
label: o,
|
|
16
|
-
labelClassName:
|
|
17
|
-
id:
|
|
16
|
+
labelClassName: x,
|
|
17
|
+
id: E,
|
|
18
18
|
validationMessage: p,
|
|
19
|
-
defaultValue:
|
|
19
|
+
defaultValue: N,
|
|
20
20
|
valid: f,
|
|
21
|
-
unstyled:
|
|
21
|
+
unstyled: R,
|
|
22
22
|
// Removed to support direct use in Form Field component
|
|
23
|
-
visited:
|
|
24
|
-
touched:
|
|
25
|
-
modified:
|
|
26
|
-
autoFocus:
|
|
23
|
+
visited: ee,
|
|
24
|
+
touched: te,
|
|
25
|
+
modified: ae,
|
|
26
|
+
autoFocus: V,
|
|
27
27
|
ariaLabelledBy: w,
|
|
28
28
|
ariaDescribedBy: F,
|
|
29
29
|
validityStyles: y,
|
|
30
30
|
style: m,
|
|
31
31
|
ariaLabel: U,
|
|
32
32
|
...B
|
|
33
|
-
} = n, D = Q(), u =
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
} = n, D = Q(), u = R || D;
|
|
34
|
+
u && u.uInput;
|
|
35
|
+
const O = W(), [S, T] = r.useState({
|
|
36
|
+
value: N
|
|
37
|
+
}), g = E || O, e = r.useRef(null), l = r.useRef(void 0), d = r.useRef(null), q = () => {
|
|
36
38
|
e.current && e.current.focus();
|
|
37
|
-
}, c = () =>
|
|
39
|
+
}, c = () => l.current !== void 0 ? l.current : n.value !== void 0 ? n.value : S.value, s = () => {
|
|
38
40
|
const t = {
|
|
39
41
|
badInput: e.current ? e.current.validity.badInput : !1,
|
|
40
42
|
patternMismatch: e.current ? e.current.validity.patternMismatch : !1,
|
|
@@ -48,7 +50,7 @@ const C = r.forwardRef((I, L) => {
|
|
|
48
50
|
return {
|
|
49
51
|
...t,
|
|
50
52
|
customError: p !== void 0,
|
|
51
|
-
valid: f !== void 0 ? f : e.current ? !
|
|
53
|
+
valid: f !== void 0 ? f : e.current ? !A(t) : !0
|
|
52
54
|
};
|
|
53
55
|
};
|
|
54
56
|
r.useImperativeHandle(d, () => ({
|
|
@@ -59,34 +61,34 @@ const C = r.forwardRef((I, L) => {
|
|
|
59
61
|
},
|
|
60
62
|
name: n.name,
|
|
61
63
|
get validity() {
|
|
62
|
-
return
|
|
64
|
+
return s();
|
|
63
65
|
},
|
|
64
|
-
focus:
|
|
66
|
+
focus: q
|
|
65
67
|
})), r.useImperativeHandle(L, () => d.current);
|
|
66
|
-
const
|
|
68
|
+
const A = (t) => {
|
|
67
69
|
let i = !1;
|
|
68
70
|
for (const h in t)
|
|
69
71
|
t.hasOwnProperty(h) && (i = i || !!t[h]);
|
|
70
72
|
return i;
|
|
71
|
-
}, v = !y ||
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
),
|
|
79
|
-
e.current && e.current.setCustomValidity && (
|
|
80
|
-
},
|
|
81
|
-
|
|
73
|
+
}, v = !y || s().valid, G = X(
|
|
74
|
+
"k-input",
|
|
75
|
+
{
|
|
76
|
+
"k-invalid": !v,
|
|
77
|
+
"k-disabled": n.disabled
|
|
78
|
+
},
|
|
79
|
+
k
|
|
80
|
+
), H = () => {
|
|
81
|
+
e.current && e.current.setCustomValidity && (s().valid || !y ? e.current.classList.remove("k-invalid") : e.current.classList.add("k-invalid"), e.current.setCustomValidity(s().valid ? "" : p || ""));
|
|
82
|
+
}, K = (t) => {
|
|
83
|
+
T({
|
|
82
84
|
value: t.target.value
|
|
83
|
-
}),
|
|
85
|
+
}), l.current = t.target.value, n.onChange && n.onChange.call(void 0, {
|
|
84
86
|
syntheticEvent: t,
|
|
85
87
|
nativeEvent: t.nativeEvent,
|
|
86
88
|
value: t.target.value,
|
|
87
89
|
target: d.current
|
|
88
|
-
}),
|
|
89
|
-
},
|
|
90
|
+
}), l.current = void 0;
|
|
91
|
+
}, j = (t) => {
|
|
90
92
|
if (t.animationName === "autoFillStart") {
|
|
91
93
|
const i = t.target.parentNode;
|
|
92
94
|
i && i.classList.contains("k-empty") && i.classList.remove("k-empty");
|
|
@@ -95,7 +97,7 @@ const C = r.forwardRef((I, L) => {
|
|
|
95
97
|
r.useEffect(() => {
|
|
96
98
|
P();
|
|
97
99
|
}, []), r.useEffect(() => {
|
|
98
|
-
|
|
100
|
+
H();
|
|
99
101
|
});
|
|
100
102
|
const b = /* @__PURE__ */ r.createElement(
|
|
101
103
|
"input",
|
|
@@ -109,18 +111,18 @@ const C = r.forwardRef((I, L) => {
|
|
|
109
111
|
style: o ? void 0 : m,
|
|
110
112
|
value: c(),
|
|
111
113
|
id: g,
|
|
112
|
-
autoFocus:
|
|
113
|
-
className:
|
|
114
|
-
onChange:
|
|
115
|
-
onAnimationStart:
|
|
114
|
+
autoFocus: V,
|
|
115
|
+
className: G,
|
|
116
|
+
onChange: K,
|
|
117
|
+
onAnimationStart: j,
|
|
116
118
|
ref: e
|
|
117
119
|
}
|
|
118
120
|
);
|
|
119
121
|
return o ? /* @__PURE__ */ r.createElement(
|
|
120
|
-
|
|
122
|
+
Y,
|
|
121
123
|
{
|
|
122
124
|
label: o,
|
|
123
|
-
labelClassName:
|
|
125
|
+
labelClassName: x,
|
|
124
126
|
editorId: g,
|
|
125
127
|
editorValue: String(c()),
|
|
126
128
|
editorValid: v,
|
|
@@ -132,7 +134,7 @@ const C = r.forwardRef((I, L) => {
|
|
|
132
134
|
unstyled: u
|
|
133
135
|
}
|
|
134
136
|
) : b;
|
|
135
|
-
}),
|
|
137
|
+
}), Z = z(), _ = {
|
|
136
138
|
defaultValue: "",
|
|
137
139
|
required: !1,
|
|
138
140
|
validityStyles: !0,
|
|
@@ -154,5 +156,5 @@ C.propTypes = {
|
|
|
154
156
|
};
|
|
155
157
|
export {
|
|
156
158
|
C as Input,
|
|
157
|
-
|
|
159
|
+
Z as InputPropsContext
|
|
158
160
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { InputsClassStructure } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represent the `ref` of the `InputClearValue` component.
|
|
12
|
+
*/
|
|
13
|
+
export type InputClearValueHandle = {
|
|
14
|
+
element: HTMLSpanElement | null;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Represents the `props` of the `InputClearValue` component.
|
|
18
|
+
*/
|
|
19
|
+
export interface InputClearValueProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
unstyled?: InputsClassStructure;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents the KendoReact InputClearValue component.
|
|
27
|
+
*/
|
|
28
|
+
export declare const InputClearValue: React.ForwardRefExoticComponent<InputClearValueProps & React.RefAttributes<InputClearValueHandle>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represent the `ref` of the `InputPrefix` component.
|
|
11
|
+
*/
|
|
12
|
+
export interface InputPrefixHandle {
|
|
13
|
+
/**
|
|
14
|
+
* The HTML element of the InputPrefix component.
|
|
15
|
+
*/
|
|
16
|
+
element: HTMLSpanElement | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represents the `props` of the `InputPrefix` component.
|
|
20
|
+
*/
|
|
21
|
+
export interface InputPrefixProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
22
|
+
/**
|
|
23
|
+
* Sets the `orientation` property of the `InputPrefix` component.
|
|
24
|
+
*/
|
|
25
|
+
orientation?: 'horizontal' | 'vertical';
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the KendoReact InputPrefix component.
|
|
29
|
+
*/
|
|
30
|
+
export declare const InputPrefix: React.ForwardRefExoticComponent<InputPrefixProps & React.RefAttributes<InputPrefixHandle>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represent the `ref` of the `InputSeparator` component.
|
|
11
|
+
*/
|
|
12
|
+
export interface InputSeparatorHandle {
|
|
13
|
+
/**
|
|
14
|
+
* The HTML element of the InputSeparator component.
|
|
15
|
+
*/
|
|
16
|
+
element: HTMLSpanElement | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Represents the `props` of the `InputSeparator` component.
|
|
20
|
+
*/
|
|
21
|
+
export interface InputSeparatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
22
|
+
/**
|
|
23
|
+
* Sets the `orientation` property of the `InputSeparator` component.
|
|
24
|
+
*/
|
|
25
|
+
orientation?: 'horizontal' | 'vertical';
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the KendoReact InputSeparator component.
|
|
29
|
+
*/
|
|
30
|
+
export declare const InputSeparator: React.ForwardRefExoticComponent<InputSeparatorProps & React.RefAttributes<InputSeparatorHandle>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represent the `ref` of the `InputSuffix` component.
|
|
11
|
+
*/
|
|
12
|
+
export type InputSuffixHandle = {
|
|
13
|
+
element: HTMLSpanElement | null;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Represents the `props` of the `InputSuffix` component.
|
|
17
|
+
*/
|
|
18
|
+
export type InputSuffixProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
19
|
+
/**
|
|
20
|
+
* Sets the `orientation` property of the `InputSuffix` component.
|
|
21
|
+
*/
|
|
22
|
+
orientation?: 'horizontal' | 'vertical';
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Represents the KendoReact InputSuffix component.
|
|
26
|
+
*/
|
|
27
|
+
export declare const InputSuffix: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
28
|
+
/**
|
|
29
|
+
* Sets the `orientation` property of the `InputSuffix` component.
|
|
30
|
+
*/
|
|
31
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
32
|
+
} & React.RefAttributes<InputSuffixHandle>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { IconHandle, SvgIconHandle, IconProps, SvgIconProps } from '@progress/kendo-react-common';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represent the `ref` of the `InputValidationIcon` component.
|
|
12
|
+
*/
|
|
13
|
+
export type InputValidationIconHandle = IconHandle & SvgIconHandle;
|
|
14
|
+
/**
|
|
15
|
+
* Represents the `props` of the `InputValidationIcon` component.
|
|
16
|
+
*/
|
|
17
|
+
export type InputValidationIconProps = IconProps & SvgIconProps;
|
|
18
|
+
/**
|
|
19
|
+
* Represents the KendoReact InputValidationIcon component.
|
|
20
|
+
*/
|
|
21
|
+
export declare const InputValidationIcon: React.ForwardRefExoticComponent<IconProps & SvgIconProps & React.RefAttributes<InputValidationIconHandle>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { BaseEvent } from '@progress/kendo-react-common';
|
|
9
|
+
import { InputHandle } from '../Input.js';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `change` event of the Input.
|
|
12
|
+
*/
|
|
13
|
+
export interface InputChangeEvent extends BaseEvent<InputHandle> {
|
|
14
|
+
/**
|
|
15
|
+
* The current value of the Input.
|
|
16
|
+
*/
|
|
17
|
+
value: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
export type Direction = 'ltr' | 'rtl';
|
|
@@ -0,0 +1,24 @@
|
|
|
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 props passed to the Checkbox and Switch components.
|
|
10
|
+
*/
|
|
11
|
+
export interface ToggleBaseProps {
|
|
12
|
+
/**
|
|
13
|
+
* The value of the component.
|
|
14
|
+
*/
|
|
15
|
+
value?: any;
|
|
16
|
+
/**
|
|
17
|
+
* The checked state of the component.
|
|
18
|
+
*/
|
|
19
|
+
checked?: any;
|
|
20
|
+
/**
|
|
21
|
+
* The default checked state of the component.
|
|
22
|
+
*/
|
|
23
|
+
defaultChecked?: any;
|
|
24
|
+
}
|