@progress/kendo-react-inputs 5.4.0-dev.202205250548 → 5.4.0-dev.202205271059
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/dist/cdn/js/kendo-react-inputs.js +1 -1
- package/dist/es/checkbox/Checkbox.js +7 -5
- package/dist/es/checkbox/interfaces/CheckboxBlurEvent.js +1 -0
- package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
- package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
- package/dist/es/checkbox/interfaces/CheckboxProps.js +1 -0
- package/dist/es/colors/ColorContrastLabels.js +3 -1
- package/dist/es/colors/ColorContrastSvg.js +3 -1
- package/dist/es/colors/ColorGradient.d.ts +2 -2
- package/dist/es/colors/ColorGradient.js +4 -2
- package/dist/es/colors/ColorInput.js +3 -1
- package/dist/es/colors/ColorPalette.d.ts +2 -2
- package/dist/es/colors/ColorPalette.js +5 -3
- package/dist/es/colors/HexInput.js +3 -1
- package/dist/es/colors/Picker.js +1 -1
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorGradientProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPaletteProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerGradientSettings.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerProps.js +1 -0
- package/dist/es/colors/interfaces/ColorPickerView.js +1 -0
- package/dist/es/colors/interfaces/PickerPopupSettings.js +1 -0
- package/dist/es/colors/interfaces/PickerProps.js +1 -0
- package/dist/es/colors/models/hsva.js +1 -0
- package/dist/es/colors/models/output-format.js +1 -0
- package/dist/es/colors/models/rgb.js +1 -0
- package/dist/es/colors/models/rgba.js +1 -0
- package/dist/es/colors/models/table-cell.js +1 -0
- package/dist/es/colors/models/tile-size.js +1 -0
- package/dist/es/colors/utils/color-parser.d.ts +1 -1
- package/dist/es/colors/utils/misc.d.ts +1 -1
- package/dist/es/common/SwitchController.d.ts +3 -3
- package/dist/es/common/SwitchController.js +4 -4
- package/dist/es/input/Input.d.ts +5 -5
- package/dist/es/input/Input.js +13 -9
- package/dist/es/input/interfaces/InputChangeEvent.js +1 -0
- package/dist/es/interfaces/Direction.js +1 -0
- package/dist/es/interfaces/ToggleBaseProps.js +1 -0
- package/dist/es/main.js +31 -0
- package/dist/es/maskedtextbox/MaskedTextBox.d.ts +12 -12
- package/dist/es/maskedtextbox/MaskedTextBox.js +12 -10
- package/dist/es/maskedtextbox/MaskedTextBoxProps.js +1 -0
- package/dist/es/maskedtextbox/masking.service.d.ts +4 -4
- package/dist/es/maskedtextbox/masking.service.js +4 -4
- package/dist/es/messages/index.d.ts +22 -22
- package/dist/es/numerictextbox/interfaces/NumericTextBoxBlurEvent.js +1 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxChangeEvent.js +1 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxFocusEvent.js +1 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxHandle.js +1 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxState.js +1 -0
- package/dist/es/numerictextbox/utils/index.d.ts +7 -7
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.js +4 -2
- package/dist/es/radiobutton/RadioGroup.js +1 -1
- package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioButtonProps.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
- package/dist/es/radiobutton/interfaces/RadioGroupProps.js +1 -0
- package/dist/es/range-slider/RangeSlider.js +1 -1
- package/dist/es/range-slider/range-raducer.js +12 -12
- package/dist/es/rating/Rating.js +1 -1
- package/dist/es/rating/models/index.js +1 -0
- package/dist/es/rating/utils/index.d.ts +1 -1
- package/dist/es/slider/Slider.d.ts +1 -1
- package/dist/es/slider/Slider.js +5 -3
- package/dist/es/switch/Switch.d.ts +11 -11
- package/dist/es/switch/Switch.js +11 -9
- package/dist/es/textarea/TextArea.js +5 -3
- package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +1 -0
- package/dist/es/textarea/interfaces/TextAreaProps.js +1 -0
- package/dist/es/utils.js +6 -1
- package/dist/npm/checkbox/Checkbox.js +8 -5
- package/dist/npm/colors/ColorContrastLabels.js +4 -1
- package/dist/npm/colors/ColorContrastSvg.js +4 -1
- package/dist/npm/colors/ColorGradient.d.ts +2 -2
- package/dist/npm/colors/ColorGradient.js +5 -2
- package/dist/npm/colors/ColorInput.js +3 -1
- package/dist/npm/colors/ColorPalette.d.ts +2 -2
- package/dist/npm/colors/ColorPalette.js +6 -3
- package/dist/npm/colors/ColorPicker.js +1 -0
- package/dist/npm/colors/FlatColorPicker.js +1 -0
- package/dist/npm/colors/HexInput.js +3 -1
- package/dist/npm/colors/Picker.js +4 -2
- package/dist/npm/colors/models/palette-presets.js +1 -0
- package/dist/npm/colors/utils/color-cache.js +1 -0
- package/dist/npm/colors/utils/color-palette.service.js +1 -0
- package/dist/npm/colors/utils/color-parser.d.ts +1 -1
- package/dist/npm/colors/utils/color-parser.js +21 -10
- package/dist/npm/colors/utils/misc.d.ts +1 -1
- package/dist/npm/colors/utils/misc.js +5 -2
- package/dist/npm/colors/utils/svg-calc.js +9 -4
- package/dist/npm/common/SliderTooltip.js +3 -1
- package/dist/npm/common/SwitchController.d.ts +3 -3
- package/dist/npm/common/SwitchController.js +4 -4
- package/dist/npm/input/Input.d.ts +5 -5
- package/dist/npm/input/Input.js +14 -9
- package/dist/npm/main.js +65 -26
- package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +12 -12
- package/dist/npm/maskedtextbox/MaskedTextBox.js +13 -10
- package/dist/npm/maskedtextbox/masking.service.d.ts +4 -4
- package/dist/npm/maskedtextbox/masking.service.js +5 -4
- package/dist/npm/maskedtextbox/parsing/combinators.js +5 -2
- package/dist/npm/maskedtextbox/parsing/parsers.js +15 -7
- package/dist/npm/maskedtextbox/parsing/result.js +1 -0
- package/dist/npm/maskedtextbox/parsing/stream.js +1 -0
- package/dist/npm/maskedtextbox/utils.js +1 -0
- package/dist/npm/messages/index.d.ts +22 -22
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/numerictextbox/NumericTextBox.js +1 -0
- package/dist/npm/numerictextbox/utils/index.d.ts +7 -7
- package/dist/npm/numerictextbox/utils/index.js +57 -28
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/radiobutton/RadioButton.js +5 -2
- package/dist/npm/radiobutton/RadioGroup.js +2 -1
- package/dist/npm/range-slider/RangeSlider.js +2 -1
- package/dist/npm/range-slider/range-raducer.js +15 -13
- package/dist/npm/rating/Rating.js +2 -1
- package/dist/npm/rating/RatingItem.js +1 -0
- package/dist/npm/rating/rating-reducer.js +3 -1
- package/dist/npm/rating/utils/index.d.ts +1 -1
- package/dist/npm/rating/utils/index.js +13 -6
- package/dist/npm/slider/Slider.d.ts +1 -1
- package/dist/npm/slider/Slider.js +6 -3
- package/dist/npm/slider/SliderLabel.js +3 -1
- package/dist/npm/switch/Switch.d.ts +11 -11
- package/dist/npm/switch/Switch.js +12 -9
- package/dist/npm/textarea/TextArea.js +6 -3
- package/dist/npm/utils.js +7 -1
- package/dist/systemjs/kendo-react-inputs.js +1 -1
- package/package.json +14 -14
- package/dist/es/switch/util.d.ts +0 -8
- package/dist/es/switch/util.js +0 -46
- package/dist/npm/switch/util.d.ts +0 -8
- package/dist/npm/switch/util.js +0 -48
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -102,7 +104,7 @@ export var Checkbox = React.forwardRef(function (directProps, target) {
|
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
106
|
if (onChange && !disabled) {
|
|
105
|
-
dispatchEvent(onChange, e, __assign({}, getImperativeHandle(), { value: val }), { value: val });
|
|
107
|
+
dispatchEvent(onChange, e, __assign(__assign({}, getImperativeHandle()), { value: val }), { value: val });
|
|
106
108
|
}
|
|
107
109
|
}, [isCheckedControlled, disabled, onChange, isValueControlled, getImperativeHandle]);
|
|
108
110
|
var handleChange = React.useCallback(function (e) {
|
|
@@ -142,7 +144,7 @@ export var Checkbox = React.forwardRef(function (directProps, target) {
|
|
|
142
144
|
}, [onBlur, disabled, getImperativeHandle]);
|
|
143
145
|
var dir = useDir(elementRef, props.dir);
|
|
144
146
|
var checkboxClasses = classNames({ 'k-disabled': disabled }, className);
|
|
145
|
-
var inputProps = __assign({ type: 'checkbox', className: classNames('k-checkbox', (_a = {},
|
|
147
|
+
var inputProps = __assign(__assign({ type: 'checkbox', className: classNames('k-checkbox', (_a = {},
|
|
146
148
|
_a["k-checkbox-" + (kendoThemeMaps.sizeMap[size] || size)] = size,
|
|
147
149
|
_a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
|
|
148
150
|
_a['k-indeterminate'] = indeterminateProp,
|
|
@@ -151,7 +153,7 @@ export var Checkbox = React.forwardRef(function (directProps, target) {
|
|
|
151
153
|
true :
|
|
152
154
|
indeterminateProp ?
|
|
153
155
|
'mixed' :
|
|
154
|
-
false, 'aria-disabled': disabled || undefined }, others, { onChange: handleChange, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onFocus: handleFocus, onBlur: handleBlur });
|
|
156
|
+
false, 'aria-disabled': disabled || undefined }, others), { onChange: handleChange, onKeyDown: handleKeyDown, onKeyUp: handleKeyUp, onFocus: handleFocus, onBlur: handleBlur });
|
|
155
157
|
var checkboxInput = (React.createElement(React.Fragment, null,
|
|
156
158
|
// removing value prop is required due to bug in react where
|
|
157
159
|
// value set to undefined override default submit value
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -96,7 +96,7 @@ export declare class ColorGradientWithoutContext extends React.Component<ColorGr
|
|
|
96
96
|
/**
|
|
97
97
|
* @hidden
|
|
98
98
|
*/
|
|
99
|
-
onGradientWrapperClick: (event: React.MouseEvent<HTMLDivElement
|
|
99
|
+
onGradientWrapperClick: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
100
100
|
/**
|
|
101
101
|
* @hidden
|
|
102
102
|
*/
|
|
@@ -133,7 +133,7 @@ export declare class ColorGradientWithoutContext extends React.Component<ColorGr
|
|
|
133
133
|
/**
|
|
134
134
|
* @hidden
|
|
135
135
|
*/
|
|
136
|
-
|
|
136
|
+
get isUncontrolled(): boolean;
|
|
137
137
|
/**
|
|
138
138
|
* @hidden
|
|
139
139
|
*/
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -218,7 +220,7 @@ var ColorGradientWithoutContext = /** @class */ (function (_super) {
|
|
|
218
220
|
get: function () {
|
|
219
221
|
return this.props.value === undefined;
|
|
220
222
|
},
|
|
221
|
-
enumerable:
|
|
223
|
+
enumerable: false,
|
|
222
224
|
configurable: true
|
|
223
225
|
});
|
|
224
226
|
/**
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -80,8 +80,8 @@ export declare class ColorPaletteWithoutContext extends React.Component<ColorPal
|
|
|
80
80
|
private handleCellNavigation;
|
|
81
81
|
private handleEnter;
|
|
82
82
|
private dispatchChangeEvent;
|
|
83
|
-
private
|
|
84
|
-
private
|
|
83
|
+
private get focusedColorCooridanates();
|
|
84
|
+
private get isUncontrolled();
|
|
85
85
|
private getPaletteInfo;
|
|
86
86
|
private renderRows;
|
|
87
87
|
private renderColumns;
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -161,14 +163,14 @@ var ColorPaletteWithoutContext = /** @class */ (function (_super) {
|
|
|
161
163
|
get: function () {
|
|
162
164
|
return this.state.focusedColor ? this.paletteService.getCellCoordsFor(this.state.focusedColor) : undefined;
|
|
163
165
|
},
|
|
164
|
-
enumerable:
|
|
166
|
+
enumerable: false,
|
|
165
167
|
configurable: true
|
|
166
168
|
});
|
|
167
169
|
Object.defineProperty(ColorPaletteWithoutContext.prototype, "isUncontrolled", {
|
|
168
170
|
get: function () {
|
|
169
171
|
return this.props.value === undefined;
|
|
170
172
|
},
|
|
171
|
-
enumerable:
|
|
173
|
+
enumerable: false,
|
|
172
174
|
configurable: true
|
|
173
175
|
});
|
|
174
176
|
ColorPaletteWithoutContext.prototype.getPaletteInfo = function () {
|
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/dist/es/colors/Picker.js
CHANGED
|
@@ -31,6 +31,6 @@ export var Picker = function (props) {
|
|
|
31
31
|
return (React.createElement(React.Fragment, null,
|
|
32
32
|
props.input,
|
|
33
33
|
props.button,
|
|
34
|
-
React.createElement(Popup, __assign({ style: __assign({}, (popupSettings || {}).style, { direction: props.dir }) }, popupSettings, { anchor: props.popupAnchor, anchorAlign: anchorAlign, popupAlign: popupAlign, show: props.open, onOpen: props.onOpen, onClose: props.onClose, className: classNames('k-reset', popupSettings.className) }), props.content)));
|
|
34
|
+
React.createElement(Popup, __assign({ style: __assign(__assign({}, (popupSettings || {}).style), { direction: props.dir }) }, popupSettings, { anchor: props.popupAnchor, anchorAlign: anchorAlign, popupAlign: popupAlign, show: props.open, onOpen: props.onOpen, onClose: props.onClose, className: classNames('k-reset', popupSettings.className) }), props.content)));
|
|
35
35
|
};
|
|
36
36
|
Picker.displayName = 'KendoPickerComponent';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -7,7 +7,7 @@ import { RGBA } from '../models/rgba';
|
|
|
7
7
|
*
|
|
8
8
|
* Returns the hex or RGBA string representation of the color.
|
|
9
9
|
*/
|
|
10
|
-
export declare const parseColor: (value: string, format: OutputFormat, safe?: boolean) => string;
|
|
10
|
+
export declare const parseColor: (value: string, format: OutputFormat, safe?: boolean) => string | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* @hidden
|
|
13
13
|
*
|
|
@@ -12,4 +12,4 @@ export declare const isPresent: (value: any) => boolean;
|
|
|
12
12
|
* @param min The inclusive lower bound number.
|
|
13
13
|
* @param max The inclusive upper bound number.
|
|
14
14
|
*/
|
|
15
|
-
export declare const fitIntoBounds: (contender: number, min: number, max: number) => number;
|
|
15
|
+
export declare const fitIntoBounds: (contender: number | undefined, min: number, max: number) => number;
|
|
@@ -18,14 +18,14 @@ declare class SwitchController {
|
|
|
18
18
|
overrideChecked: (checked: boolean) => void;
|
|
19
19
|
updateState({ wrapperOffset, handleOffset, checked, animate, coords, handleMargin, reverse }: any): void;
|
|
20
20
|
change: (checked: boolean, event?: any) => void;
|
|
21
|
-
|
|
21
|
+
get isChecked(): boolean;
|
|
22
22
|
addAnimation: (model: any) => any;
|
|
23
23
|
onPress: (event: any) => void;
|
|
24
24
|
onRelease: (event: any) => void;
|
|
25
25
|
onDrag: (event: any) => void;
|
|
26
26
|
updateModel(position: any, animate?: boolean): SwitchModel;
|
|
27
27
|
private limit;
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
get constrain(): number;
|
|
29
|
+
get checked(): boolean;
|
|
30
30
|
}
|
|
31
31
|
export default SwitchController;
|
|
@@ -12,9 +12,9 @@ var noop = function () { };
|
|
|
12
12
|
*/
|
|
13
13
|
var SwitchController = /** @class */ (function () {
|
|
14
14
|
function SwitchController(updateView, onChange) {
|
|
15
|
+
var _this = this;
|
|
15
16
|
if (updateView === void 0) { updateView = noop; }
|
|
16
17
|
if (onChange === void 0) { onChange = noop; }
|
|
17
|
-
var _this = this;
|
|
18
18
|
this.overrideChecked = function (checked) {
|
|
19
19
|
_this._checked = checked;
|
|
20
20
|
};
|
|
@@ -91,7 +91,7 @@ var SwitchController = /** @class */ (function () {
|
|
|
91
91
|
get: function () {
|
|
92
92
|
return this._checked;
|
|
93
93
|
},
|
|
94
|
-
enumerable:
|
|
94
|
+
enumerable: false,
|
|
95
95
|
configurable: true
|
|
96
96
|
});
|
|
97
97
|
SwitchController.prototype.updateModel = function (position, animate) {
|
|
@@ -103,14 +103,14 @@ var SwitchController = /** @class */ (function () {
|
|
|
103
103
|
get: function () {
|
|
104
104
|
return this.wrapperOffset - this.handleOffset - this.handleMargin;
|
|
105
105
|
},
|
|
106
|
-
enumerable:
|
|
106
|
+
enumerable: false,
|
|
107
107
|
configurable: true
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(SwitchController.prototype, "checked", {
|
|
110
110
|
get: function () {
|
|
111
111
|
return this._checked;
|
|
112
112
|
},
|
|
113
|
-
enumerable:
|
|
113
|
+
enumerable: false,
|
|
114
114
|
configurable: true
|
|
115
115
|
});
|
|
116
116
|
return SwitchController;
|
package/dist/es/input/Input.d.ts
CHANGED
|
@@ -77,23 +77,23 @@ export declare class InputWithoutContext extends React.Component<InputProps, Inp
|
|
|
77
77
|
/**
|
|
78
78
|
* Gets the native input element of the Input component.
|
|
79
79
|
*/
|
|
80
|
-
|
|
80
|
+
get element(): HTMLInputElement | null;
|
|
81
81
|
/**
|
|
82
82
|
* Gets the value of the Input.
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
get value(): string | string[] | number | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Gets the `name` property of the Input.
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
get name(): string | undefined;
|
|
89
89
|
/**
|
|
90
90
|
* Represents the validity state into which the Input is set.
|
|
91
91
|
*/
|
|
92
|
-
|
|
92
|
+
get validity(): FormComponentValidity;
|
|
93
93
|
/**
|
|
94
94
|
* @hidden
|
|
95
95
|
*/
|
|
96
|
-
protected
|
|
96
|
+
protected get validityStyles(): boolean;
|
|
97
97
|
/**
|
|
98
98
|
* @hidden
|
|
99
99
|
*/
|
package/dist/es/input/Input.js
CHANGED
|
@@ -2,10 +2,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
2
2
|
var extendStatics = function (d, b) {
|
|
3
3
|
extendStatics = Object.setPrototypeOf ||
|
|
4
4
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (
|
|
5
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
6
|
return extendStatics(d, b);
|
|
7
7
|
};
|
|
8
8
|
return function (d, b) {
|
|
9
|
+
if (typeof b !== "function" && b !== null)
|
|
10
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
9
11
|
extendStatics(d, b);
|
|
10
12
|
function __() { this.constructor = d; }
|
|
11
13
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -27,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
30
|
t[p] = s[p];
|
|
29
31
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
31
|
-
|
|
32
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
33
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
34
|
+
t[p[i]] = s[p[i]];
|
|
35
|
+
}
|
|
32
36
|
return t;
|
|
33
37
|
};
|
|
34
38
|
import * as React from 'react';
|
|
@@ -112,7 +116,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
|
|
|
112
116
|
get: function () {
|
|
113
117
|
return this._input;
|
|
114
118
|
},
|
|
115
|
-
enumerable:
|
|
119
|
+
enumerable: false,
|
|
116
120
|
configurable: true
|
|
117
121
|
});
|
|
118
122
|
Object.defineProperty(InputWithoutContext.prototype, "value", {
|
|
@@ -126,7 +130,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
|
|
|
126
130
|
? this.props.value
|
|
127
131
|
: this.state.value;
|
|
128
132
|
},
|
|
129
|
-
enumerable:
|
|
133
|
+
enumerable: false,
|
|
130
134
|
configurable: true
|
|
131
135
|
});
|
|
132
136
|
Object.defineProperty(InputWithoutContext.prototype, "name", {
|
|
@@ -136,7 +140,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
|
|
|
136
140
|
get: function () {
|
|
137
141
|
return this.props.name;
|
|
138
142
|
},
|
|
139
|
-
enumerable:
|
|
143
|
+
enumerable: false,
|
|
140
144
|
configurable: true
|
|
141
145
|
});
|
|
142
146
|
Object.defineProperty(InputWithoutContext.prototype, "validity", {
|
|
@@ -156,13 +160,13 @@ var InputWithoutContext = /** @class */ (function (_super) {
|
|
|
156
160
|
typeMismatch: this._input ? this._input.validity.typeMismatch : false,
|
|
157
161
|
valueMissing: this._input ? this._input.validity.valueMissing : false
|
|
158
162
|
};
|
|
159
|
-
return __assign({}, result, { customError: this.props.validationMessage !== undefined, valid: this.props.valid !== undefined
|
|
163
|
+
return __assign(__assign({}, result), { customError: this.props.validationMessage !== undefined, valid: this.props.valid !== undefined
|
|
160
164
|
? this.props.valid
|
|
161
165
|
: this._input
|
|
162
166
|
? !this.isInvalid(result)
|
|
163
167
|
: true });
|
|
164
168
|
},
|
|
165
|
-
enumerable:
|
|
169
|
+
enumerable: false,
|
|
166
170
|
configurable: true
|
|
167
171
|
});
|
|
168
172
|
Object.defineProperty(InputWithoutContext.prototype, "validityStyles", {
|
|
@@ -174,7 +178,7 @@ var InputWithoutContext = /** @class */ (function (_super) {
|
|
|
174
178
|
? this.props.validityStyles
|
|
175
179
|
: InputWithoutContext.defaultProps.validityStyles;
|
|
176
180
|
},
|
|
177
|
-
enumerable:
|
|
181
|
+
enumerable: false,
|
|
178
182
|
configurable: true
|
|
179
183
|
});
|
|
180
184
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es/main.js
CHANGED
|
@@ -1,17 +1,48 @@
|
|
|
1
1
|
export { ColorGradient, ColorGradientPropsContext } from './colors/ColorGradient';
|
|
2
2
|
export { ColorPalette, ColorPalettePropsContext } from './colors/ColorPalette';
|
|
3
3
|
export * from './colors/ColorPicker';
|
|
4
|
+
export * from './colors/interfaces/ColorGradientChangeEvent';
|
|
5
|
+
export * from './colors/interfaces/ColorGradientProps';
|
|
6
|
+
export * from './colors/interfaces/ColorPaletteChangeEvent';
|
|
7
|
+
export * from './colors/interfaces/ColorPaletteProps';
|
|
8
|
+
export * from './colors/interfaces/ColorPickerBlurEvent';
|
|
9
|
+
export * from './colors/interfaces/ColorPickerChangeEvent';
|
|
10
|
+
export * from './colors/interfaces/ColorPickerFocusEvent';
|
|
11
|
+
export * from './colors/interfaces/ColorPickerGradientSettings';
|
|
12
|
+
export * from './colors/interfaces/ColorPickerPaletteSettings';
|
|
13
|
+
export * from './colors/interfaces/ColorPickerPopupSettings';
|
|
14
|
+
export * from './colors/interfaces/ColorPickerProps';
|
|
4
15
|
export * from './colors/FlatColorPicker';
|
|
5
16
|
export { Input, InputPropsContext } from './input/Input';
|
|
6
17
|
export { MaskedTextBox, MaskedTextBoxPropsContext } from './maskedtextbox/MaskedTextBox';
|
|
18
|
+
export * from './maskedtextbox/MaskedTextBoxProps';
|
|
7
19
|
export * from './numerictextbox/NumericTextBox';
|
|
20
|
+
export * from './numerictextbox/interfaces/NumericTextBoxHandle';
|
|
21
|
+
export * from './numerictextbox/interfaces/NumericTextBoxChangeEvent';
|
|
22
|
+
export * from './numerictextbox/interfaces/NumericTextBoxBlurEvent';
|
|
23
|
+
export * from './numerictextbox/interfaces/NumericTextBoxFocusEvent';
|
|
24
|
+
export * from './numerictextbox/interfaces/NumericTextBoxProps';
|
|
8
25
|
export { Slider, SliderPropsContext } from './slider/Slider';
|
|
9
26
|
export * from './slider/SliderLabel';
|
|
10
27
|
export * from './range-slider/RangeSlider';
|
|
28
|
+
export * from './interfaces/ToggleBaseProps';
|
|
11
29
|
export { Switch, SwitchPropsContext } from './switch/Switch';
|
|
30
|
+
export * from './checkbox/interfaces/CheckboxProps';
|
|
31
|
+
export * from './checkbox/interfaces/CheckboxChangeEvent';
|
|
32
|
+
export * from './checkbox/interfaces/CheckboxFocusEvent';
|
|
12
33
|
export * from './checkbox/Checkbox';
|
|
13
34
|
export * from './radiobutton/RadioGroup';
|
|
35
|
+
export * from './radiobutton/interfaces/RadioGroupProps';
|
|
36
|
+
export * from './radiobutton/interfaces/RadioGroupChangeEvent';
|
|
37
|
+
export * from './radiobutton/interfaces/RadioGroupFocusEvent';
|
|
14
38
|
export * from './radiobutton/RadioButton';
|
|
39
|
+
export * from './radiobutton/interfaces/RadioButtonProps';
|
|
40
|
+
export * from './radiobutton/interfaces/RadioButtonChangeEvent';
|
|
41
|
+
export * from './radiobutton/interfaces/RadioButtonFocusEvent';
|
|
15
42
|
export * from './textarea/TextArea';
|
|
43
|
+
export * from './textarea/interfaces/TextAreaProps';
|
|
44
|
+
export * from './textarea/interfaces/TextAreaChangeEvent';
|
|
45
|
+
export * from './textarea/interfaces/TextAreaFocusEvent';
|
|
16
46
|
export * from './rating/Rating';
|
|
17
47
|
export * from './rating/RatingItem';
|
|
48
|
+
export * from './rating/models/index';
|
|
@@ -49,8 +49,8 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
|
|
|
49
49
|
validityStyles: PropTypes.Requireable<boolean>;
|
|
50
50
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
51
51
|
size: PropTypes.Requireable<"small" | "medium" | "large">;
|
|
52
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "
|
|
53
|
-
fillMode: PropTypes.Requireable<"
|
|
52
|
+
rounded: PropTypes.Requireable<"small" | "medium" | "full" | "large">;
|
|
53
|
+
fillMode: PropTypes.Requireable<"flat" | "solid" | "outline">;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
56
|
* @hidden
|
|
@@ -66,8 +66,8 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
|
|
|
66
66
|
required: boolean;
|
|
67
67
|
validityStyles: boolean;
|
|
68
68
|
size: "small" | "medium" | "large";
|
|
69
|
-
rounded: "small" | "medium" | "
|
|
70
|
-
fillMode: "
|
|
69
|
+
rounded: "small" | "medium" | "full" | "large";
|
|
70
|
+
fillMode: "flat" | "solid" | "outline";
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* @hidden
|
|
@@ -115,31 +115,31 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
|
|
|
115
115
|
* );
|
|
116
116
|
* ```
|
|
117
117
|
*/
|
|
118
|
-
|
|
118
|
+
get element(): HTMLInputElement | null;
|
|
119
119
|
/**
|
|
120
120
|
* Gets the value with the mask of the MaskedTextBox.
|
|
121
121
|
*/
|
|
122
|
-
|
|
122
|
+
get value(): string;
|
|
123
123
|
/**
|
|
124
124
|
* Gets the raw value without the mask of the MaskedTextBox.
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
get rawValue(): string;
|
|
127
127
|
/**
|
|
128
128
|
* Represents the validity state into which the MaskedTextBox is set.
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
get validity(): FormComponentValidity;
|
|
131
131
|
/**
|
|
132
132
|
* @hidden
|
|
133
133
|
*/
|
|
134
|
-
protected
|
|
134
|
+
protected get validityStyles(): boolean;
|
|
135
135
|
/**
|
|
136
136
|
* @hidden
|
|
137
137
|
*/
|
|
138
|
-
protected
|
|
138
|
+
protected get required(): boolean;
|
|
139
139
|
/**
|
|
140
140
|
* Gets the `name` property of the MaskedTextBox.
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
get name(): string | undefined;
|
|
143
143
|
/**
|
|
144
144
|
* @hidden
|
|
145
145
|
*/
|
|
@@ -158,7 +158,7 @@ export declare class MaskedTextBoxWithoutContext extends React.Component<MaskedT
|
|
|
158
158
|
private blurHandler;
|
|
159
159
|
private triggerOnChange;
|
|
160
160
|
private updateService;
|
|
161
|
-
private
|
|
161
|
+
private get rules();
|
|
162
162
|
private setValidity;
|
|
163
163
|
}
|
|
164
164
|
/**
|