@progress/kendo-react-inputs 13.3.0 → 13.4.0-develop.2
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,37 @@
|
|
|
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 { HSVA } from '../models/hsva.js';
|
|
9
|
+
import { RGBA } from '../models/rgba.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare function cacheHsva(componentGuid: string, value: string, hsva: HSVA): void;
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare function cacheRgba(componentGuid: string, value: string, rgba: RGBA): void;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare function cacheHex(componentGuid: string, value: string, hex: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare function removeCachedColor(componentGuid: string): void;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export declare function getCachedHex(componentGuid: string | undefined, value: string): any;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*/
|
|
33
|
+
export declare function getCachedHsva(componentGuid: string | undefined, value: string): any;
|
|
34
|
+
/**
|
|
35
|
+
* @hidden
|
|
36
|
+
*/
|
|
37
|
+
export declare function getCachedRgba(componentGuid: string | undefined, value: string): any;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { TableCell } from '../models/table-cell.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class ColorPaletteService {
|
|
13
|
+
colorRows: string[][];
|
|
14
|
+
setColorMatrix(palette: string[], columns: number): void;
|
|
15
|
+
getCellCoordsFor(color?: string): TableCell | undefined;
|
|
16
|
+
getColorAt(cellCoords: TableCell): string | undefined;
|
|
17
|
+
getNextCell(current: TableCell, horizontalStep: number, verticalStep: number): TableCell;
|
|
18
|
+
private clampIndex;
|
|
19
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
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 { HSVA } from '../models/hsva.js';
|
|
9
|
+
import { OutputFormat } from '../models/output-format.js';
|
|
10
|
+
import { RGB } from '../models/rgb.js';
|
|
11
|
+
import { RGBA } from '../models/rgba.js';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*
|
|
15
|
+
* Returns the hex or RGBA string representation of the color.
|
|
16
|
+
*/
|
|
17
|
+
export declare const parseColor: (value: string, format: OutputFormat, safe?: boolean) => string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*
|
|
21
|
+
* Returns an HSV object representation of the color string.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getHSV: (value: string, safe?: boolean) => HSVA;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*
|
|
27
|
+
* Returns an RGBA object representation of the color string.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getRGBA: (value: string, safe?: boolean) => RGBA;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*
|
|
33
|
+
* Returns the RGBA string representation of the color.
|
|
34
|
+
*/
|
|
35
|
+
export declare const getColorFromHSV: (hsva: HSVA) => string;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*
|
|
39
|
+
* Returns the RGBA string representation of the color based on the `hue` and
|
|
40
|
+
* assuming the `value`, `saturation`, and `alpha` have a value of `1`.
|
|
41
|
+
*/
|
|
42
|
+
export declare const getColorFromHue: (hue: number) => string;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*
|
|
46
|
+
* Returns the RGBA string representation of the color.
|
|
47
|
+
*/
|
|
48
|
+
export declare const getColorFromRGBA: (rgba: RGBA) => string;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*
|
|
52
|
+
* Returns the RGB object representation of the color based on the background color.
|
|
53
|
+
*/
|
|
54
|
+
export declare const getRGBFromRGBA: (foregroundColor: RGBA, backgroundColor: RGBA) => RGB;
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*
|
|
58
|
+
* Returns the relative luminance.
|
|
59
|
+
*/
|
|
60
|
+
export declare const getLuminance: (rgb: RGB) => number;
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*
|
|
64
|
+
* Returns the color contrast.
|
|
65
|
+
*/
|
|
66
|
+
export declare const getContrast: (luminance1: number, luminance2: number) => number;
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*
|
|
70
|
+
* Returns the color contrast from two RGBA colors.
|
|
71
|
+
*/
|
|
72
|
+
export declare const getContrastFromTwoRGBAs: (a: RGBA, b: RGBA) => number;
|
|
@@ -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 a=require("@progress/kendo-drawing"),r=require("./misc.js"),m=(t,o,n=!0)=>{if(["hex","rgba"].indexOf(o)===-1)throw new Error(`Unsupported color output format '${o}'. The available options are 'hex' or 'rgba'.`);if(!r.isPresent(t))return;const s=a.parseColor(t.trim(),n);if(r.isPresent(s))return o==="hex"?s.toCss():s.toCssRgba()},p=(t,o=!0)=>{const n=a.parseColor(t,o);return r.isPresent(n)?n.toHSV():{}},C=(t,o=!0)=>{const n=a.parseColor(t,o);return r.isPresent(n)?n.toBytes():{}},B=t=>{const o=r.fitIntoBounds(t.h,0,359.9),n=r.fitIntoBounds(t.s,0,1),e=r.fitIntoBounds(t.v,0,1),s=r.fitIntoBounds(t.a,0,1);return a.Color.fromHSV(o,n,e,s).toCssRgba()},I=t=>B({h:t,s:1,v:1,a:1}),h=t=>{const o=r.fitIntoBounds(t.r,0,255),n=r.fitIntoBounds(t.g,0,255),e=r.fitIntoBounds(t.b,0,255),s=r.fitIntoBounds(t.a,0,1);return a.Color.fromBytes(o,n,e,s).toCssRgba()},i=(t,o)=>{const n=r.fitIntoBounds(t.r,0,255),e=r.fitIntoBounds(t.g,0,255),s=r.fitIntoBounds(t.b,0,255),u=r.fitIntoBounds(t.a,0,1),d=r.fitIntoBounds(o.r,0,255),f=r.fitIntoBounds(o.g,0,255),l=r.fitIntoBounds(o.b,0,255);return{r:Math.round((1-u)*d+u*n),g:Math.round((1-u)*f+u*e),b:Math.round((1-u)*l+u*s)}},c=t=>{const o=[t.r||0,t.g||0,t.b||0].map(function(n){return n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)});return o[0]*.2126+o[1]*.7152+o[2]*.0722},g=(t,o)=>{const n=Math.max(t,o),e=Math.min(t,o);return(n+.05)/(e+.05)},R=(t,o)=>g(c(i(t,o)),c(i(o,{r:0,g:0,b:0
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("@progress/kendo-drawing"),r=require("./misc.js"),m=(t,o,n=!0)=>{if(["hex","rgba"].indexOf(o)===-1)throw new Error(`Unsupported color output format '${o}'. The available options are 'hex' or 'rgba'.`);if(!r.isPresent(t))return;const s=a.parseColor(t.trim(),n);if(r.isPresent(s))return o==="hex"?s.toCss():s.toCssRgba()},p=(t,o=!0)=>{const n=a.parseColor(t,o);return r.isPresent(n)?n.toHSV():{}},C=(t,o=!0)=>{const n=a.parseColor(t,o);return r.isPresent(n)?n.toBytes():{}},B=t=>{const o=r.fitIntoBounds(t.h,0,359.9),n=r.fitIntoBounds(t.s,0,1),e=r.fitIntoBounds(t.v,0,1),s=r.fitIntoBounds(t.a,0,1);return a.Color.fromHSV(o,n,e,s).toCssRgba()},I=t=>B({h:t,s:1,v:1,a:1}),h=t=>{const o=r.fitIntoBounds(t.r,0,255),n=r.fitIntoBounds(t.g,0,255),e=r.fitIntoBounds(t.b,0,255),s=r.fitIntoBounds(t.a,0,1);return a.Color.fromBytes(o,n,e,s).toCssRgba()},i=(t,o)=>{const n=r.fitIntoBounds(t.r,0,255),e=r.fitIntoBounds(t.g,0,255),s=r.fitIntoBounds(t.b,0,255),u=r.fitIntoBounds(t.a,0,1),d=r.fitIntoBounds(o.r,0,255),f=r.fitIntoBounds(o.g,0,255),l=r.fitIntoBounds(o.b,0,255);return{r:Math.round((1-u)*d+u*n),g:Math.round((1-u)*f+u*e),b:Math.round((1-u)*l+u*s)}},c=t=>{const o=[t.r||0,t.g||0,t.b||0].map(function(n){return n/=255,n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)});return o[0]*.2126+o[1]*.7152+o[2]*.0722},g=(t,o)=>{const n=Math.max(t,o),e=Math.min(t,o);return(n+.05)/(e+.05)},R=(t,o)=>g(c(i(t,o)),c(i(o,{r:0,g:0,b:0})));exports.getColorFromHSV=B;exports.getColorFromHue=I;exports.getColorFromRGBA=h;exports.getContrast=g;exports.getContrastFromTwoRGBAs=R;exports.getHSV=p;exports.getLuminance=c;exports.getRGBA=C;exports.getRGBFromRGBA=i;exports.parseColor=m;
|
|
@@ -42,7 +42,7 @@ const B = (t, r, o = !0) => {
|
|
|
42
42
|
}, b = (t, r) => {
|
|
43
43
|
const o = Math.max(t, r), e = Math.min(t, r);
|
|
44
44
|
return (o + 0.05) / (e + 0.05);
|
|
45
|
-
}, M = (t, r) => b(i(p(t, r)), i(p(r, { r: 0, g: 0, b: 0
|
|
45
|
+
}, M = (t, r) => b(i(p(t, r)), i(p(r, { r: 0, g: 0, b: 0 })));
|
|
46
46
|
export {
|
|
47
47
|
C as getColorFromHSV,
|
|
48
48
|
w as getColorFromHue,
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Checks if a value is present (not null, undefined, or reset by the clear button).
|
|
11
|
+
*/
|
|
12
|
+
export declare const isPresent: (value: any) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*
|
|
16
|
+
* Fits the contender number into the specified bounds.
|
|
17
|
+
* If the number is NaN or null, the minimum is returned.
|
|
18
|
+
*
|
|
19
|
+
* @param contender Represents the number you want to fit into the specified bounds.
|
|
20
|
+
* @param min The inclusive lower bound number.
|
|
21
|
+
* @param max The inclusive upper bound number.
|
|
22
|
+
*/
|
|
23
|
+
export declare const fitIntoBounds: (contender: number | undefined, min: number, max: number) => number;
|
|
@@ -0,0 +1,69 @@
|
|
|
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
|
+
* Render the svg <path> element.
|
|
12
|
+
*
|
|
13
|
+
* @param points (array) Represents the points coordinates as an array of tuples.
|
|
14
|
+
* @param command (function) The command that is used (bezierCommand, lineCommand).
|
|
15
|
+
* @param point (array) [x,y] Represents the current point coordinates.
|
|
16
|
+
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
17
|
+
* @param a (array) Represents the complete array of points coordinates.
|
|
18
|
+
* @output (string) a svg path command.
|
|
19
|
+
* @output (string) a Svg <path> element
|
|
20
|
+
*/
|
|
21
|
+
export declare const svgPath: (points: number[][], command: Function) => string;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*
|
|
25
|
+
* Returns the properties of a line.
|
|
26
|
+
*
|
|
27
|
+
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
28
|
+
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
29
|
+
* @output (object) { length: (integer), angle: (integer) }
|
|
30
|
+
*/
|
|
31
|
+
export declare const line: (pointA: number[], pointB: number[]) => {
|
|
32
|
+
length: number;
|
|
33
|
+
angle: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*
|
|
38
|
+
* Create a function to calculate the position of the control point.
|
|
39
|
+
*
|
|
40
|
+
* @param lineCalc (function) Represents the line function.
|
|
41
|
+
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
42
|
+
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
43
|
+
* @output (object) { length: (integer), angle: (integer) }
|
|
44
|
+
* @output (function) closure.
|
|
45
|
+
* @param current (array) [x, y] Represents the current point coordinates.
|
|
46
|
+
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
47
|
+
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
48
|
+
* @param reverse (boolean, optional) Sets the direction.
|
|
49
|
+
* @output (array) [x, y] coordinates of a control point.
|
|
50
|
+
*/
|
|
51
|
+
export declare const controlPoint: (lineCalc: Function) => (current: number[], previous: number[], next: number[], reverse?: boolean) => number[];
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*
|
|
55
|
+
* Create a function to calculate a bezier curve command.
|
|
56
|
+
*
|
|
57
|
+
* @param controlPointCalc (function) Represents the controlPoint function.
|
|
58
|
+
* @param current (array) [x, y] Represents the current point coordinates.
|
|
59
|
+
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
60
|
+
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
61
|
+
* @param reverse (boolean, optional) Sets the direction.
|
|
62
|
+
* @output (array) [x, y] coordinates of a control point.
|
|
63
|
+
* @output (function) closure.
|
|
64
|
+
* @param point (array) [x,y] Represents the current point coordinates.
|
|
65
|
+
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
66
|
+
* @param a (array) Represents the complete array of points coordinates.
|
|
67
|
+
* @output (string) 'C x2,y2 x1,y1 x,y' Cubic bezier command.
|
|
68
|
+
*/
|
|
69
|
+
export declare const bezierCommand: (controlPointCalc: Function) => (point: number[], i: number, a: number[]) => string;
|
|
@@ -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 { ActionSheetProps } from '@progress/kendo-react-layout';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export interface AdaptiveModeProps extends ActionSheetProps {
|
|
12
|
+
windowWidth?: number;
|
|
13
|
+
footer: {
|
|
14
|
+
cancelText: string;
|
|
15
|
+
onCancel: () => void;
|
|
16
|
+
applyText: string;
|
|
17
|
+
onApply: (event: any) => void;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/** @hidden */
|
|
21
|
+
export declare const AdaptiveMode: (props: AdaptiveModeProps) => React.JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface SliderTooltipProps {
|
|
13
|
+
id?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
tabIndex?: number;
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
position: 'right' | 'top';
|
|
19
|
+
show?: boolean;
|
|
20
|
+
anchor?: React.RefObject<HTMLElement | null>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare const SliderTooltip: (props: SliderTooltipProps) => React.JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { default as SwitchModel } from './SwitchModel.js';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
declare class SwitchController {
|
|
13
|
+
private handlePosition;
|
|
14
|
+
private wrapperOffset;
|
|
15
|
+
private handleOffset;
|
|
16
|
+
private handleMargin;
|
|
17
|
+
private updateView;
|
|
18
|
+
private onChange;
|
|
19
|
+
private _checked;
|
|
20
|
+
private reverse;
|
|
21
|
+
private coords;
|
|
22
|
+
private lastPressX;
|
|
23
|
+
private originalPressX;
|
|
24
|
+
constructor(updateView?: Function, onChange?: Function);
|
|
25
|
+
overrideChecked: (checked: boolean) => void;
|
|
26
|
+
updateState({ wrapperOffset, handleOffset, checked, animate, coords, handleMargin, reverse }: any): void;
|
|
27
|
+
change: (checked: boolean, event?: any) => void;
|
|
28
|
+
get isChecked(): boolean;
|
|
29
|
+
addAnimation: (model: any) => any;
|
|
30
|
+
onPress: (event: any) => void;
|
|
31
|
+
onRelease: (event: any) => void;
|
|
32
|
+
onDrag: (event: any) => void;
|
|
33
|
+
updateModel(position: any, animate?: boolean): SwitchModel;
|
|
34
|
+
private limit;
|
|
35
|
+
get constrain(): number;
|
|
36
|
+
get checked(): boolean;
|
|
37
|
+
}
|
|
38
|
+
export default SwitchController;
|
|
@@ -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
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export default class Model {
|
|
12
|
+
handle: any;
|
|
13
|
+
constructor(value: number | undefined, animate: boolean);
|
|
14
|
+
}
|