@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
|
@@ -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 { NumericTextBoxProps } from './interfaces/NumericTextBoxProps.js';
|
|
9
|
+
import { NumericTextBoxHandle } from './interfaces/NumericTextBoxHandle.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the PropsContext of the `NumericTextBox` component.
|
|
13
|
+
* Used for global configuration of all `NumericTextBox` instances.
|
|
14
|
+
*
|
|
15
|
+
* For more information, refer to the [Inputs Props Context](https://www.telerik.com/kendo-react-ui/components/inputs/props-context) article.
|
|
16
|
+
*/
|
|
17
|
+
export declare const NumericTextBoxPropsContext: React.Context<(p: NumericTextBoxProps) => NumericTextBoxProps>;
|
|
18
|
+
/**
|
|
19
|
+
* Represents the [KendoReact NumericTextBox component](https://www.telerik.com/kendo-react-ui/components/inputs/numerictextbox).
|
|
20
|
+
*/
|
|
21
|
+
export declare const NumericTextBox: React.ForwardRefExoticComponent<NumericTextBoxProps & React.RefAttributes<NumericTextBoxHandle | null>>;
|
|
@@ -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 we=require("react"),t=require("prop-types"),fe=require("@progress/kendo-react-intl"),i=require("@progress/kendo-react-common"),be=require("@progress/kendo-svg-icons"),Ke=require("@progress/kendo-react-labels"),g=require("../messages/index.js"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const we=require("react"),t=require("prop-types"),fe=require("@progress/kendo-react-intl"),i=require("@progress/kendo-react-common"),be=require("@progress/kendo-svg-icons"),Ke=require("@progress/kendo-react-labels"),g=require("../messages/index.js"),u=require("./utils/index.js"),pe=require("@progress/kendo-react-buttons");function $e(m){const L=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(m){for(const v in m)if(v!=="default"){const R=Object.getOwnPropertyDescriptor(m,v);Object.defineProperty(L,v,R.get?R:{enumerable:!0,get:()=>m[v]})}}return L.default=m,Object.freeze(L)}const n=$e(we),Ue="Please enter a valid value!",ge=i.createPropsContext(),Q=n.forwardRef((m,L)=>{const v=i.usePropsContext(ge,m),{className:R,value:C,defaultValue:ve,format:s,width:X,tabIndex:ye,accessKey:Ve,title:ke,placeholder:Z,min:f,max:b,dir:ee,name:G,label:B,id:Ce,ariaDescribedBy:Se,ariaLabelledBy:Ee,ariaLabel:xe,inputType:Oe,readOnly:y,validationMessage:H,children:he,touched:We,visited:Ye,modified:Je,style:te,inputStyle:Ie,valid:w,step:S=c.step,spinners:Le=c.spinners,disabled:l=c.disabled,required:q=c.required,validityStyles:ne=c.validityStyles,prefix:Pe=c.prefix,suffix:De=c.suffix,onChange:h=c.onChange,onFocus:re=c.onFocus,onBlur:ae=c.onBlur,rangeOnEnter:se=c.rangeOnEnter,size:P=c.size,rounded:K=c.rounded,fillMode:M=c.fillMode,autoFocus:Ne=c.autoFocus,inputAttributes:Re,...ue}=v,Be=i.useId(),oe=Ce||Be,o=fe.useInternationalization(),T=fe.useLocalization(),a=n.useRef(null),F=n.useRef(void 0),[qe,I]=n.useState(!1),d=n.useRef(u.getInitialState()),j=n.useRef(!1),$=n.useRef(void 0),D=n.useRef(ve),N=u.formatValue(d.current.focused&&!l?d.current.currentLooseValue:u.getStateOrPropsValue(C,D.current),s,o);$.current=N;const[Me]=i.useCustomComponent(Pe),[Te]=i.useCustomComponent(De);n.useEffect(()=>{a.current&&a.current.setCustomValidity&&a.current.setCustomValidity(_().valid?"":H||Ue)});const le=n.useCallback(()=>{a.current&&a.current.focus()},[]),z=n.useCallback(()=>F.current!==void 0?F.current:u.getStateOrPropsValue(C,D.current),[C]),ce=n.useCallback(()=>G,[G]),A=n.useCallback(()=>q,[q]),_=n.useCallback(()=>{const r=H!==void 0,e=z(),x=w!==void 0?w:!d.current.valueIsOutOfRange&&(!A()||e!=null);return{customError:r,valid:x,valueMissing:e==null}},[H,w,z,A]),U=n.useCallback(()=>ne,[ne]),ie=n.useCallback(()=>v,[v]),E=n.useCallback(()=>{const r={element:a.current,focus:le};return Object.defineProperty(r,"name",{get:ce}),Object.defineProperty(r,"value",{get:z}),Object.defineProperty(r,"validity",{get:_}),Object.defineProperty(r,"validityStyles",{get:U}),Object.defineProperty(r,"required",{get:A}),Object.defineProperty(r,"props",{get:ie}),r},[ce,z,_,U,A,le,ie]);n.useImperativeHandle(L,E);const V=n.useCallback(()=>({eventValue:u.getStateOrPropsValue(C,D.current),prevLooseValue:$.current,currentLooseValue:a.current.value,selectionStart:a.current.selectionStart,selectionEnd:a.current.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:j.current,focused:d.current.focused}),[C]),k=n.useCallback((r,e)=>{if(l)return;F.current=e.eventValue,D.current=e.eventValue;const x=u.formatValue(u.rangeValue(e.eventValue,f,b),s,o),p=u.rangeValue(o.parseNumber(x,s),f,b);p!==e.eventValue&&(e.valueIsOutOfRange=!0,e.eventValue=p,D.current=p),C!==e.eventValue&&i.dispatchEvent(h,r,E(),{value:e.eventValue}),F.current=void 0,d.current=e,I(J=>!J)},[C,h,l,I,E]),Fe=n.useCallback(r=>{const e=V();j.current=!1,k(r,u.sanitizeNumber(e,s,o))},[s,h,o,k,V]),je=n.useCallback(r=>{if(y||l)return;let e=V();const x=o.parseNumber(String(e.currentLooseValue),s);if(e.selectionEnd>e.selectionStart&&e.selectionEnd-e.selectionStart===String(e.currentLooseValue).length){const p=o.numberSymbols(),O=p&&r.key===p.minusSign,J=p&&r.key===p.decimal;j.current=!O&&!J;return}switch(r.keyCode){case 38:u.increaseValue(x,e,S,f,b,s,o);break;case 40:u.decreaseValue(x,e,S,f,b,s,o);break;case 13:{if(se===!1)return;const p=u.formatValue(u.rangeValue(x,f,b),s,o),O=u.rangeValue(o.parseNumber(p,s),f,b);e.eventValue=O,e.currentLooseValue=u.formatValue(O,s,o),e.selectionStart=e.selectionEnd=e.currentLooseValue.length;break}case 110:{const p=a.current,O=o.numberSymbols();p&&(e.currentLooseValue=e.currentLooseValue.slice(0,e.selectionStart)+O.decimal+e.currentLooseValue.slice(e.selectionEnd),e.selectionStart=e.selectionEnd=e.selectionStart+1,e=u.sanitizeNumber(e,s,o));break}default:return}r.preventDefault(),k(r,e)},[s,f,b,S,h,se,k,V]),ze=n.useCallback(()=>{j.current=!0},[]),W=n.useCallback(r=>{if(y||l)return;const e=V();u.increaseValue(o.parseNumber(String(e.currentLooseValue),s),e,S,f,b,s,o),k(r,e)},[s,f,b,S,h,y,l,k,V]),Y=n.useCallback(r=>{if(y||l)return;const e=V();u.decreaseValue(o.parseNumber(String(e.currentLooseValue),s),e,S,f,b,s,o),k(r,e)},[s,f,b,S,h,y,l,k,V]),Ae=n.useCallback(r=>{const e=i.getActiveElement(document);!document||e!==a.current||!a.current||y||l||(r.nativeEvent.deltaY<0&&W(r),r.nativeEvent.deltaY>0&&Y(r))},[W,Y,l,y]),_e=n.useCallback(r=>{d.current.currentLooseValue=$.current,d.current.focused=!0,i.dispatchEvent(re,r,E(),{}),I(e=>!e)},[re,I,E]),Ge=n.useCallback(r=>{d.current=u.getInitialState(),i.dispatchEvent(ae,r,E(),{}),I(e=>!e)},[ae,I,E]),He=n.useCallback(r=>{if(document&&a.current){const e=i.getActiveElement(document);r.preventDefault(),e!==a.current&&a.current.focus()}},[]);i.useIsomorphicLayoutEffect(()=>{a.current&&a.current.type!=="number"&&d.current.selectionStart!==void 0&&d.current.selectionEnd!==void 0&&(a.current.selectionStart=d.current.selectionStart,a.current.selectionEnd=d.current.selectionEnd,d.current.selectionStart=void 0,d.current.selectionEnd=void 0)},[qe]);const de=!U()||_().valid,me=n.createElement("span",{dir:ee,style:B?te:{width:X,...te},className:i.classNames("k-input","k-numerictextbox",{[`k-input-${i.kendoThemeMaps.sizeMap[P]||P}`]:P,[`k-input-${M}`]:M,[`k-rounded-${i.kendoThemeMaps.roundedMap[K]||K}`]:K,"k-invalid":!de,"k-required":q,"k-disabled":l},R),"aria-disabled":l?"true":void 0,...B?{}:ue},n.createElement(Me,null),n.createElement("input",{role:"spinbutton",value:N===null?"":N,tabIndex:i.getTabIndex(ye,l),accessKey:Ve,disabled:l,title:ke,"aria-disabled":l?"true":void 0,"aria-valuemin":f,"aria-valuemax":b,"aria-label":xe,"aria-labelledby":Ee,"aria-describedby":Se,"aria-required":q,placeholder:Z,spellCheck:!1,autoComplete:"off",autoCorrect:"off",autoFocus:Ne,type:Oe||"tel",className:"k-input-inner",id:oe,name:G,readOnly:y,style:Ie,onChange:Fe,onFocus:_e,onBlur:Ge,onKeyDown:je,onPaste:ze,onWheel:Ae,ref:a,...Re}),n.createElement(Te,null),he,Le&&n.createElement("span",{className:"k-input-spinner k-spin-button",onMouseDown:He},n.createElement(pe.Button,{tabIndex:-1,type:"button",icon:"caret-alt-up",svgIcon:be.caretAltUpIcon,fillMode:M,size:P,className:"k-spinner-increase","aria-label":T.toLanguageString(g.numericIncreaseValue,g.messages[g.numericIncreaseValue]),title:T.toLanguageString(g.numericIncreaseValue,g.messages[g.numericIncreaseValue]),onClick:W}),n.createElement(pe.Button,{tabIndex:-1,type:"button",icon:"caret-alt-down",svgIcon:be.caretAltDownIcon,fillMode:M,size:P,className:"k-spinner-decrease","aria-label":T.toLanguageString(g.numericDecreaseValue,g.messages[g.numericDecreaseValue]),title:T.toLanguageString(g.numericDecreaseValue,g.messages[g.numericDecreaseValue]),onClick:Y})));return B?n.createElement(Ke.FloatingLabel,{label:B,editorId:oe,editorValue:N===null?"":N,editorValid:de,editorDisabled:l,editorPlaceholder:Z,children:me,style:{width:X},dir:ee,...ue}):me});Q.propTypes={value:t.number,defaultValue:t.number,step:t.number,format:t.oneOfType([t.string,t.shape({style:t.oneOf(["decimal","currency","percent","scientific","accounting"]),currency:t.string,currencyDisplay:t.oneOf(["symbol","code","name"]),useGrouping:t.bool,minimumIntegerDigits:t.number,minimumFractionDigits:t.number,maximumFractionDigits:t.number})]),width:t.oneOfType([t.string,t.number]),tabIndex:t.number,accessKey:t.string,title:t.string,placeholder:t.string,min:t.number,max:t.number,spinners:t.bool,disabled:t.bool,readOnly:t.bool,dir:t.string,name:t.string,label:t.string,validationMessage:t.string,required:t.bool,id:t.string,rangeOnEnter:t.bool,ariaLabelledBy:t.string,ariaDescribedBy:t.string,ariaLabel:t.string,onChange:t.func,onFocus:t.func,onBlur:t.func,size:t.oneOf(["small","medium","large"]),rounded:t.oneOf(["small","medium","large","full"]),fillMode:t.oneOf(["solid","flat","outline"]),inputAttributes:t.object};const c={prefix:m=>null,suffix:m=>null,step:1,spinners:!0,disabled:!1,required:!1,validityStyles:!0,rangeOnEnter:!0,autoFocus:!1,onChange:m=>{},onFocus:m=>{},onBlur:m=>{},size:void 0,rounded:void 0,fillMode:void 0};Q.displayName="KendoNumericTextBox";exports.NumericTextBox=Q;exports.NumericTextBoxPropsContext=ge;
|
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import * as
|
|
8
|
+
import * as r from "react";
|
|
9
9
|
import t from "prop-types";
|
|
10
10
|
import { useInternationalization as Xe, useLocalization as Ze } from "@progress/kendo-react-intl";
|
|
11
|
-
import { createPropsContext as et, usePropsContext as tt, useId as
|
|
12
|
-
import { caretAltUpIcon as
|
|
13
|
-
import { FloatingLabel as
|
|
14
|
-
import { numericIncreaseValue as
|
|
15
|
-
import { getInitialState as ve, formatValue as
|
|
11
|
+
import { createPropsContext as et, usePropsContext as tt, useId as rt, useCustomComponent as pe, dispatchEvent as Q, getActiveElement as be, useIsomorphicLayoutEffect as nt, classNames as at, kendoThemeMaps as ge, getTabIndex as st } from "@progress/kendo-react-common";
|
|
12
|
+
import { caretAltUpIcon as ot, caretAltDownIcon as lt } from "@progress/kendo-svg-icons";
|
|
13
|
+
import { FloatingLabel as ut } from "@progress/kendo-react-labels";
|
|
14
|
+
import { numericIncreaseValue as T, messages as z, numericDecreaseValue as q } from "../messages/index.mjs";
|
|
15
|
+
import { getInitialState as ve, formatValue as A, getStateOrPropsValue as X, rangeValue as G, sanitizeNumber as ye, decreaseValue as Ve, increaseValue as ke } from "./utils/index.mjs";
|
|
16
16
|
import { Button as Ce } from "@progress/kendo-react-buttons";
|
|
17
|
-
const it = "Please enter a valid value!", ct = et(), Ee =
|
|
17
|
+
const it = "Please enter a valid value!", ct = et(), Ee = r.forwardRef(
|
|
18
18
|
(C, Se) => {
|
|
19
|
-
const
|
|
19
|
+
const j = tt(
|
|
20
20
|
ct,
|
|
21
21
|
C
|
|
22
22
|
), {
|
|
23
23
|
className: xe,
|
|
24
24
|
value: g,
|
|
25
25
|
defaultValue: he,
|
|
26
|
-
format:
|
|
26
|
+
format: s,
|
|
27
27
|
width: Z,
|
|
28
28
|
tabIndex: Ie,
|
|
29
29
|
accessKey: Oe,
|
|
@@ -32,71 +32,71 @@ const it = "Please enter a valid value!", ct = et(), Ee = n.forwardRef(
|
|
|
32
32
|
min: c,
|
|
33
33
|
max: d,
|
|
34
34
|
dir: te,
|
|
35
|
-
name:
|
|
36
|
-
label:
|
|
35
|
+
name: _,
|
|
36
|
+
label: O,
|
|
37
37
|
id: Pe,
|
|
38
38
|
ariaDescribedBy: Ne,
|
|
39
39
|
ariaLabelledBy: De,
|
|
40
40
|
ariaLabel: Re,
|
|
41
41
|
inputType: Fe,
|
|
42
42
|
readOnly: f,
|
|
43
|
-
validationMessage:
|
|
43
|
+
validationMessage: H,
|
|
44
44
|
children: Be,
|
|
45
45
|
// Removed to support direct use in Form Field component
|
|
46
46
|
touched: dt,
|
|
47
47
|
visited: mt,
|
|
48
48
|
modified: ft,
|
|
49
|
-
style:
|
|
49
|
+
style: re,
|
|
50
50
|
inputStyle: Me,
|
|
51
|
-
valid:
|
|
52
|
-
step: v =
|
|
53
|
-
spinners: Te =
|
|
54
|
-
disabled:
|
|
55
|
-
required:
|
|
56
|
-
validityStyles:
|
|
57
|
-
prefix: ze =
|
|
58
|
-
suffix: qe =
|
|
59
|
-
onChange: E =
|
|
60
|
-
onFocus: ae =
|
|
61
|
-
onBlur:
|
|
62
|
-
rangeOnEnter:
|
|
63
|
-
size:
|
|
64
|
-
rounded: w =
|
|
65
|
-
fillMode:
|
|
66
|
-
autoFocus: Ae =
|
|
51
|
+
valid: K,
|
|
52
|
+
step: v = u.step,
|
|
53
|
+
spinners: Te = u.spinners,
|
|
54
|
+
disabled: l = u.disabled,
|
|
55
|
+
required: L = u.required,
|
|
56
|
+
validityStyles: ne = u.validityStyles,
|
|
57
|
+
prefix: ze = u.prefix,
|
|
58
|
+
suffix: qe = u.suffix,
|
|
59
|
+
onChange: E = u.onChange,
|
|
60
|
+
onFocus: ae = u.onFocus,
|
|
61
|
+
onBlur: se = u.onBlur,
|
|
62
|
+
rangeOnEnter: oe = u.rangeOnEnter,
|
|
63
|
+
size: x = u.size,
|
|
64
|
+
rounded: w = u.rounded,
|
|
65
|
+
fillMode: P = u.fillMode,
|
|
66
|
+
autoFocus: Ae = u.autoFocus,
|
|
67
67
|
inputAttributes: Ge,
|
|
68
|
-
...
|
|
69
|
-
} =
|
|
70
|
-
i.current.focused && !
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
...le
|
|
69
|
+
} = j, je = rt(), ue = Pe || je, o = Xe(), N = Ze(), a = r.useRef(null), D = r.useRef(void 0), [_e, S] = r.useState(!1), i = r.useRef(ve()), R = r.useRef(!1), U = r.useRef(void 0), h = r.useRef(he), I = A(
|
|
70
|
+
i.current.focused && !l ? i.current.currentLooseValue : X(g, h.current),
|
|
71
|
+
s,
|
|
72
|
+
o
|
|
73
73
|
);
|
|
74
|
-
U.current =
|
|
74
|
+
U.current = I;
|
|
75
75
|
const [He] = pe(ze), [Ke] = pe(qe);
|
|
76
|
-
|
|
76
|
+
r.useEffect(() => {
|
|
77
77
|
a.current && a.current.setCustomValidity && a.current.setCustomValidity(
|
|
78
|
-
|
|
78
|
+
M().valid ? "" : H || it
|
|
79
79
|
);
|
|
80
80
|
});
|
|
81
|
-
const ie =
|
|
81
|
+
const ie = r.useCallback(() => {
|
|
82
82
|
a.current && a.current.focus();
|
|
83
|
-
}, []),
|
|
84
|
-
const
|
|
83
|
+
}, []), F = r.useCallback(() => D.current !== void 0 ? D.current : X(g, h.current), [g]), ce = r.useCallback(() => _, [_]), B = r.useCallback(() => L, [L]), M = r.useCallback(() => {
|
|
84
|
+
const n = H !== void 0, e = F(), V = K !== void 0 ? K : !i.current.valueIsOutOfRange && (!B() || e != null);
|
|
85
85
|
return {
|
|
86
|
-
customError:
|
|
86
|
+
customError: n,
|
|
87
87
|
valid: V,
|
|
88
88
|
valueMissing: e == null
|
|
89
89
|
};
|
|
90
|
-
}, [
|
|
91
|
-
const
|
|
90
|
+
}, [H, K, F, B]), $ = r.useCallback(() => ne, [ne]), de = r.useCallback(() => j, [j]), y = r.useCallback(() => {
|
|
91
|
+
const n = {
|
|
92
92
|
element: a.current,
|
|
93
93
|
focus: ie
|
|
94
94
|
};
|
|
95
|
-
return Object.defineProperty(
|
|
96
|
-
}, [ce,
|
|
97
|
-
|
|
98
|
-
const p =
|
|
99
|
-
eventValue: X(g,
|
|
95
|
+
return Object.defineProperty(n, "name", { get: ce }), Object.defineProperty(n, "value", { get: F }), Object.defineProperty(n, "validity", { get: M }), Object.defineProperty(n, "validityStyles", { get: $ }), Object.defineProperty(n, "required", { get: B }), Object.defineProperty(n, "props", { get: de }), n;
|
|
96
|
+
}, [ce, F, M, $, B, ie, de]);
|
|
97
|
+
r.useImperativeHandle(Se, y);
|
|
98
|
+
const p = r.useCallback(() => ({
|
|
99
|
+
eventValue: X(g, h.current),
|
|
100
100
|
prevLooseValue: U.current,
|
|
101
101
|
currentLooseValue: a.current.value,
|
|
102
102
|
selectionStart: a.current.selectionStart,
|
|
@@ -104,158 +104,158 @@ const it = "Please enter a valid value!", ct = et(), Ee = n.forwardRef(
|
|
|
104
104
|
decimalSelect: !1,
|
|
105
105
|
valueIsCorrected: !1,
|
|
106
106
|
valueIsOutOfRange: !1,
|
|
107
|
-
isPaste:
|
|
107
|
+
isPaste: R.current,
|
|
108
108
|
focused: i.current.focused
|
|
109
|
-
}), [g]), b =
|
|
110
|
-
(
|
|
111
|
-
if (
|
|
109
|
+
}), [g]), b = r.useCallback(
|
|
110
|
+
(n, e) => {
|
|
111
|
+
if (l)
|
|
112
112
|
return;
|
|
113
|
-
|
|
114
|
-
const V =
|
|
115
|
-
m !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = m,
|
|
113
|
+
D.current = e.eventValue, h.current = e.eventValue;
|
|
114
|
+
const V = A(G(e.eventValue, c, d), s, o), m = G(o.parseNumber(V, s), c, d);
|
|
115
|
+
m !== e.eventValue && (e.valueIsOutOfRange = !0, e.eventValue = m, h.current = m), g !== e.eventValue && Q(E, n, y(), {
|
|
116
116
|
value: e.eventValue
|
|
117
|
-
}),
|
|
117
|
+
}), D.current = void 0, i.current = e, S((J) => !J);
|
|
118
118
|
},
|
|
119
|
-
[g, E,
|
|
120
|
-
), we =
|
|
121
|
-
(
|
|
119
|
+
[g, E, l, S, y]
|
|
120
|
+
), we = r.useCallback(
|
|
121
|
+
(n) => {
|
|
122
122
|
const e = p();
|
|
123
|
-
|
|
123
|
+
R.current = !1, b(n, ye(e, s, o));
|
|
124
124
|
},
|
|
125
|
-
[
|
|
126
|
-
), Ue =
|
|
127
|
-
(
|
|
128
|
-
if (f ||
|
|
125
|
+
[s, E, o, b, p]
|
|
126
|
+
), Ue = r.useCallback(
|
|
127
|
+
(n) => {
|
|
128
|
+
if (f || l)
|
|
129
129
|
return;
|
|
130
130
|
let e = p();
|
|
131
|
-
const V =
|
|
131
|
+
const V = o.parseNumber(String(e.currentLooseValue), s);
|
|
132
132
|
if (e.selectionEnd > e.selectionStart && e.selectionEnd - e.selectionStart === String(e.currentLooseValue).length) {
|
|
133
|
-
const m =
|
|
134
|
-
|
|
133
|
+
const m = o.numberSymbols(), k = m && n.key === m.minusSign, J = m && n.key === m.decimal;
|
|
134
|
+
R.current = !k && !J;
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
|
-
switch (
|
|
137
|
+
switch (n.keyCode) {
|
|
138
138
|
case 38:
|
|
139
|
-
ke(V, e, v, c, d,
|
|
139
|
+
ke(V, e, v, c, d, s, o);
|
|
140
140
|
break;
|
|
141
141
|
case 40:
|
|
142
|
-
Ve(V, e, v, c, d,
|
|
142
|
+
Ve(V, e, v, c, d, s, o);
|
|
143
143
|
break;
|
|
144
144
|
case 13: {
|
|
145
|
-
if (
|
|
145
|
+
if (oe === !1)
|
|
146
146
|
return;
|
|
147
|
-
const m =
|
|
148
|
-
e.eventValue = k, e.currentLooseValue =
|
|
147
|
+
const m = A(G(V, c, d), s, o), k = G(o.parseNumber(m, s), c, d);
|
|
148
|
+
e.eventValue = k, e.currentLooseValue = A(k, s, o), e.selectionStart = e.selectionEnd = e.currentLooseValue.length;
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
151
|
case 110: {
|
|
152
|
-
const m = a.current, k =
|
|
153
|
-
m && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + k.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e = ye(e,
|
|
152
|
+
const m = a.current, k = o.numberSymbols();
|
|
153
|
+
m && (e.currentLooseValue = e.currentLooseValue.slice(0, e.selectionStart) + k.decimal + e.currentLooseValue.slice(e.selectionEnd), e.selectionStart = e.selectionEnd = e.selectionStart + 1, e = ye(e, s, o));
|
|
154
154
|
break;
|
|
155
155
|
}
|
|
156
156
|
default:
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
n.preventDefault(), b(n, e);
|
|
160
160
|
},
|
|
161
|
-
[
|
|
162
|
-
), $e =
|
|
163
|
-
|
|
164
|
-
}, []), W =
|
|
165
|
-
(
|
|
166
|
-
if (f ||
|
|
161
|
+
[s, c, d, v, E, oe, b, p]
|
|
162
|
+
), $e = r.useCallback(() => {
|
|
163
|
+
R.current = !0;
|
|
164
|
+
}, []), W = r.useCallback(
|
|
165
|
+
(n) => {
|
|
166
|
+
if (f || l)
|
|
167
167
|
return;
|
|
168
168
|
const e = p();
|
|
169
169
|
ke(
|
|
170
|
-
|
|
170
|
+
o.parseNumber(String(e.currentLooseValue), s),
|
|
171
171
|
e,
|
|
172
172
|
v,
|
|
173
173
|
c,
|
|
174
174
|
d,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
), b(
|
|
175
|
+
s,
|
|
176
|
+
o
|
|
177
|
+
), b(n, e);
|
|
178
178
|
},
|
|
179
|
-
[
|
|
180
|
-
), Y =
|
|
181
|
-
(
|
|
182
|
-
if (f ||
|
|
179
|
+
[s, c, d, v, E, f, l, b, p]
|
|
180
|
+
), Y = r.useCallback(
|
|
181
|
+
(n) => {
|
|
182
|
+
if (f || l)
|
|
183
183
|
return;
|
|
184
184
|
const e = p();
|
|
185
185
|
Ve(
|
|
186
|
-
|
|
186
|
+
o.parseNumber(String(e.currentLooseValue), s),
|
|
187
187
|
e,
|
|
188
188
|
v,
|
|
189
189
|
c,
|
|
190
190
|
d,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
), b(
|
|
191
|
+
s,
|
|
192
|
+
o
|
|
193
|
+
), b(n, e);
|
|
194
194
|
},
|
|
195
|
-
[
|
|
196
|
-
), We =
|
|
197
|
-
(
|
|
195
|
+
[s, c, d, v, E, f, l, b, p]
|
|
196
|
+
), We = r.useCallback(
|
|
197
|
+
(n) => {
|
|
198
198
|
const e = be(document);
|
|
199
|
-
!document || e !== a.current || !a.current || f ||
|
|
199
|
+
!document || e !== a.current || !a.current || f || l || (n.nativeEvent.deltaY < 0 && W(n), n.nativeEvent.deltaY > 0 && Y(n));
|
|
200
200
|
},
|
|
201
|
-
[W, Y,
|
|
202
|
-
), Ye =
|
|
203
|
-
(
|
|
204
|
-
i.current.currentLooseValue = U.current, i.current.focused = !0, Q(ae,
|
|
201
|
+
[W, Y, l, f]
|
|
202
|
+
), Ye = r.useCallback(
|
|
203
|
+
(n) => {
|
|
204
|
+
i.current.currentLooseValue = U.current, i.current.focused = !0, Q(ae, n, y(), {}), S((e) => !e);
|
|
205
205
|
},
|
|
206
206
|
[ae, S, y]
|
|
207
|
-
), Je =
|
|
208
|
-
(
|
|
209
|
-
i.current = ve(), Q(
|
|
207
|
+
), Je = r.useCallback(
|
|
208
|
+
(n) => {
|
|
209
|
+
i.current = ve(), Q(se, n, y(), {}), S((e) => !e);
|
|
210
210
|
},
|
|
211
|
-
[
|
|
212
|
-
), Qe =
|
|
211
|
+
[se, S, y]
|
|
212
|
+
), Qe = r.useCallback((n) => {
|
|
213
213
|
if (document && a.current) {
|
|
214
214
|
const e = be(document);
|
|
215
|
-
|
|
215
|
+
n.preventDefault(), e !== a.current && a.current.focus();
|
|
216
216
|
}
|
|
217
217
|
}, []);
|
|
218
|
-
|
|
218
|
+
nt(() => {
|
|
219
219
|
a.current && a.current.type !== "number" && i.current.selectionStart !== void 0 && i.current.selectionEnd !== void 0 && (a.current.selectionStart = i.current.selectionStart, a.current.selectionEnd = i.current.selectionEnd, i.current.selectionStart = void 0, i.current.selectionEnd = void 0);
|
|
220
220
|
}, [_e]);
|
|
221
|
-
const me = !$() ||
|
|
221
|
+
const me = !$() || M().valid, fe = /* @__PURE__ */ r.createElement(
|
|
222
222
|
"span",
|
|
223
223
|
{
|
|
224
224
|
dir: te,
|
|
225
|
-
style:
|
|
225
|
+
style: O ? re : { width: Z, ...re },
|
|
226
226
|
className: at(
|
|
227
227
|
"k-input",
|
|
228
228
|
"k-numerictextbox",
|
|
229
229
|
{
|
|
230
|
-
[`k-input-${ge.sizeMap[
|
|
231
|
-
[`k-input-${
|
|
230
|
+
[`k-input-${ge.sizeMap[x] || x}`]: x,
|
|
231
|
+
[`k-input-${P}`]: P,
|
|
232
232
|
[`k-rounded-${ge.roundedMap[w] || w}`]: w,
|
|
233
233
|
"k-invalid": !me,
|
|
234
|
-
"k-required":
|
|
235
|
-
"k-disabled":
|
|
234
|
+
"k-required": L,
|
|
235
|
+
"k-disabled": l
|
|
236
236
|
},
|
|
237
237
|
xe
|
|
238
238
|
),
|
|
239
|
-
"aria-disabled":
|
|
240
|
-
...
|
|
239
|
+
"aria-disabled": l ? "true" : void 0,
|
|
240
|
+
...O ? {} : le
|
|
241
241
|
},
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
242
|
+
/* @__PURE__ */ r.createElement(He, null),
|
|
243
|
+
/* @__PURE__ */ r.createElement(
|
|
244
244
|
"input",
|
|
245
245
|
{
|
|
246
246
|
role: "spinbutton",
|
|
247
|
-
value:
|
|
248
|
-
tabIndex:
|
|
247
|
+
value: I === null ? "" : I,
|
|
248
|
+
tabIndex: st(Ie, l),
|
|
249
249
|
accessKey: Oe,
|
|
250
|
-
disabled:
|
|
250
|
+
disabled: l,
|
|
251
251
|
title: Le,
|
|
252
|
-
"aria-disabled":
|
|
252
|
+
"aria-disabled": l ? "true" : void 0,
|
|
253
253
|
"aria-valuemin": c,
|
|
254
254
|
"aria-valuemax": d,
|
|
255
255
|
"aria-label": Re,
|
|
256
256
|
"aria-labelledby": De,
|
|
257
257
|
"aria-describedby": Ne,
|
|
258
|
-
"aria-required":
|
|
258
|
+
"aria-required": L,
|
|
259
259
|
placeholder: ee,
|
|
260
260
|
spellCheck: !1,
|
|
261
261
|
autoComplete: "off",
|
|
@@ -263,8 +263,8 @@ const it = "Please enter a valid value!", ct = et(), Ee = n.forwardRef(
|
|
|
263
263
|
autoFocus: Ae,
|
|
264
264
|
type: Fe || "tel",
|
|
265
265
|
className: "k-input-inner",
|
|
266
|
-
id:
|
|
267
|
-
name:
|
|
266
|
+
id: ue,
|
|
267
|
+
name: _,
|
|
268
268
|
readOnly: f,
|
|
269
269
|
style: Me,
|
|
270
270
|
onChange: we,
|
|
@@ -277,63 +277,63 @@ const it = "Please enter a valid value!", ct = et(), Ee = n.forwardRef(
|
|
|
277
277
|
...Ge
|
|
278
278
|
}
|
|
279
279
|
),
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ r.createElement(Ke, null),
|
|
281
281
|
Be,
|
|
282
|
-
Te && /* @__PURE__ */
|
|
282
|
+
Te && /* @__PURE__ */ r.createElement("span", { className: "k-input-spinner k-spin-button", onMouseDown: Qe }, /* @__PURE__ */ r.createElement(
|
|
283
283
|
Ce,
|
|
284
284
|
{
|
|
285
285
|
tabIndex: -1,
|
|
286
286
|
type: "button",
|
|
287
287
|
icon: "caret-alt-up",
|
|
288
|
-
svgIcon:
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
svgIcon: ot,
|
|
289
|
+
fillMode: P,
|
|
290
|
+
size: x,
|
|
291
291
|
className: "k-spinner-increase",
|
|
292
|
-
"aria-label":
|
|
293
|
-
|
|
294
|
-
T
|
|
292
|
+
"aria-label": N.toLanguageString(
|
|
293
|
+
T,
|
|
294
|
+
z[T]
|
|
295
295
|
),
|
|
296
|
-
title:
|
|
297
|
-
|
|
298
|
-
T
|
|
296
|
+
title: N.toLanguageString(
|
|
297
|
+
T,
|
|
298
|
+
z[T]
|
|
299
299
|
),
|
|
300
300
|
onClick: W
|
|
301
301
|
}
|
|
302
|
-
), /* @__PURE__ */
|
|
302
|
+
), /* @__PURE__ */ r.createElement(
|
|
303
303
|
Ce,
|
|
304
304
|
{
|
|
305
305
|
tabIndex: -1,
|
|
306
306
|
type: "button",
|
|
307
307
|
icon: "caret-alt-down",
|
|
308
|
-
svgIcon:
|
|
309
|
-
|
|
310
|
-
|
|
308
|
+
svgIcon: lt,
|
|
309
|
+
fillMode: P,
|
|
310
|
+
size: x,
|
|
311
311
|
className: "k-spinner-decrease",
|
|
312
|
-
"aria-label":
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
"aria-label": N.toLanguageString(
|
|
313
|
+
q,
|
|
314
|
+
z[q]
|
|
315
315
|
),
|
|
316
|
-
title:
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
title: N.toLanguageString(
|
|
317
|
+
q,
|
|
318
|
+
z[q]
|
|
319
319
|
),
|
|
320
320
|
onClick: Y
|
|
321
321
|
}
|
|
322
322
|
))
|
|
323
323
|
);
|
|
324
|
-
return
|
|
325
|
-
|
|
324
|
+
return O ? /* @__PURE__ */ r.createElement(
|
|
325
|
+
ut,
|
|
326
326
|
{
|
|
327
|
-
label:
|
|
328
|
-
editorId:
|
|
329
|
-
editorValue:
|
|
327
|
+
label: O,
|
|
328
|
+
editorId: ue,
|
|
329
|
+
editorValue: I === null ? "" : I,
|
|
330
330
|
editorValid: me,
|
|
331
|
-
editorDisabled:
|
|
331
|
+
editorDisabled: l,
|
|
332
332
|
editorPlaceholder: ee,
|
|
333
333
|
children: fe,
|
|
334
334
|
style: { width: Z },
|
|
335
335
|
dir: te,
|
|
336
|
-
...
|
|
336
|
+
...le
|
|
337
337
|
}
|
|
338
338
|
) : fe;
|
|
339
339
|
}
|
|
@@ -377,12 +377,12 @@ Ee.propTypes = {
|
|
|
377
377
|
onChange: t.func,
|
|
378
378
|
onFocus: t.func,
|
|
379
379
|
onBlur: t.func,
|
|
380
|
-
size: t.oneOf([
|
|
381
|
-
rounded: t.oneOf([
|
|
382
|
-
fillMode: t.oneOf([
|
|
380
|
+
size: t.oneOf(["small", "medium", "large"]),
|
|
381
|
+
rounded: t.oneOf(["small", "medium", "large", "full"]),
|
|
382
|
+
fillMode: t.oneOf(["solid", "flat", "outline"]),
|
|
383
383
|
inputAttributes: t.object
|
|
384
384
|
};
|
|
385
|
-
const
|
|
385
|
+
const u = {
|
|
386
386
|
prefix: (C) => null,
|
|
387
387
|
suffix: (C) => null,
|
|
388
388
|
step: 1,
|
|
@@ -398,9 +398,9 @@ const o = {
|
|
|
398
398
|
},
|
|
399
399
|
onBlur: (C) => {
|
|
400
400
|
},
|
|
401
|
-
size:
|
|
402
|
-
rounded:
|
|
403
|
-
fillMode:
|
|
401
|
+
size: void 0,
|
|
402
|
+
rounded: void 0,
|
|
403
|
+
fillMode: void 0
|
|
404
404
|
};
|
|
405
405
|
Ee.displayName = "KendoNumericTextBox";
|
|
406
406
|
export {
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { NumericTextBoxHandle } from './NumericTextBoxHandle.js';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onBlur` NumericTextBox event.
|
|
12
|
+
*/
|
|
13
|
+
export interface NumericTextBoxBlurEvent extends BaseEvent<NumericTextBoxHandle> {
|
|
14
|
+
}
|
|
@@ -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 { NumericTextBoxHandle } from './NumericTextBoxHandle.js';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `change` event of the NumericTextBox.
|
|
12
|
+
*/
|
|
13
|
+
export interface NumericTextBoxChangeEvent extends BaseEvent<NumericTextBoxHandle> {
|
|
14
|
+
/**
|
|
15
|
+
* The current value of the NumericTextBox.
|
|
16
|
+
*/
|
|
17
|
+
value: number | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { NumericTextBoxHandle } from './NumericTextBoxHandle.js';
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the `onFocus` NumericTextBox event.
|
|
12
|
+
*/
|
|
13
|
+
export interface NumericTextBoxFocusEvent extends BaseEvent<NumericTextBoxHandle> {
|
|
14
|
+
}
|